﻿body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: 'Orbitron', sans-serif;
    color: #39FF14;
    position: relative;
}

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        background-image: repeating-linear-gradient(0deg, transparent, transparent 19px, #0f0 20px), repeating-linear-gradient(90deg, transparent, transparent 19px, #0f0 20px);
        opacity: 0.05;
    }

.box {
    position: relative;
    max-width: 600px;
    margin: 0px auto 100px auto;
    padding: 30px;
    background: rgba(0,255,0,0.05);
    border: 2px solid #39FF14;
    box-shadow: 0 0 20px #39FF14, inset 0 0 10px #39FF14;
    transform: perspective(600px) translateY(-20px) rotateX(5deg);
    border-radius: 20px;
    height: 950px;
}

    .box h1 {
        margin: 0 0 20px;
        font-size: 2.5em;
        text-align: center;
    }

    .box p {
        font-size: 1em;
        line-height: 1.5;
        text-shadow: 0 0 0px #39FF14;
    }

.toplist {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    border-top: 1px solid #39FF14;
}

.toplist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
    transition: background 0.3s;
    cursor: default;
}

.game-name {
    font-size: 1em;
    font-weight: bold;
    text-shadow: 0 0 0px #39FF14;
    color: inherit;
}

.game-name-link {
    font-size: 1em;
    font-weight: bold;
    text-shadow: 0 0 0px #39FF14;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

    .game-name-link:hover {
        text-decoration: underline;
    }

.profile-webpage-link {
    font-size: 1em;
    font-weight: bold;
    text-shadow: 0 0 0px #39FF14;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

    .profile-webpage-link:hover {
        text-decoration: underline;
    }

.stars {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 1.5em;
    transition: color 0.3s;
}

    .star.filled {
        color: #39FF14;
        text-shadow: 0 0 0px #39FF14;
    }

    .star.empty {
        color: rgba(57, 255, 20, 0.2);
    }

.toplist-title {
    font-size: 1.9em;
    text-align: center;
    margin-top: 35px;
    text-shadow: 0 0 0px #39FF14;
}

.actions {
    margin-top: 40px;
    text-align: center;
}

.btn-download {
    width: 260px;
    display: inline-block;
    padding: 12px 24px;
    background: #A259FF;
    border: 2px solid #A259FF;
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 0 15px #A259FF, inset 0 0 10px #000;
    transition: all 0.3s ease;
}

.btn-upload {
    width: 260px;
    display: inline-block;
    padding: 12px 24px;
    margin-top: 30px;
    background: #00C3FF;
    border: 2px solid #00C3FF;
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 0 15px #00C3FF, inset 0 0 10px #000;
    transition: all 0.3s ease;
}

.contact {
    margin-top: 20px;
    font-size: 1em;
}

    .contact a {
        color: #39FF14;
        text-decoration: underline;
        text-shadow: 0 0 5px #39FF14;
    }

.download {
    margin-top: 20px;
    font-size: 1em;
}

    .download a {
        color: #39FF14;
        text-decoration: underline;
        text-shadow: 0 0 0px #39FF14;
    }

.btn-download small {
    font-size: 0.5em;
    color: #fff;
}

.page {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px 20px;
    background: rgba(0, 255, 0, 0.05);
    border: 0px solid #39FF14;
    border-radius: 20px;
    box-shadow: none;
    text-align: center;
    color: #39FF14;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    max-height: 60vh;
    overflow-y: auto;
}

    .page h2 {
        margin: 0 0 20px;
        font-size: 2em;
        text-align: center;
        color: #39FF14;
    }

    /* Chrome, Edge, Safari */
    .page::-webkit-scrollbar {
        width: 10px;
        border-radius: 8px;
        background: transparent;
    }

    .page::-webkit-scrollbar-thumb {
        background: #39FF14;
        border-radius: 8px;
        box-shadow: 0 0 10px #39FF14;
    }

        .page::-webkit-scrollbar-thumb:hover {
            background: #00ff88;
        }

/* Firefox */
.page {
    scrollbar-width: thin;
    scrollbar-color: #39FF14 rgba(0,255,0,0.05);
}

    .page input[type="text"],
    .page input[type="url"],
    .page input[type="email"],
    .page input[type="password"],
    .page input[type="file"] {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 20px;
        border: 2px solid #39FF14;
        border-radius: 10px;
        background-color: #111;
        color: white;
        font-family: sans-serif;
        box-sizing: border-box;
        outline: none;
        text-shadow: none;
        filter: none;
        backdrop-filter: none;
        font-size: 1em;
        line-height: 1.5;
        letter-spacing: 1.5px;
    }

        .page input[type="text"]:focus,
        .page input[type="url"]:focus,
        .page input[type="email"]:focus,
        .page input[type="password"]:focus,
        .page input[type="file"]:focus {
            background-color: #111 !important;
            color: white !important;
            outline: none;
        }

    .page textarea {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 20px;
        border: 2px solid #39FF14;
        border-radius: 10px;
        background-color: #111;
        color: white;
        font-family: sans-serif;
        box-sizing: border-box;
        outline: none;
        text-shadow: none;
        filter: none;
        backdrop-filter: none;
        font-size: 1em;
        line-height: 1.5;
        letter-spacing: 1.5px;
        resize: vertical;
    }

        .page textarea:focus {
            background-color: #111 !important;
            color: white !important;
            outline: none;
        }

    .page input[type="file"] {
        cursor: pointer;
    }

        .page input[type="file"]::-webkit-file-upload-button,
        .page input[type="file"]::file-selector-button {
            background: #00C3FF;
            color: black;
            font-weight: bold;
            border: none;
            border-radius: 5px;
            padding: 6px 12px;
            margin-right: 10px;
            cursor: pointer;
        }

    .page button {
        padding: 10px 20px;
        background-color: #39FF14;
        color: black;
        font-weight: bold;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .page button:hover {
            background-color: #00ff88;
        }

.uploaded {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9em;
    color: #fff;
}

a.no-style-link,
a.no-style-link:visited,
a.no-style-link:hover,
a.no-style-link:active {
    text-decoration: none;
    color: inherit;
}

.top-bar {
    max-width: 550px;
    margin: 50px auto 0px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #fff;
    padding: 0;
}

.language-switch {
    margin-left: 5px;
}

.login-link {
    margin-right: 5px;
}

.menu-btn {
    box-sizing: border-box;
    background-color: transparent;
    color: #fff;
    border: 1px solid #FFFFFF;
    padding: 5px 10px;
    margin-right: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 0 0 0px #39FF14;
    letter-spacing: 1px;
}

.menu-btn:hover {
    background-color: rgba(57, 255, 20, 0.1);
}

.menu-btn.active {
    /* font-weight: bold;*/
}

.account {
    padding-left: 20px;
    font-size: 0.8em;
    color: #fff;
    margin-top: 20px;
}

    .account a {
        color: #fff;
        text-decoration: none;
        text-shadow: 0 0 0px #fff;
        margin-right: 0px;
    }

.info-message {
    color: #A259FF;
    font-weight: 500;
    text-shadow: none;
    font-size: 0.8em;
    margin-bottom: 20px;
}

.edit-profile-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -40px;
}

.edit-profile-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid #39FF14;
    padding: 5px 10px;
    margin-right: 110px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 0 0 0px #39FF14;
    transition: background-color 0.3s ease;
}

    .edit-profile-btn:hover {
        background-color: rgba(57, 255, 20, 0.1);
    }

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-image-container {
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #00C3FF;
    border-radius: 20px;
    box-shadow: 0 0 10px #00C3FF;
}

    .profile-image.empty {
        width: 150px;
        height: 150px;
        background-color: rgba(0,255,0,0.02);
        border: 2px dashed #00C3FF;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #39FF14;
        text-align: center;
        padding: 10px;
    }

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: rgba(0, 255, 0, 0.08);
    border: 2px solid #39FF14;
    box-shadow: 0 0 20px #39FF14, inset 0 0 10px #39FF14;
    border-radius: 20px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
}

    .popup-content img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 10px;
    }

.entry {
    text-align: left;
    margin: 20px 0;
    padding: 15px 20px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 10px;
    background-color: rgba(0, 255, 0, 0.02);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

    .entry b {
        font-size: 1.1em;
        color: #39FF14;
        text-shadow: 0 0 5px #39FF14;
    }

    .entry small {
        font-size: 0.8em;
        color: #A259FF;
        text-shadow: none;
    }

    .entry p {
        margin-top: 10px;
        font-size: 1em;
        line-height: 1.4;
    }

.btn-link {
    padding: 10px 20px;
    background-color: #39FF14;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

    .btn-link:hover {
        background-color: #00ff88;
    }

/* --------------------------------------------- */
/* Chat */
/* --------------------------------------------- */

#canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 20px;
}

.chat-input {
    position: absolute;
    top: 100px;
    left: 0px;
    width: 0px;
    margin: 5px;
    background-color: transparent;
    color: #ffffff;
    border: 0px;
    outline: none;
}

.light {
    width: 156.25px;
    height: 156.25px;
    border-radius: 50%;
    background-color: transparent;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
    animation-delay: 1s;
    animation-fill-mode: forwards;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5), 0 0 0 20px rgba(57, 255, 20, 0.2);
        background-image: radial-gradient( circle at center, #39FF14 0%, #29b80f 25%, #39ff14 50%, #74ff6a 75%, #aaff96 100% );
    }

    50% {
        box-shadow: 0 0 50px 30px rgba(57, 255, 20, 0.8), 0 0 0 50px rgba(57, 255, 20, 0.2);
        background-image: radial-gradient( circle at center, #39FF14 0%, #29b80f 25%, #39ff14 50%, #74ff6a 75%, #aaff96 100% );
    }

    100% {
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5), 0 0 0 80px rgba(57, 255, 20, 0.2);
        background-image: radial-gradient( circle at center, #39FF14 0%, #29b80f 25%, #39ff14 50%, #74ff6a 75%, #aaff96 100% );
    }
}


/* --------------------------------------------- */
/* Mobile */
/* --------------------------------------------- */

    @media (max-width: 768px) {
        body {
            height: auto;
            overflow: auto;
        }

        .box {
            max-width: 90vw;
            margin: 20px 20px 50px 20px;
            padding: 20px;
            transform: none;
            box-shadow: 0 0 15px #39FF14, inset 0 0 5px #39FF14;
        }

        .box h1 {
            font-size: 1.4em;
            margin-bottom: 1rem;
        }

        .box p {
            font-size: 0.8em;
            line-height: 1.4;
        }

        .game-name {
            font-size: 0.8em !important;
        }

        h2 {
            font-size: 1.5em !important;
        }

        .top-bar {
            max-width: 90vw !important;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .language-switch,
        .login-link {
            width: 100%;
            text-align: center;
            margin: 0px;
        }

        .menu-btn {
            display: block;
            width: 50%;
            margin: 5px auto;
        }

    }

.btn {
    display: inline-block;
}

.btn-primary {
    margin-bottom: 30px;
}

#cf-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}