/* Mario Kart World Randomizer Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
    border: 3px solid #FF6B35;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #FF6B35;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

header p {
    color: #2E8B57;
    font-size: 1.2rem;
    font-weight: bold;
}

header .subtitle {
    color: #555;
    font-size: 1rem;
    font-weight: normal;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Controls Styles */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.player-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.player-selector label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4169E1;
}

.player-selector select {
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid #FF6B35;
    border-radius: 10px;
    background: white;
    color: #333;
    cursor: pointer;
}

.randomize-button, .re-roll-button {
    background: linear-gradient(45deg, #FF6B35, #FFD700);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.randomize-button:hover, .re-roll-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #FF8C42, #FFE135);
}

/* Results Styles */
.results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.player-card {
    background: linear-gradient(135deg, #FFF8DC, #F0F8FF);
    border: 3px solid #4169E1;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
}

.player-title {
    color: #FF6B35;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.character-section, .kart-section {
    margin-bottom: 15px;
}

.character-section h3, .kart-section h3 {
    color: #2E8B57;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.character-image, .kart-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #FFD700;
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.kart-image {
    border-radius: 10px;
}

.character-name, .kart-name {
    font-weight: bold;
    color: #4169E1;
    font-size: 1rem;
}

/* Re-roll container */
.re-roll-container {
    text-align: center;
}

.re-roll-button {
    background: linear-gradient(45deg, #32CD32, #00CED1);
}

.re-roll-button:hover {
    background: linear-gradient(45deg, #3CB371, #20B2AA);
}

/* Loading animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading .character-image, .loading .kart-image {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #FF6B35;
    color: #666;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

footer small {
    color: #888;
    font-size: 0.8rem;
}

/* Accessibility */
.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;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .results {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .controls {
        gap: 15px;
    }
    
    .randomize-button, .re-roll-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .results {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .player-card {
        padding: 15px;
    }
    
    .character-image, .kart-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .player-title {
        font-size: 1.2rem;
    }
    
    .character-image, .kart-image {
        width: 70px;
        height: 70px;
    }
} 