* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #0a0a2a;
    color: #fff;
    background-image: linear-gradient(to bottom, #0a0a2a, #1a1a4a);
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}

.instructions {
    font-size: 1.5em;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin: 15px auto;
    width: fit-content;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-button {
    display: inline-block;
    margin: 10px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#game-container {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#start-screen, #game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10;
    color: #fff;
}

#game-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

#solar-system-container {
    position: relative;
    width: 100%;
    height: 75%;
    background: linear-gradient(to bottom, #000000, #0a0a2a);
    border-radius: 10px;
    overflow: visible;
    padding-bottom: 30px;
    min-height: 350px;
}

#sun {
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #ffff00, #ff9900);
    border-radius: 50%;
    top: 50%;
    left: 8%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px #ff9900, 0 0 60px #ffff00;
    z-index: 2;
}

#orbits-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 8%;
    transform: translate(-50%, -50%);
}

.planet-slot {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 3;
    min-width: 40px;
    min-height: 40px;
}

.planet-slot.highlight {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.planet-slot.filled {
    background-color: transparent;
    border: none;
}

.planet-slot.correct {
    animation: pulse 1s ease-in-out;
}

.planet-slot.incorrect {
    animation: shake 0.5s ease-in-out;
}

.planet-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#planets-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 10px;
    margin: 20px 0;
    min-height: 100px;
    padding-bottom: 15px;
    width: 100%;
}

.planet-card {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: grab;
    user-select: none;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    overflow: visible;
    z-index: 5;
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.planet-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.planet-card.dragging {
    opacity: 0.8;
    transform: scale(1.1);
    cursor: grabbing;
    z-index: 10;
}

.planet-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.planet-name {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 0 5px #000;
    font-weight: bold;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2px 5px;
    border-radius: 10px;
    margin: 0 auto;
    width: fit-content;
}

#check-button {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#check-button:hover {
    background-color: #2980b9;
}

#feedback-container {
    height: 60px;
    margin: 15px 0;
    font-size: 1.5em;
    font-weight: bold;
}

.feedback-message {
    padding: 10px 25px;
    border-radius: 10px;
    display: inline-block;
    animation: fadeInOut 2s forwards;
}

.feedback-message.correct {
    background-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.feedback-message.wrong {
    background-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.planet-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    text-align: left;
    max-width: 200px;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bonus-time {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: rgba(46, 204, 113, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    animation: bonusAnimation 2s ease-in-out;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes bonusAnimation {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(46, 204, 113, 0.8); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

button {
    padding: 12px 25px;
    margin: 15px 0;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:hover {
    background-color: #2980b9;
}

.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .instructions {
        font-size: 1.2em;
        min-width: auto;
        width: 90%;
    }
    
    #game-container {
        height: 700px;
    }
    
    #solar-system-container {
        height: 60%;
    }
    
    .planet-card {
        width: 60px;
        height: 60px;
    }
    
    #sun {
        width: 60px;
        height: 60px;
    }
} 