/* CTF Theme - Shared Styles */

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

/* Base */
body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #00ff00;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.container.wide {
    max-width: 900px;
}

/* Typography */
h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    margin: 10px 0;
    line-height: 1.6;
}

/* ASCII Art */
.ascii-art {
    font-size: 0.6rem;
    line-height: 1;
    margin-bottom: 20px;
    color: #006600;
}


/* Footer */
.footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #006600;
}

/* Links */
.back-link {
    margin-top: 20px;
}

.back-link a,
.links a {
    color: #00ff00;
    text-decoration: none;
}

.links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}


.nav-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-links a {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
}

/* Form Styles */
.form-container {
    background: #111;
    border: 1px solid #00ff00;
    padding: 30px;
    border-radius: 4px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #00ff00;
    text-transform: uppercase;
    font-size: 0.9rem;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #003300;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    border-radius: 2px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

input[type="text"]::placeholder {
    color: #006600;
}

/* Buttons */
button {
    width: 100%;
    padding: 15px;
    background: #001a00;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}

button:hover {
    background: #003300;
    box-shadow: 0 0 10px #00ff00;
}

button:active {
    transform: scale(0.98);
}

/* Messages */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.message.success {
    display: block;
    background: #001a00;
    border: 1px solid #00ff00;
    color: #00ff00;
}

.message.error {
    display: block;
    background: #1a0000;
    border: 1px solid #ff0000;
    color: #ff0000;
}

/* Table Styles (Leaderboard) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #111;
    border: 1px solid #00ff00;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #003300;
}

th {
    background: #001a00;
    color: #00ff00;
    text-transform: uppercase;
    font-weight: bold;
}

tr:hover {
    background: #001a00;
}

tr:nth-child(even) {
    background: #0d0d0d;
}


/* Emoji rain */
#rain-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 100;
}

.raindrop {
    position: absolute;
    top: -60px;
    font-size: 2rem;
    user-select: none;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Leaderboard Info */
.refresh-info {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #006600;
}

.empty-message {
    text-align: center;
    color: #666;
}

/* Emoji rain */
#rain-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 100;
}

.raindrop {
    position: absolute;
    top: -60px;
    font-size: 2rem;
    user-select: none;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}