/* CSS provided by Copilot and adapted   */        
body {
    background-image: url('../images/london-eye-wide-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Added to prevent background image from repeating */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;  /* Changed from height to have image covering full screen height */
    margin: 0;
    flex-direction: column;
}
.logo {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.lead {
    font-size: 1.3rem;
    margin-top: -0.8rem;
    margin-bottom: 3rem;
}

.container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    min-height: 38vh;

}

.changeable a {
    text-decoration: none;
    color: #3c4a3f;
}

/* custom style for index.html container */
.custom-container {
    max-width: 66vw; /* Adjusted max-width */
    margin: 0 auto; /* Center the container */
}

#img-logo {
    width: 200px;
    height: auto;
    margin: -20px 20px 10px 20px;
}

/* Style for results image */
.small-image {
    width: 150px;
    height: auto;
    margin: 20px 0;
}

i{
    font-size: 1.5rem;
    color: #3c4a3f;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* Style for categories buttons */
.category-buttons .btn {
    flex: 1 1 calc(45% - 20px); /* Adjusted flex-basis to reduce button width */
    padding: 10px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: #3c4a3f;
    background-color: #b6e3fd;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px; /* Added margin to increase space between buttons */
}

.category-buttons .btn:hover {
    background-color: #a0d4f7; /* Change background color on hover */
    color: white; /* Change text color on hover */
}



.category-buttons button {
    flex: 1;
    margin: 0 10px;
}

.category-buttons i {
    min-width: auto;
    padding-right:2rem;

}

.category-buttons i:hover {
    color: white; /* Change text color on hover */
}

/* Style for Play and Rules buttons */
.changeable .button {
    display: block;
    width: 100%;
    margin: 10px -10px;
    padding: 10px;
    font-size: 2rem;
    font-family: 'Arial', sans-serif;
    text-align: center;
    text-decoration: none;
    color: black;
    background-color: #b6e3fd;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.changeable .button:hover, .changeable .button i:hover{
    background-color: #a0d4f7; /* Change background color on hover */
    color: white; /* Change text color on hover */
}

/* Style for Home button */
.changeable #home {
    width: 20%;
    padding: 5px 10px;
    font-size: 14px;
    display: inline-block;
    background-color: white;
    border: black 1px solid;
}

#home:hover {
    background-color: #a0d4f7; /* Change background color on hover */
    color: #3c4a3f; /* Change text color on hover */
}

/* Style for game container */
#quiz-container {
    min-height: 45vh;
}

#optionSet button{
    min-width: 10rem;
    min-height: 4rem;
    cursor: pointer;
    margin-top: 1rem;
}

/* Style to hide nextButton onLoad */
#nextButton i {
    display: none;
    font-size: 2rem;
    color: #008fe5;
}

#nextButton:hover {
    background-color: #a0d4f7; /* Change background color on hover */
    color: white; /* Change text color on hover */
}

/* Style for feedback text */
#feedback {
    min-height: 3rem;
    padding: 0;
    width: 100%;
    font-size: 1rem;
    margin-top: 0.8rem;
    text-align: center;
}

#feedback:empty {
    visibility: hidden; /* Hide the element but still take up space */
}

#feedbackImage {
    width: 100px;
    height: auto;
    margin: 20px 0;
}

.feedbackBtn {
    width: 10rem;
    display: block;
    margin: 0 auto; /* Center align the button */
}

#questionCounter {
    font-size: 1.5rem;
    margin-top: 1rem;
    display:inline-block;
}

#questionImage{
    max-width: 300px;
    margin-top:-2rem;
}

.btn-success {
    background-color: #206537;
    color: white;
    cursor: pointer;
}

/* bottom margin manually changed botton property from Copilot code 
as not starting straight from bottom of the page */
.footer {
    background-color: #BBE8F9;
    position: fixed;
    bottom: 0;
    text-align: center;
    width: 100%;
    opacity: 0.8;
    height: 4vh;  /* Adjusted height to get footer shorter */
}

.footer a {
    margin: 0 10px;
}

/* icons provided to Copilot when asked to help with coding */ 
.footer i{
    font-size: 1.8rem;
    color: #3c4a3f;
    padding:0.2rem;  /* Adjusted padding to make icons more visible */
}

/* Media query for smaller screens */
@media (max-width: 767px) {
    .category-buttons .btn {
        flex: 1 1 100%;
        margin: 10px 0; /* Adjusted margin for mobile */
    }
}