* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lora";
    background-color: #ffffff;
}

.containerr {
    display: grid;
    grid-template-columns: 500px 1fr;
    background-color: #ffffff;
    gap: 20px;
    padding: 20px;
    width: 100vw;
    height: 100vh;
    margin-top: 1%;

}

@media only screen and (max-width: 780px) {
    .containerr {
        grid-template-columns: 1fr;
    }
}

.subtitless {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #ffffff00;
    padding: 0px;
    height: 100%;
    max-width: 97%;
}

.subtitles-content {
    font-weight: 700;
    font-size: 60px;
    background-color: rgba(250, 235, 215, 0);
    color: #11388b;
    text-transform: uppercase;
    padding: 0px 20px;
    border-radius: 5px;
}

.subtitles {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #ffffff00;
    padding: 10px 20px 20px 20px;
    border-radius: 10px;
    height: 90%;
}

.subtitle {
    padding: 25px;
    background-color: #F6FBFC;
    color: white;
    margin-bottom: 10px;
    border-radius: 30px;
    text-decoration: none;
    border: 2px solid #345882;
    transition: background-color 0.3s, height 0.3s;
    display: flex;
    /* Use flexbox for alignment */
    align-items: center;
    justify-content: space-between;
    /* Space between the box and the text */
    height: 100px;
}

.subtitle:hover {
    padding: 25px;
    height: 120px;
    border: 2px solid #0c85c1;
    /* Add a red border on hover */
    box-sizing: border-box;
    /* Ensure the border doesn't affect layout */
}

.subtitle .content {
    display: flex;
    flex-direction: column;
}

.subtitle .square-box {
    width: 90px;
    /* Fixed size for the square box */
    height: 90px;
    /* Match the aspect ratio or preferred size */
    background-color: rgba(255, 255, 255, 0);
    /* No background color */
    border-radius: 15px;
    /* Optional rounded corners */
    flex-shrink: 0;
    /* Prevent resizing */
    margin-left: 0px;
    overflow: hidden;
    /* Prevent image overflow */
    display: flex;
    /* Flexbox for centering */
    align-items: center;
    /* Center image vertically */
    justify-content: center;
    /* Center image horizontally */
}


.subtitle .square-box img {
    max-width: 80%;
    /* Ensure the image doesn't exceed the box's width */
    max-height: 80%;
    /* Ensure the image doesn't exceed the box's height */
    object-fit: contain;
    /* Scale the image to fit within the box while maintaining aspect ratio */
    margin-left: 0%;
}

.subtitle h3 {
    font-family: "Lora";
    font-size: 18px;
    color: #324A7D;
    margin-bottom: 5px;
}


.subtitle p {
    font-size: 15px;
    font-family: "Lora";
    font-weight: 450;
    color: rgb(65, 65, 74);
    text-align: left;
}

.subtitlequiz {
    padding: 0;
    /* Remove extra padding */
    background-color: #324A7D;
    font-family: "Lora";
    color: white;
    margin-bottom: 10px;
    border-radius: 28px;
    text-decoration: none;
    display: flex;
    /* Flexbox for alignment */
    align-items: center;
    /* Vertical centering */
    justify-content: center;
    /* Horizontal centering */
    height: 70px;
    /* Keep the height */
    font-size: 24px;
    /* Adjust font size for better visibility */
    font-weight: bold;
    /* Emphasize the text */
    text-transform: uppercase;
    /* Ensure all letters are uppercase */
}

.subtitlequiz:hover {
    border: 2px solid #000000;
    /* Add a red border on hover */
    box-sizing: border-box;
    /* Ensure the border doesn't affect layout */
}

/* .subtitle .square-box:hover {
width: 130px; 
height: 100px;
background-color: #ffffff00; 
border-radius: 15px; 
flex-shrink: 0; 
margin-left: 0px;
} */


/* General styling for the article sections */

article {
    display: flex;
    background-color: #F6FBFC;
    flex-direction: column;
    gap: 0px;
    /* Reduced gap between sections */
    padding: 20px;
    border-radius: 20px;
    /* padding: 15px; */
    border-radius: 40px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;

}

h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: black;

}

h3 {
    font-family: "Lora";
}


/* Section styling */
section {
    padding: 15px;
    border-radius: 0px;
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    background-color: #F6FBFC;
    margin: 15px, 0;
    border-bottom: 2px solid #345882;
}

/* First Section */
.section-one {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #F6FBFC;
}

.section-one h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 650;
    
}


.circle-button.topp-right {
    position: absolute;
    top: 1px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #32557C;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-button.top-right:hover {
    background-color: #4878ae;
}


/* Second Section */

.section-two {
    position: sticky;
    top: 60px;
    z-index: 2;
    background-color: #F6FBFC;
    display: flex;
    align-items: center;
    justify-content: center;


}

.center-text {
    font-size: 18px;
    text-align: center;
    color: #333;
}

/* Third Section */
.section-three {
    flex: 0.1;
    background-color: #F6FBFC;
    padding: 10px;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: sticky;
    z-index: 1;
    margin-top: 20px; /* Space from Section 2 */
    margin-bottom: 20px; /* Space to Section Readings */
    padding: 10px 0;
}

.readings {
    background-color:#F6FBFC;
    position: relative;
    margin-top: 20px;
    padding: 10px;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

}

/* Center content for title and readings */
.center-content {
    position: relative;
    z-index: 1;
}

.middle-title {
    font-size: 21px;
    margin-bottom: 10px;
    font-weight: 670;
 
}

/* .readings p {
        margin-bottom: 5px;
        font-size: 16px;
        color: #555;
    } */

/* Buttons for Section 3*/
.circle-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1d5ba1;
    color: white;
    border: none;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.circle-button.top-left {
    top: 5px;
    left: 5px;
}

.circle-button.top-right {
    top: 5px;
    right: 5px;
}

.circle-button:hover {
    background-color: #4878ae;
}


/* Fourth Section */

.section-four {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background-color: #F6FBFC;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-bottom: none;
}

.png-button {
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.memo-button{
    width: 75px;
    height: 75px;
    cursor: pointer;
    transition: transform 0.3s ease; 
}

.png-button:hover {
    transform: scale(1.1);
}

/* Scrollable Reading*/
.section-readings {
    flex: 1;
    overflow-y: auto;
    padding-top: 10px;
    padding-left: 17px;
    padding-right: 17px;
    /* Better readability */
    background-color: #F6FBFC;
    margin-top: 0;
}

.section-readings p {
    font-family: "Fanwood Text", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    margin-top: 0px;
    margin-bottom: 10px;
    color: #555;
    line-height: 1.4;
}

/* Stick to their positions */
.section-one,
.section-two,
.section-three,
.section-four {
    position: sticky;
}

/* Menu & memo button */

.list textarea {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    font-size: 20px;
    font-family: "Fanwood Text", serif;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.close-button {
    background: #ccc;
    color: black;
    margin-right: 10px;
    margin-top: 10px;
}

.list {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.list-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 40%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.list-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.list a {
    text-decoration: none;
    color: #154276;
}

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

.list button {
    background-color: #275282;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.list button:hover {
    background-color: #4878ae;
}

/* Add media query for responsive scaling */
@media only screen and (max-width: 800px) {
    .circle-button {
        width: 40px;
        height: 40px;
        font-size: 14px; /* Adjust font size */
    }

    .png-button {
        width: 40px;
        height: 40px;
    }

    .memo-button {
        width: 50px;
        height: 50px;
    }
}

@media only screen and (max-width: 500px) {
    .circle-button {
        width: 35px;
        height: 35px;
        font-size: 13px; /* Further adjustment for smaller screens */
    }

    .png-button {
        width: 40px;
        height: 40px;
    }

    .memo-button {
        width: 50px;
        height: 50px;
    }
}

@media only screen and (max-width: 800px) {
    section {
        margin: 15px 0; 
    }

}

