* {
    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;
        height: unset;
    }
}

.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: #f45e7c;
    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: #fffdfd;
    color: white;
    margin-bottom: 10px;
    border-radius: 30px;
    text-decoration: none;
    border: 2px solid #eb6a84;
    transition: background-color 0.3s, height 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.subtitle:hover {
    padding: 25px;
    height: 120px;
    border: 2px solid #ee3872;
    box-sizing: border-box;
}

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

.subtitle .square-box {
    width: 90px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 15px;
    flex-shrink: 0;
    margin-left: 0px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.subtitle .square-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    margin-left: 0%;
}

.subtitle h3 {
    font-family: "Lora";
    font-size: 18px;
    color: #ef639b;
    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;
    background-color: #eb6a84;
    font-family: "Lora";
    color: white;
    margin-bottom: 10px;
    border-radius: 28px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

.subtitlequiz:hover {
    border: 2px solid #000000;
    box-sizing: border-box;
}



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

}
@media only screen and (max-width: 800px) {
    article {
        overflow-y: unset;
    }
}

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: #fffdfd;
    margin: 15px, 0;
    border-bottom: 2px solid #eb6a84;
}

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

.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: #f45e7c;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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


/* Second Section */

.section-two {
    position: sticky;
    top: 60px;
    z-index: 2;
    background-color: #fffdfd;
    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: #fffdfd;
    padding: 10px;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 115px;
    z-index: 1;
    margin-top: 15px; 
    margin-bottom: 20px; 
    padding: 10px 0;
}

.readings {
    background-color: #fffdfd;
    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: #f45e7c;
    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: #ef899e;
}


/* Fourth Section */

.section-four {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background-color: #fffdfd;
    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;
    background-color: #fffdfd;
    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;
}

.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: #eb6a84;
}

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

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

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

@media only screen and (max-width: 1200px) {
    .circle-button {
        width: 35px;
        height: 35px;
        font-size: 12px; 
    }

    .middle-title {
        font-size: 15px;
        margin-bottom: 10px;
        font-weight: 570;
     
    }
}

@media only screen and (max-width: 800px) {
    .circle-button {
        width: 40px;
        height: 40px;
        font-size: 14px; 
    }

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

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

    .middle-title {
        font-size: 18px;
        margin-bottom: 10px;
        font-weight: 570;
     
    }

    

}

@media only screen and (max-width: 560px) {
    .circle-button {
        width: 35px;
        height: 35px;
        font-size: 13px; 
    }

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

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

  
}

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

}


