@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #6B48FF;
    color: #ffffff;
    font-family: 'Fredoka One', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Cartoon background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, #8B6FFF 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, #FF6B9C 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, #6B48FF 0%, #4925FF 100%);
    z-index: -1;
    animation: bgFloat 15s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 3rem;
    position: relative;
    transform: scale(1.2);
    animation: bounce 3s ease-in-out infinite;
}

.logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

h1 {
    font-size: 4rem;
    margin: 0;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    text-shadow: 
        4px 4px 0 #FF6B9C,
        8px 8px 0 rgba(0,0,0,0.2);
    text-align: center;
    padding-left: 0.4em;
    color: #ffffff;
    animation: bounce 4s ease-in-out infinite;
    animation-delay: -1s;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    background: #FF6B9C;
    padding: 1.8rem 4rem;
    border-radius: 25px;
    box-shadow: 
        0 8px 0 #D14B7A,
        0 15px 20px rgba(0,0,0,0.3);
    border: 4px solid #ffffff;
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
}

nav:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 13px 0 #D14B7A,
        0 20px 20px rgba(0,0,0,0.3);
}

nav a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    text-shadow: 2px 2px 0 #D14B7A;
}

nav a:hover {
    transform: scale(1.1);
    color: #FFE66D;
}

.dot {
    color: #ffffff;
    opacity: 0.6;
    text-shadow: 2px 2px 0 #D14B7A;
}

footer {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 100;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding: 1rem 2rem;
    background: #4BD1A5;
    border-radius: 25px;
    box-shadow: 
        0 6px 0 #2E8C6F,
        0 12px 15px rgba(0,0,0,0.3);
    border: 3px solid #ffffff;
}

footer a:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 11px 0 #2E8C6F,
        0 17px 15px rgba(0,0,0,0.3);
}

.back-link {
    align-self: flex-start;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
    padding: 1rem 2rem;
    background: #4BD1A5;
    border-radius: 25px;
    box-shadow: 
        0 6px 0 #2E8C6F,
        0 12px 15px rgba(0,0,0,0.3);
    border: 3px solid #ffffff;
}

.back-link:hover {
    transform: translateX(-5px);
    box-shadow: 
        0 6px 0 #2E8C6F,
        0 12px 15px rgba(0,0,0,0.3);
}

/* Content styles */
.content-box {
    max-width: 800px;
    margin: 0 auto;
    background: #FFE66D;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 
        0 10px 0 #D4BC4A,
        0 20px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 4px solid #ffffff;
    color: #4925FF;
    animation: bounce 3s ease-in-out infinite;
}

.content-box h3 {
    color: #FF6B9C;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 #D14B7A;
    font-size: 1.5rem;
}

.content-box p {
    line-height: 1.8;
    color: #4925FF;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-box ul {
    line-height: 1.8;
    color: #4925FF;
    list-style-type: none;
    padding-left: 1.5rem;
}

.content-box li {
    position: relative;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.content-box li::before {
    content: '★';
    position: absolute;
    left: -1.5rem;
    color: #FF6B9C;
}

/* Upload page specific styles */
.upload-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: #FFE66D;
    border-radius: 30px;
    text-align: center;
    box-shadow: 
        0 10px 0 #D4BC4A,
        0 20px 25px rgba(0,0,0,0.2);
    border: 4px solid #ffffff;
    color: #4925FF;
    animation: bounce 3s ease-in-out infinite;
}

.upload-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #FF6B9C;
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 6px 0 #D14B7A,
        0 12px 15px rgba(0,0,0,0.3);
}

.upload-button:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 11px 0 #D14B7A,
        0 17px 15px rgba(0,0,0,0.3);
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(75, 37, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #FFE66D;
    padding: 3rem;
    border-radius: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 10px 0 #D4BC4A,
        0 20px 25px rgba(0,0,0,0.2);
    border: 4px solid #ffffff;
    color: #4925FF;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #FF6B9C;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 2px 2px 0 #D14B7A;
}

.close-modal:hover {
    transform: scale(1.2) rotate(10deg);
}

.beta-key-input {
    width: 100%;
    padding: 1rem;
    margin: 1.5rem 0;
    background: #ffffff;
    border: 3px solid #FF6B9C;
    border-radius: 15px;
    color: #4925FF;
    font-family: inherit;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.beta-key-input:focus {
    outline: none;
    border-color: #4BD1A5;
    box-shadow: 0 0 20px rgba(75,209,165,0.3);
}

.submit-key {
    background: #FF6B9C;
    color: #ffffff;
    border: 3px solid #ffffff;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 6px 0 #D14B7A,
        0 12px 15px rgba(0,0,0,0.3);
}

.submit-key:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 11px 0 #D14B7A,
        0 17px 15px rgba(0,0,0,0.3);
}

.error-message {
    color: #FF6B9C;
    margin-top: 1rem;
    display: none;
    text-shadow: 1px 1px 0 #D14B7A;
    font-size: 1.1rem;
}
