/* General Body Style */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #ff7e5f, #feb47b); /* Gradient background */
    text-align: center;
    margin: 0;
    padding: 0;
    color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;  /* Centers content vertically */
    justify-content: center; /* Centers content horizontally */
}

/* Style for the audio button */
.audio-button {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 20px;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .audio-button:hover {
    background-color: #333;
    color: #fff;
  }
  
  .audio-button span {
    display: inline-block;
  }
  

/* Name Entry Section */
#name-entry {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 400px;
    text-align: center;
}

/* Styling the "Enter your name" label */
label {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
    display: block; /* Make the label a block element */
}

/* Styling the input field */
#user-name{
    font-size: 1rem;
    padding: 12px;
    width: 90%;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 2px solid #fff;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    transition: border-color 0.3s ease;
}

#age-and-start {
    display: flex; /* Arrange items in a row */
    justify-content: center; /* Center elements horizontally */
    align-items: center; /* Align elements vertically */
    gap: 10px; /* Reduce space between elements */
    margin-top: 1px; /* Space above the row */
}

#age-and-start label {
    font-size: 1.5rem;
    color: #fff;
    margin: 0; /* Remove extra margins */
    white-space: nowrap; /* Prevent text wrapping */
    display: flex; /* Align label text vertically */
    align-items: center;
}

#user-age {
    font-size: 1rem;
    padding: 12px; /* Uniform padding for height alignment */
    width: 120px; /* Adjusted width for better alignment */
    border: 2px solid #fff;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    margin: 0; /* Remove margin that might cause misalignment */
}

#age-and-start button {
    font-size: 1.2rem;
    padding: 12px 20px; /* Adjust padding to align height with input */
    border: none;
    border-radius: 8px;
    background-color: #feb47b;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0; /* Remove unnecessary margin */
    line-height: normal; /* Prevent button text shifting */
}

#age-and-start button:hover {
    background-color: #ff7e5f;
    transform: scale(1.05);
}


/* Focus effect for input field */
#user-name:focus {
    border-color: #feb47b;
    outline: none;
}

/* Style for the Start button */
button {
    padding: 15px 20px;
    margin-top: 10px;
    margin-left: 25px;
    margin-right: 30px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    background-color: #feb47b;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #ff7e5f;
    transform: scale(1.05);
}

/* Game Content and Image Display Section */
#game-content, #image-display, #level-select, #game-result {
    margin-top: 20px;
    font-size: 20px;
    padding: 100px;
    border-radius: 25px;
    background-color: rgba(0, 0, 0, 0.7); /* Same background as name entry */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Image container to hold the image and timer side by side */
.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 650px; /* Match the image height */
    position: relative;
}

/* Image styles */
img {
    width: auto;
    height: 650px;
    object-fit: contain;
    border: 5px solid #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

/* Timer and Skip button container */
.info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
}

/* Timer styles */
.timer, .skip-timer {
    font-size: 2.5rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

/* Timer styles on hover */
.timer:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Skip button styled like the timer */
#skip-button {
    font-size: 1.8rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Skip button hover effect */
#skip-button:hover {
    background-color: rgba(1, 0, 0, 0.4); /* Slightly different shade on hover */
    transform: scale(1.1);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Progress bar */
#progress-bar {
    width: 0%;
    height: 10px;
    background-color: #4caf50;
    border-radius: 5px;
    margin-top: 10px;
    transition: width 1s linear;
}

#image-timer {
    font-size: 24px;
    font-weight: bold;
}

/* Ensure the footer is fixed at the bottom of the page */
#footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50; /* Dark background color */
    color: #ecf0f1; /* Light text color */
    text-align: center;
    padding: 10px;
    font-size: 20px;
    font-family: Arial, sans-serif;
    opacity: 0; /* Start with hidden footer */
    animation: fadeIn 3s forwards; /* Fade-in effect for the footer */
}

/* Define the fadeIn animation */
@keyframes fadeIn {
    0% {
        opacity: 0; /* Start with no opacity */
    }
    100% {
        opacity: 1; /* Fully visible */
    }
}

/* Optional: Add hover effect to footer */
#footer:hover {
    background-color: #34495e; /* Slightly lighter shade on hover */
    cursor: pointer;
}
#answers-container {
    text-align: center; /* Align answers to the left */
    margin-top: 20px; /* Add some space above */
    padding: 10px; /* Add padding to the container */
    background-color: #795f5f; /* Optional: background color to distinguish answers */
    border: 1px solid #ddd; /* Optional: border around the answers */
    border-radius: 5px; /* Optional: rounded corners */
}

#answer-list {
    list-style-type: none; /* Remove default list bullet points */
    padding-left: 0; /* Remove padding from the left of the list */
}

#answer-list li {
    padding: 5px 0; /* Add space between answers */
    font-family: Arial, sans-serif; /* Optional: change font */
    font-size: 14px; /* Optional: adjust font size */
}
