
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #71da7a, #424242);
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#loadingContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #282c34;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#logoContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loadingLogo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

#progressBar {
    width: 200px;
    height: 20px;
    background-color: #444;
    border-radius: 10px;
    overflow: hidden;
}

#progress {
    width: 0;
    height: 100%;
    background-color: #71da7a;
    transition: width 0.3s ease;
}


#title {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Logo Style */
#logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 80px;
    height: auto;
    opacity: 0.9;
    z-index: 10;
}

#controls {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 8px solid #f1f1f1;
}

#controls label {
    font-weight: bold;
    font-size: 12px;
}

select, input[type="range"], button {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: none;
}

input[type="range"] {
    appearance: none;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
}

button {
    background-color: #397b52;
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #af8938;
}

#main {
    display: flex;
    align-items: center;
}

#container {
    width: 600px;
    height: 450px;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    margin-right: 150px;
    border: 10px solid white;
}

#calcInfo {
    color: white;
    font-size: 14px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
}

/* Tooltip Styles */
.tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
}

.tooltip.show {
    display: block;
}

.tooltip-frequency {
    background-color: #ffcc00;
}

.tooltip-amplitude {
    background-color: #00cc99;
}

.tooltip::after {
    content: "";
    position: absolute;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
    top: -10px;
    left: 20px;
}

/* Quiz Button Style */
#quiz {
    background-color: rgb(14, 89, 14);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#quiz:hover {
    background-color: rgb(21, 104, 21);
}

#quizResults {
    margin-top: 20px;
    font-size: 1.2em;
    text-align: center;
}
