* {
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

h1 {
    text-align: center;
    color: #000; /* Changed to black */
}

h2, h3 {
    text-align: center;
    margin-top: 20px;
    color: #000; /* Changed to black */
}

.score-container {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    font-weight: bold;
    background-color: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
    border: 2px solid #333;
    color: #000; /* Changed to black */
}

.instructions {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #000; /* Changed to black */
}

.em-waves-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.em-wave {
    flex: 1;
    text-align: center;
    padding: 15px 5px;
    border: 2px solid #333;
    margin: 0 2px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    color: #000; /* Changed to black */
}

/* EM wave category colors */
#gamma {
    background-color: #FFD6E0;
}

#xray {
    background-color: #C5E1FF;
}

#ultraviolet {
    background-color: #D9C5FF;
}

#visible {
    background-color: #C5FFD9;
}

#infrared {
    background-color: #FFF3C5;
}

#microwave {
    background-color: #FFD9C5;
}

#radio {
    background-color: #C5FFFF;
}

.em-wave.highlight {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.application-container {
    height: 250px;
    border: 2px solid #333;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#application-display {
    max-width: 80%;
    max-height: 80%;
    cursor: move;
    text-align: center;
    padding: 10px;
    color: #000; /* Changed to black */
}

#application-display img {
    max-width: 100%;
    max-height: 150px;
    margin-bottom: 10px;
}

.feedback-area {
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #000; /* Changed to black */
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: all 0.3s;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

#restart-btn {
    background-color: #f44336;
}

#restart-btn:hover {
    background-color: #d32f2f;
}

.correct-answer {
    color: green;
    font-size: 24px;
}

.incorrect-answer {
    color: red;
    font-size: 24px;
}

/* For dragging effect */
.dragging {
    opacity: 0.5;
}