@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.autocomplete-items div {
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: 10px;
}

body {
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

body.modal-active,
body.modal-active #game-container,
body.modal-active #other-main-container {
    filter: blur(8px);
    pointer-events: none;
}

.close {
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    right: 35px;
    top: 15px;
    transition: 0.3s;
}

.close:focus,
.close:hover {
    color: #bbb;
    cursor: pointer;
    text-decoration: none;
}

.correct-guess {
    animation: pop 0.5s ease-out;
    color: green;
    font-weight: bold;
    margin-top: 0;
    padding: 5px;
}

header {
    background-color: #f5f5f5;
    color: black;
    display: block;
    text-align: center;
    width: 100%;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
    padding: 0;
}

header p {
    font-size: 1em;
    margin-top: 5px;
}

h3 {
    color: #333;
}

#autocompleteList {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    width: calc(100% - 10px);
    z-index: 1000;
}

#example-image {
    border-radius: 10px;
    cursor: pointer;
    display: block;
    max-width: 400px;
}

#game-container {
    display: grid;
    justify-items: center;
}

#guess-history {
    display: inline-block;
    padding: 10px;
    text-align: center;
}

#guess-history ul {
    list-style-type: none;
    padding: 0;
}

#guesses-remaining {
    margin-top: auto;
    text-align: center;
    max-width: 250px;
}

#hint-button {
    cursor: pointer;
    font-size: 16px;
    margin: 0 10px;
    padding: 10px;
}

#hint-container {
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: 0 20px;
    visibility: hidden;
}

#image-container {
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    margin: 5px auto;
    min-width: 250px;
    max-width: 550px;
    aspect-ratio: 1/1;
}

#image-credit {
    margin-top: 0px;
    max-width: 600px;
    text-align: right;
    width: 100%;
    display: block;
}

#main-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Creates three equal columns */
    grid-template-rows: 1fr;
    align-items: center;
}

#modal-caption {
    color: #ccc;
    display: block;
    margin: auto;
    max-width: 700px;
    padding: 10px 0;
    text-align: center;
    width: 80%;
}

#sar-image-today {
    border-radius: 10px;
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
}

#social-share {
    margin: 0px;
    text-align: center;
}

#social-share a {
    background-color: #1DA1F2;
    border-radius: 4px;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
}

#social-share a:hover {
    background-color: #0d95e8;
}

#submit-button {
    background-color: #008cba;
    border-color: #007ba7;
    border-radius: 4px;
    border: 2px solid #ddd;
    color: white;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
    padding: 10px;
}

#submit-button:hover {
    background-color: #007ba7;
}

#suggestionBox {
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

#user-guess {
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
    padding: 10px;
}

#user-guess,
#hint-button,
#submit-button {
    margin: 5px;
    padding: 10px;
}

.incorrect-guess {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    color: red;
    font-weight: medium;
    margin-top: 0;
    padding: 5px;
}

.info-area {
    margin: auto;
    text-align: center;
    width: 100%;
    display: grid;
    justify-items: center;
}

.input-group {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 300px;
    height: 8px;
    background: #ddd;
    border: none;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
    margin: 10px 0;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: #ddd;
    border: none;
    border-radius: 3px;
    height: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #4CAF50;
    border: none;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 2px #000;
    transition: background 0.3s, transform 0.3s;

}

input[type="range"]:focus::-webkit-slider-runnable-track {
    background: #ccc;
}

input[type="range"][orient="vertical"] {
    -webkit-appearance: slider-vertical;
    height: 175px;
    padding: 0 5px;
    width: 8px;
    writing-mode: bt-lr;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #45a049;
    transform: scale(1.1);
}

.interaction-area {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.link a {
    border-radius: 5px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.link a:hover {
    background-color: #ddd;
}

.max-width-container {
    margin: auto;
    max-width: 800px;
    width: 100%;
}

.modal {
    background-color: rgba(0, 0, 0, 0.9);
    height: 100%;
    left: 0;
    overflow: auto;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 700px;
    width: 80%;
    background-color: #fefefe;
    padding: 0px;
    border: 1px solid #888;
    text-align: left;
}

.modal-content-htp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
    max-width: 700px;
    width: 80%;
    background-color: #fefefe;
    padding: 0px;
    border: 1px solid #888;
}

.modal-content-htp ol {
    text-align: left;
    padding-left: 20px; /* Adjust padding to align the numbers properly */
}

.modal-content-htp li {
    margin: 10px 0; /* Add some spacing between list items */
}

nav {
    align-items: center;
    background: #f5f5f5;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 15px;
    padding: 0;
}

.nav-logo {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    justify-content: flex-start;
}

.nav-logo img {
    height: 50px;
    padding: 0px;
    margin-top: 10px;
}

.nav-tagline {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    text-align: center;
    width: auto;
}

.nav-tagline p {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.noscroll {
    height: 100%;
    overflow: hidden;
}

@keyframes pop {
    0% { transform: scale(0.85); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.slider-container {
    display: grid;
    text-align: center;
}

.slider-container label {
    margin-top: 10px; /* Add space between the label and the input */
    margin-bottom: 10px; /* Add space between the input and the next label */
}

body.modal-active,
body.modal-active #game-container,
body.modal-active #other-main-container {
    filter: blur(8px);
    pointer-events: none;
}

.city-country {
    border: 2px solid red;
    border-radius: 8px;
    padding: 5px;
    display: inline-block;
    margin-right: 0px; /* Optional: add margin for spacing */
}

.city-country.correct {
    border-color: green;
}

#brightness {
    margin: auto;
    width: 80%;
}

#contrast {
    margin: auto;
    width: 80%;
}

#distance-direction-hint {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    text-align: center;
}

footer {
    background-color: #f5f5f5;
    color: black;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding: 10px 0;
    margin-top: 20px;
}