/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --nav-bg: #1a1a1a;
    --box-bg: #222222;
    --button-bg: #333333;
    --button-text: #ffffff;
}

.light-theme {
    --bg-color: #f5f5f5;
    --text-color: #000000;
    --nav-bg: #e0e0e0;
    --box-bg: #ffffff;
    --button-bg: #dddddd;
    --button-text: #000000;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #00f0ff, #ff00f0, #00ff95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-tabs {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-tabs li a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-tabs li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #00f0ff, #ff00f0);
    transition: width 0.3s ease;
}

.nav-tabs li a:hover {
    color: #00ffe1;
}

.nav-tabs li a:hover::after {
    width: 100%;
}

.panic-button {
    padding: 10px 20px;
    margin-left: 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(90deg, #ff0040, #ff00f0);
    color: white;
    box-shadow: 0 0 12px rgba(255, 0, 64, 0.6),
                0 0 20px rgba(255, 0, 240, 0.5);
    transition: all 0.3s ease;
}

.panic-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.8),
                0 0 35px rgba(255, 0, 240, 0.7);
    color: #fff;
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #111;
    color: #ccc;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    box-shadow: 0 -2px 15px rgba(0, 255, 255, 0.2);
}

.site-footer p {
    margin: 0;
    background: linear-gradient(90deg, #00f0ff, #ff00f0, #00ff95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Forms */
#uv-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form__input {
    width: 400px;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3),
                0 0 20px rgba(0, 255, 255, 0.3),
                0 0 30px rgba(0, 255, 0, 0.2);
}

.form__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form__input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6),
                0 0 30px rgba(0, 255, 255, 0.5),
                0 0 45px rgba(0, 255, 0, 0.3);
}

#uv-error {
    color: #ff4d4d;
    font-weight: bold;
}

#uv-error-code {
    background: #1a1a1a;
    color: #ffcccc;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.desc {
    margin-top: 20px;
    text-align: center;
    max-width: 600px;
}

/* Game Section */
.games-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 100px 40px 80px;
    width: 100%;
    max-width: 1200px;
}

.game-box {
    background: #111;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2),
                0 0 25px rgba(255, 0, 255, 0.2);
}

.game-box:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6),
                0 0 35px rgba(255, 0, 255, 0.5),
                0 0 50px rgba(0, 255, 149, 0.4);
}

.game-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4),
                0 0 15px rgba(255, 0, 255, 0.3),
                0 0 20px rgba(0, 255, 149, 0.3);
    transition: transform 0.3s ease;
}

.game-box:hover .game-icon {
    transform: scale(1.1);
}

.game-title {
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(90deg, #00f0ff, #ff00f0, #00ff95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Title Editor */
.title-editor {
    margin: 100px auto 40px;
    display: flex;
    flex-direction: column;    
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.title-editor input {
    width: 300px;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3),
                0 0 20px rgba(255, 0, 255, 0.3),
                0 0 30px rgba(0, 255, 0, 0.2);
}

.title-editor input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.title-editor input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6),
                0 0 30px rgba(0, 255, 255, 0.5),
                0 0 45px rgba(0, 255, 0, 0.3);
}

.title-editor button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(90deg, #00f0ff, #ff00f0, #00ff95);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6),
                0 0 20px rgba(255, 0, 255, 0.5);
}

.title-editor button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8),
                0 0 35px rgba(255, 0, 255, 0.7),
                0 0 45px rgba(0, 255, 149, 0.6);
}

/* Text Container */
.text-container {
    margin: 120px auto 40px;
    padding: 40px 50px;
    width: 90%;
    height: 400px;
    background: #111;
    color: white;
    border-radius: 15px;
    line-height: 1.8; 
    overflow-y: auto;
    user-select: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2),
                0 0 35px rgba(255, 0, 255, 0.2);
}

.text-container .text-line {
    margin: 15px 0; 
}

/* Settings Container */
.settings-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.box {
    background: var(--box-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

/* Buttons & Select */
button,
select {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}
