/* Common styles */
body, header, main, footer {
    margin: 8px;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

main h3 {
    text-align: center;
}

/* Header styles */
header {
    background: linear-gradient(to right, #ddd, #333); 
    color: #fff; 
    padding: 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.image-container {
    margin-right: 15px; 
}

.icon {
    max-width: 100px;
    height: auto;
}

.text-container {
    flex: 1;
    text-align: right;
}

.title, .subtitle {
    margin: 0;
}

.title {
    font-size: 1.5rem;
}

.subtitle {
    font-size: 1.2rem;
}

/* Main content styles */
main {
    margin: 50px 150px;
    font-size: 1.2rem;
}

main hr {
    width: 100%;        
    height: 10px;
    background-color: rgb(144, 238, 144);
    margin: 20px 0;
    border-radius: 10px;
}

main p {
    padding: 10px;
}

.image-caption, .in-text-image {
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 30px;
}

.in-text-image {
    margin-right: 0px; 
    width: 350px;
    height: auto;
}

.caption {
    flex: 2;
    font-weight: initial;
    font-size: 0.9rem;
    text-align: center;
    font-style: italic;
}

/* Styled boxes */
.green-square {
    background-color: rgb(144, 238, 144);
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
}

.green-square2 {
    background-color: rgb(144, 238, 144);
    padding: 1px;
    margin: 20px;
    border-radius: 10px;
    text-align: center;
}


.green-square p, .green-square2 {
    color: #333;
    margin: 0;
}

.use-sample {
    background: linear-gradient(to right, #fff, #fff, rgb(173, 243, 245));
    padding: 1px;
    margin: 20px;
    border-radius: 10px;
    text-align: right;
    font-style: italic;
    font-size: 1rem;
}

.use-sample2 {
    background: linear-gradient(to right, rgb(173, 243, 245), #fff, rgb(173, 243, 245));
    border-radius: 10px;
    font-style: italic;
    font-size: 1rem;
}

/* Buttons */

.continue-wrapper  {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* Adjust this based on your spacing preference */
}

.type-space {
    background-color: #f2f8ff;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    border-radius: 3px;
}

.continue2 {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    border-radius: 3px;
}

.options {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Adjust the number of columns as needed */
    gap: 20px; /* Adjust the gap between buttons as needed */
    max-width: 600px; /* Adjust the maximum width of the grid container as needed */
    margin: 20px;
}

.option-button {
    border: 1;
    color: #000;
    margin: 10px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
    text-align: center;
}

.option-button.disabled {
    background-color: gray;
    pointer-events: none;
}

.blank-button {
    color: #000;
    border: 1;
    margin: -3 0 0;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 3px;
    text-align: center;
    display: inline-block; 
    vertical-align: middle;
}

.blank-button.correct {
    background-color: green;
    color: #fff;
}

.blank-button.clicked {
    background-color: gray;
}


.blank-button.incorrect {
    background-color: red;
    color: #fff;
}

#cont-if-fin.disabled {
    background-color: gray;
    pointer-events: none;
}

.button-clicked {
    background-color: gray;
}

.continue {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    border-radius: 3px;
}

.continue a {
    text-decoration: none;
    color: #fff;
}

.continue:hover {
    background-color: #0056b3;
}

/* Footer styles */
footer {
    background: linear-gradient(to right, #ddd, #333); 
    color: #fff; 
    padding: 4px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    text-decoration: none;
}

footer .footer-icon {
    width: 60px;
    height: auto;
    margin-right: 10px;
}

footer .footer-text{
    flex: 1;
    text-align: right;
    margin-left: 10px;
}

footer .footer-text a {
    text-decoration: none;
    color: inherit;
    font-size: .7rem;
    font-weight: 700;
}

footer .footer-text a:hover {
    color: #F5F5F5;
}

/* Style the word choice buttons */
.word-choice {
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin: 5px;
}

.word-choice:hover {
    background-color: #0056b3;
}

.correct-answer {
    background: linear-gradient(to right, rgb(90, 236, 97), #fff, #fff);
}

.incorrect-answer{
    background: linear-gradient(to right,rgb(243, 131, 87), #fff, #fff);
}

/* Media Queries for Responsive Design */
@media (max-width: 909px) {
    .image-caption{
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    /* Adjust styles for smaller screens here */
    header {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }
    .image-caption{
        flex-direction: column;
    }
    .image-container {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .text-container {
        text-align: center;
    }

    .title {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    main {
        margin: 20px;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for even smaller screens here */
    header {
        padding: 5px;
    }
    .image-caption{
        flex-direction: column;
    }

    .title {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    main {
        margin: 10px;
    }
}
