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

body {
    font-family: Arial, sans-serif;
    background-color: #d1e3e7;
    height: 100vh; /* Full height */
    width: 100vw; /* Full width */
    overflow: hidden; /* Prevent scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-layout {
    height: 100%;
    width: 600px;
}

.book-icon {
    height:70px;
    vertical-align: middle;
    margin-left: -3px;
}

.BR {
    font-family: "Chewy", Arial;
    font-size: 50px;
    color: #666666ff;
    vertical-align: middle;
}

.logo {
    position: absolute;
    top: 10px;
    left: 10px;
}

.top-right {
    display: flex;
    position: absolute;
    top: 30px;
    right: 60px;
    gap: 60px;
}

.icon-top {
    height: 30px;
    cursor: pointer;
    transition: 250ms;
}
.icon-top:hover {
    opacity: 0.7;
    transition: 250ms;
}


.icons {
    display: flex;
    justify-content: left;
    margin-top: 75px; /* Adjusted for more spacing */
    gap: 40px;
    position: relative;
    top: 10%;
}

.icon {
    height: 25px;
    cursor: pointer;
    fill: rgb(255, 0, 0);
    transition: 250ms;
}

.icon:hover {
    opacity: 0.7;
    transition: 250ms;
}

/* Popup Overlay */
.popup {
    display:none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Popup Content */
.popup-content-question {
    position: relative;
    height: 250px;
    width: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content-info {
    position: relative;
    height: 350px;
    width: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content-setting {
    position: relative;
    height: 190px;
    width: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content-login {
    position: relative;
    height: 270px;
    width: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}


.popup-text {
    font-size: 20px;
    display: flex;
    justify-content: left;
    align-items: center;
    margin-top: 20px;
    color: rgba(102,102,102)
}

.vary-wpm {
    margin-left: 72px;
}

.punc-delay {
    margin-left: 20px;
}

.login-button{
    cursor: pointer;
}

.register-link{
    cursor: pointer;
}

.back-to-login-link {
    cursor: pointer;
}

.logout-link {
    cursor: pointer;
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}


.input-area {
    display: flex;
    justify-content: center;
    position: relative;
    top: 11%;
}

textarea {
    width: 100%;
    height: 350px; /* Increase for more typing space */
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 20px;
    outline: none;
    background-color: rgb(251, 251, 251);
    resize: none;
    color: rgb(102, 102, 102)
}

textarea:focus {
    border-color: #999;
}

.icons-below {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 14%; /* Positioned further down for alignment */
}



.play-icon {
    height: 60px;
    cursor: pointer;
    margin-left: 10px;
    transition: 250ms;
}

.play-icon:hover {
    opacity: 0.7;
    transition: 250ms;
}

.refresh-icon {
    height: 60px;
    cursor: pointer;
    margin-right:20px;
    transition: 250ms;
}

.refresh-icon:hover {
    opacity: 0.7;
    transition: 250ms;
}

.text-to-read {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 11%;
    width: 100%;
    height: 350px; /* Increase for more typing space */
}

.actual-text {
    /* width: 100%;
    height: 250px; Increase for more typing space */
    font-size: 50px;

}
