

body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.banner {
    position: relative;
    text-align: center;
    padding: 2rem;
    background-color: #ffeaa7;
    width: 100%;
}

.banner h1 {
    font-size: 1.5rem;
    color: #d63031;
}

.banner h2 {
    font-size: .75rem;
    color: #0984e3;
}

/* Page Container */
.page-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
}

/* Hide non-active pages */
.hidden {
    display: none !important;
}

 
@font-face {
      font-family: 'WMN';
      src: url('fonts/EMS_Serenissima.otf') format('truetype'),
	   url('fonts/EMS_Serenissima.woff2') format('woff2'),
           url('fonts/EMS_Serenissima.woff') format('woff');
      font-weight: normal;
      font-style: normal;
      font-display: swap;
    }
    
.music-font {
    font-family: 'WMN', cursive !important;
    font-size: 55pt !important;
    font-weight: normal !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-rendering: optimizeLegibility !important;

    /* Force visibility */
    visibility: visible !important;
    display: inline !important;
    opacity: 1 !important;
    color: black !important;
 }


.page {
    width: 100%;
    margin-top: 10px; /* Adjust as needed for small space below the banner */
}

/* Main Page Styling */
#main-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px; /* Minimize space above the exercise list */
}

#exercise-list {
    width: 80%;
    border: 1px solid #66ccff;
    max-height: 40vh; /* Limit height to 40% of viewport */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center buttons within the list */
    margin-bottom: 20px;
}

/* Button Styles */
button {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    font-size: 1.2em;
    background-color: #55efc4; /*background-color: #66ccff;*/
    color: #2d3436; /*color: black;*/
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Settings Page Styles */
.settings-container {

    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px; /* Adjust if needed */
    padding-top: 20px;
}

/*     display: flex; */
/*     flex-direction: column; */
/*     align-items: center; */
/*     justify-content: center; */
/*     height: 100vh; */
/*     gap: 20px; */
/*     margin-top: 10px; /\* Adjust if needed *\/ */
/*     padding-top: 20px; */
/* } */

label, input[type="number"] {
    font-size: 1.2em;
}

.setting-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    text-align: center;
}

/* #previous-page-btn { */
/*     background-color: #55efc4; /\*background-color: #66ccff;*\/ */
/*     color: #2d3436; /\* color: black; *\/ */
/*     padding: 10px; */
/*     font-size: 1.2em; */
/*     width: 80%; */
/*     margin: 10px 0; */
/*     border: none; */
/*     border-radius: 5px; */
/*     cursor: pointer; */
/* } */

/* #back-btn, #current-exercise-btn { */
/*     background-color: #ffcc66; */
/*     color: #333; */
/*     padding: 15px; */
/*     font-size: 1.5em; */
/*     border: none; */
/*     border-radius: 8px; */
/*     cursor: pointer; */
/* } */

/* /\* Currently Playing Page Styles *\/ */
/* .currently-playing-container { */
/*     display: flex; */
/*     align-items: center; */
/*     justify-content: center; */
/*     height: 100vh; */
/*     margin-top: 10px;  */
/* } */

/* Currently Playing Page Styles */
.currently-playing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px; /* Adjust if needed */
    padding-top: 20px;
}

/* Adjust button position and spacing */
#back-btn, #current-exercise-btn {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px; /* Space below the button */
    background-color: #55efc4;
    color: #2d3436;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Info button in banner */
#info-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    background-color: #d63031;
    color: white;
    cursor: pointer;
    border: none;
}

#info-btn:hover {
    background-color: #c0392b;
}

/* Info modal overlay */
.info-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.info-overlay.show {
    display: flex;
}

.info-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.info-container h2 {
    margin: 0 0 20px 0;
    font-size: 1.8rem;
    color: #d63031;
}

.info-container h3 {
    margin: 25px 0 10px 0;
    font-size: 1.1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.info-container p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #555;
}

.info-container ol,
.info-container ul {
    margin: 0 0 12px 20px;
    line-height: 1.8;
    color: #555;
}

.info-container li {
    margin-bottom: 6px;
}

.info-container strong {
    color: #0984e3;
}

.info-close-btn {
    background-color: #55efc4;
    color: #2d3436;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
}

.info-close-btn:hover {
    background-color: #00b894;
    color: white;
}

@media (max-width: 480px) {
    .info-container {
        padding: 25px 20px;
        max-height: 85vh;
        margin: 10px;
    }
    .info-container h2 { font-size: 1.4rem; }
    .info-container h3 { font-size: 1rem; }
    .info-container p,
    .info-container li { font-size: 0.9rem; line-height: 1.5; }
}

/* Styling for the exercise description */
#exercise-instructions {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1em;
    color: #333;
    background-color: #dfe6e9;
    border-radius: 5px;
    overflow: auto;
}
