/* styles.css */

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* Light gray background color */
}

h1 {
    margin-top: 20px;
}

#settings {
    margin: 20px auto;
    width: 300px;
    text-align: left;
}

#settings label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

#settings input[type="number"], #settings select {
    width: 100px;
    padding: 5px;
    margin-left: 5px;
}

#playbackOptions label {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
}

#waveformSelection {
    font-size: 16px;
}

#waveformSelection select {
    width: 120px;
    padding: 5px;
}

#rootFrequency label {
    font-size: 16px;
}

#rootFrequency input[type="number"] {
    width: 80px;
    padding: 5px;
    margin-left: 5px;
}

#generateButton {
    padding: 8px 16px;
    margin-top: 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 4px;
}

#generateButton:hover {
    background-color: #218838;
}

/* Reset Score Button Styling */
#resetScoreButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; /* Set desired width */
    height: 40px; /* Set desired height */
    border-radius: 8px; /* Rounded corners for a rectangle */
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px #0000001a;
    margin-top: 130px; /* Adjust spacing as needed */
}

#resetScoreButton:hover {
    background-color: #c82333;
}

#container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 50px auto 0 auto;
    border: 1px solid #f0f0f0;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5%; /* Add padding to prevent overflow */
}

.interval-point {
    position: absolute;
    border-radius: 50%;
    background-color: #f0f0f0;
    line-height: normal;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edo-interval {
    background-color: #d1ecf1; /* Light blue */
    border: 2px solid #0c5460; /* Dark blue border */
}

.ji-interval {
    background-color: #d4edda; /* Light green */
    border: 2px solid #155724; /* Dark green border */
}

#playButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f0b30d;
    color: #ffffff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px #0000001a;
    margin-top: 0px; /* Adjust spacing as needed */
}

#playButton:hover {
    background-color: #c98b06;
}

/* Play Button Disabled State */
#playButton:disabled {
    background-color: #a77201; /* Gray color */
    cursor: not-allowed;
    opacity: 0.6;
}

#feedback {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

#correctInterval {
    position: absolute;
    top: 25%; /* Adjusted to position beneath feedback */
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #000000;
    font-weight: bold;
}

#scoreBoard {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 18px;
}

#correctScore {
    color: #008000;
}

#incorrectScore {
    color: #ff0000;
}

/* Hover Effect for Interval Points */
.interval-point:hover {
    transform: scale(1.1);
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: #00000080;
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888888;
    width: 80%; 
    max-width: 600px;
}
/* CSS for close button */
.close {
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
}
.close:hover, .close:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}

#repeatButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; /* Set desired width */
    height: 40px; /* Set desired height */
    border-radius: 8px; /* Rounded corners for a rectangle */
    background-color: #007bff;
    color: #ffffff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px #0000001a;
    margin-top: 70px; /* Adjust spacing as needed */
}

#repeatButton:hover {
    background-color: #0056b3;
}

#openSettingsButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; /* Set desired width */
    height: 40px; /* Set desired height */
    border-radius: 8px; /* Rounded corners for a rectangle */
    background-color: #a8a8a8;
    color: #ffffff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px #0000001a;
    margin-top: -70px; /* Adjust spacing as needed */
}

#openSettingsButton:hover {
    background-color: #6e6e6e;
}