/* General Styles */
:root {
    --bg-color: #1a1a2e;
    --text-color: #e0e0e0;
    --primary-color: #0f3460;
    --secondary-color: #e94560;
    --accent-color: #533483;
    --border-color: #2e2e4a;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #021572 100%);
    color: white;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

main {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* Star Display */
.star-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.star {
    width: 150px;
    height: 150px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 50px 20px rgba(255, 255, 255, 0.7);
    transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.star-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Controls */
.controls {
    margin: 40px 0;
}

label {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

#temp-slider {
    width: 80%;
    max-width: 500px;
    -webkit-appearance: none;
    height: 8px;
    background: linear-gradient(to right, #ff4444, #ff8844, #ffff44, #ffffff, #4488ff, #0044ff);
    border-radius: 10px;
    outline: none;
    margin: 20px 0;
    transition: background 0.2s ease-in-out;
}

#temp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#temp-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#temp-slider:focus {
    outline: 3px solid #4ecdc4;
    outline-offset: 2px;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.preset-buttons button {
    background: white;
    border: none;
    color: black;
    padding: 10px 15px;
    font-size: 1.3em;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-buttons button:hover,
.preset-buttons button:focus {
    background: linear-gradient(45deg, #d13138, #de7b80);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Info Display */
.info-display {
    margin-top: 20px;
}

.temp-display {
    font-size: 2em;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.star-type-display {
    font-size: 1.2em;
    color: white;
}

/* Instructions and Classification */
.instructions,
.star-classification {
    background-color: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
    border: 2px solid #4ecdc4;
}

.instructions h4,
.star-classification h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
}



.instructions ul,
.star-classification ul {
    list-style: none;
    padding: 0;
    font-size: 1.3em;
}

.instructions li,
.star-classification li {
    margin-bottom: 8px;
}

.instructions li strong,
.star-classification li strong {
    color: white;
}

/* Accessibility Enhancements */
/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better keyboard navigation */
button:focus,
input[type="range"]:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 600px) {
    main {
        padding: 20px;
    }

    .star {
        width: 120px;
        height: 120px;
    }

    .star-glow {
        width: 150px;
        height: 150px;
    }

    #temp-slider {
        width: 95%;
    }

    .preset-buttons {
        flex-direction: column;
    }
}