/*? global clearing */
*,
html,
body {
	margin: 0;
	padding: 0;
	background-size: cover;
	background-position: center;
	transition: background-image 0.5s ease-in-out;
	box-sizing: border-box;
	text-decoration: none;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
	--color-black-black: rgb(0,0,0);
	--color-black-primary: rgb(0,0,0, 0.65);
	--color-black-secondary: rgb(0,0,0, 0.15);
	--color-red-primary: crimson;
	--color-white-primary: #fff;
}

body {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

header {
	display: flex;
	justify-content: end;
	align-items: center;
	/* padding: 0 20px; */
	/* border: 1px solid black; */
	height: 50px;
	width: 100%;
}

.header__right {
	display: flex;
	padding: 10px 20px;
	/* border: 1px solid black; */
}

.header__right a {
	margin-right: 20px;
	font-weight: 500;
	color: var(--color-black-primary)
}

.header__right a:hover {
	text-decoration: underline;
}

section {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	/* border: 1px solid black; */
}

.feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	/* border: 1px solid green; */
}

.feature img {
	width: 500px;
	height: auto;
}

.search {
	/* border: 1px solid red; */
	display: flex;
	flex-direction: column;
	padding: 20px;
	width: 100%;
	max-width: 600px;
	gap: 20px;
}

.search__input {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	border-radius: 99px;
	padding: 0 16px;
	border: 1px solid var(--color-black-secondary)
}

#clearBtn {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
}

.search__input:hover {
	box-shadow: 0px 0px 5px 3px rgba(0,0,0,0.12);
-webkit-box-shadow: 0px 0px 5px 3px rgba(0,0,0,0.12);
-moz-box-shadow: 0px 0px 5px 3px rgba(0,0,0,0.12);
}

.search__input input {
	flex: 1;
	padding: 10px;
	font-size: 16px;
	margin-bottom: 4px;
	border: none;
	outline: none;
}

.search__input .mic {
	cursor: pointer;
}

.search__action {
	display: flex;
	justify-content: center;
	gap: 16px;
}

.search__action a {
	/* font-weight: 400; */
	color: var(--color-white-primary);
}

.search__action button {
	border: 1px solid transparent;
	padding: 7px 12px;
	border-radius: 6px;
	cursor: pointer;
	background-color: rgb(0,151,54);
    color: var(--color-white-primary);
}

.search__action button:hover {
	/* border: 1px solid var(--color-black-secondary); */
	background-color: #45a049;
}

.language {
	display: flex;
	justify-content: center;
	font-size: 14px;
	color: var(--color-black-primary)
}

.language a {
	margin-right: 6px;
}

.language a:hover {
	text-decoration: underline;
}

.card {
    padding: 1px;
    border-radius: 8px;
    background-color: transparent;
    position: relative;
    margin: auto; 
    text-align: center; 
	width: 100%;
}

.disclaimer {
    background-color: rgba(40, 167, 69, 0.3); 
    border-radius: 8px;
    padding: 10px;
    margin:5px; 
    text-align: center; 
}

.disclaimer-title {
    font-weight: bold;
    text-align: center; 
	font-size: 11px;
}

.disclaimer-content {
    /* text-align: justify; */
    text-align: center;
	font-size: 11px;
}

/* Efek hover */
.card:hover .disclaimer {
    background-color: rgba(40, 167, 69, 0.7) 
}

.iframe-container {
	padding: 1px;
    border-radius: 8px;
    background-color: transparent;
    position: relative;
    margin: auto; 
    text-align: center; 
	width: 100%;
}

.result {
    background-color: rgb(255, 0, 0, 0.3); 
    border-radius: 8px;
    padding: 10px;
    margin:5px; 
    text-align: center; 
}


/* Efek hover */
.iframe-container:hover .result {
    background-color: rgb(255, 0, 0, 0.5); 
}

.searchResultsContainer {
	/* overflow: auto; */
	text-align: center;
	margin-top: 20px;
	/* display: flex; */
	justify-content: center;
	text-align: center;
}

.searchResultTitle {
	font-size: 1.5em;
	font-weight: bold;
	text-align: center;
	justify-content: center;
}

.footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	/* border: 1px solid green; */
}

.loading-icon {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#searchResults button {
    background-color: white; 
    color: #4CAF50; 
    border: 1px solid #4CAF50; 
    padding: 2px 8px; 
	border-radius: 50%;
    margin: 2px; 
    cursor: pointer; 
}

#searchResults button.active {
    background-color: #4CAF50; 
    color: white; 
}

#searchResults button:hover {
    background-color: #45a049;
    color: white; 
}

.form-link {
	cursor: pointer;
	transition: text-decoration 0.3s ease;
	margin-right: 0px;
	font-weight: 500;
	color: var(--color-black-primary)
}

.form-link:hover {
	text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 2% auto;
    padding: 20px;
    width: 100%;
    max-width: 700px;
    height: 100%;
    max-height: 590px;
    /* overflow-y: auto; */
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px;
    font-size: 24px;
    color: red;
    cursor: pointer;
}

.close button {
	border: 1px solid transparent;
	padding: 6px 10px;
	border-radius: 50%;
	cursor: pointer;
	background-color: red;
    color: var(--color-white-primary);
}




