* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Disable text selection on interactive elements */
.hero-content > img,
.main-title,
.main-subtitle,
.magic-decoration,
.test-card h2,
.test-card p,
.card-icon,
.btn {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    font-family: 'Crimson Text', serif;
    background: radial-gradient(ellipse at top, #1a1a2e 0%, #0f0f1e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 223, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(218, 165, 32, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: shimmer 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 223, 0, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(218, 165, 32, 0.7), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 215, 0, 0.5), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 223, 0, 0.6), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(218, 165, 32, 0.7), transparent),
        radial-gradient(1px 1px at 15% 90%, rgba(255, 215, 0, 0.5), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    pointer-events: none;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes sparkle {
    0%, 100% {
        background-position: 0% 0%;
        opacity: 1;
    }
    50% {
        background-position: 100% 100%;
        opacity: 0.8;
    }
}

.container {
    max-width: 1200px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 1s ease-in;
}

.hero-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2), inset 0 0 20px rgba(255, 215, 0, 0.05);
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3), 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.magic-decoration {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.test-card {
    background: rgba(20, 20, 40, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4), inset 0 0 30px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
}

.wizard-card {
    border-top: 5px solid #daa520;
}

.hobbit-card {
    border-top: 5px solid #b8860b;
}

.clair-obscur-card {
    border-top: 5px solid #dc143c;
}

.breaking-bad-card {
    border-top: 5px solid #8bc34a;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.test-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.test-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:focus {
    outline: none;
}

.btn:active {
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
}

.footer {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }
    
    .container {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .hero {
        margin-bottom: 30px;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .main-subtitle {
        font-size: 1.2rem;
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .test-card {
        padding: 30px 20px;
    }
    
    .test-card h2 {
        font-size: 1.5rem;
    }
}
