



/* General body styling */
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;
}

/* Title styling */
#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 styling */
#logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 80px;
    height: auto;
    opacity: 0.9;
    z-index: 10;
}

/* Loading Screen */
#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: 10px;
    background-color: #ccc;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#progress {
    width: 0;
    height: 100%;
    background-color: #71da7a;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Controls container */
#controls {
    position: absolute;
    top: 20px;
    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;
    margin-left: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

#controls label {
    font-weight: bold;
    font-size: 12px;
}

/* Slider Styling */
input[type="range"] {
    appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
    transition: background 0.3s ease;
}

/* Slider thumb (grey) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Tooltip styling */
.tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
}

.tooltip.show {
    display: block;
}

/* Specific tooltip styling */
.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;
}

/* Container for motor visualization */
#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-left: -200px;
    margin-right: 50px;
    border: 10px solid white;
}

/* Calculation Info */
#calcInfo {
    color: white;
    font-size: 14px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
}

/* Button styling */
button {
    background-color: #397b52;
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    padding: 10px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #af8938;
}

/* Graph container */
#graphContainer {
    display: none;
    margin-top: 20px;
    width: 600px;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#graphCanvas {
    width: 100%;
    height: 100%;
}

/* Show Graph container when toggled */
#graphContainer.show {
    display: block;
}

/* Quiz Button Styling */
#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);
}

/* Quiz result section */
#quizResults {
    margin-top: 20px;
    font-size: 1.2em;
    text-align: center;
}

.quiz-button {
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
    transition: background-color 0.3s ease;
}

/* Quiz navigation buttons */
#prevButton {
    background-color: #FFC107;
}

#prevButton:hover {
    background-color: #FFA000;
}

#nextButton {
    background-color: #2196F3;
}

#nextButton:hover {
    background-color: #1976D2;
}

#backButton {
    background-color: #f44336;
}

#backButton:hover {
    background-color: #e53935;
}
