/* General reset and body styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body { */
/*     font-family: Arial, sans-serif; */
/*     background-color: #f7f9fc; */
/*     color: #333; */
/*     display: flex; */
/*     justify-content: center; */
/*     align-items: center; */
/*     height: 100vh; */
/* } */

body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
    color: #333;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;    /* Align elements to the center horizontally */
    min-height: 100vh;
}

/* /\* Banner styles *\/ */
/* .banner { */
/*     text-align: center; */
/*     padding: 2rem; */
/*     background-color: #ffeaa7; */
/*     width: 100%; */
/*     position: absolute; */
/*     top: 0; */
/* } */

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

.banner {
    position: relative;
    text-align: center;
    padding: 2rem;
    background-color: #ffeaa7;
    width: 100%;
    margin-bottom: 20px; /* This adds a small margin below the banner */
}

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

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

/* Centered container with fixed dimensions */
/* .container { */
/*     margin-top: 10px; */
/*     display: flex; */
/*     justify-content: center; */
/*     align-items: center; */
/*     height: 100%; /\* Fill the viewport height *\/ */
/* } */

/* .container { */
/*     margin-top: calc(2rem + 20px); /\* Adjust based on the padding of the banner *\/ */
/*     display: flex; */
/*     justify-content: center; */
/*     align-items: center; */
/*     height: 100%; /\* Fill the viewport height *\/ */
/* } */

.container {
    margin-top: 5px; /* Adds a small margin below the banner */
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Adjust the height as needed */
}

.metronome-container {
    display: flex;
    flex-direction: column;
    /* margin-top: 10px; */
    gap: 1rem;
    align-items: center;
    text-align: center;
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
    height: 400px; /* Fixed size container */
}

/* Fixed size input */
input[type="number"] {
    padding: 0.5rem;
    font-size: 1rem;
    border: 2px solid #dcdde1;
    border-radius: 5px;
    width: 200px; /* Fixed width */
    height: 50px; /* Fixed height */
    text-align: center;
}

/* Button styles - Flexbox for centered text */
.btn {
    padding: 1rem;
    background-color: #55efc4;
    color: #2d3436;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    width: 200px; /* Fixed width */
    height: 50px; /* Fixed height */

    /* Flexbox for centering text */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn:hover {
    background-color: #81ecec;
    transform: scale(1.05);
}

.display-row {
    display: flex;
    gap: 1rem; /* Space between the two display areas */
}


/* Fixed size display */
.display {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #ffeaa7;
    color: #2d3436;
    border-radius: 10px;
    font-size: 1.5rem;
    width: 90px; /* Fixed width */
    height: 50px; /* Fixed height */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center; /* Center text vertically */
}

/* Footer styles */
footer {
    padding: 1rem;
    text-align: center;
    background-color: #ffeaa7;
    width: 100%;
    position: absolute;
    bottom: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
    .banner h1 {
        font-size: 2rem;
    }

    .metronome-container {
        padding: 1.5rem;
        width: 90%; /* Allow some flexibility on smaller screens */
        height: auto; /* Allow height to adjust */
    }

    .btn {
        font-size: 1rem;
        width: 150px; /* Slightly smaller buttons on mobile */
        height: 40px;

        /* Ensure text is still centered on smaller buttons */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .display {
        font-size: 1.2rem;
        width: 65px; /* Smaller display on mobile */
        height: 40px;
    }

    input[type="number"] {
        width: 150px; /* Smaller input on mobile */
        height: 40px;
    }
}

/* Info button in banner */
#info-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    padding: 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: 600px) {
    .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; }
}
