﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', Arial, sans-serif;
}

body {
    background: #0a0a0a;
    color: white;
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,20,40,0.95) 100%),
                url('../img/bg.webp') center/cover fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 247, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 100, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.content-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: grid;
    gap: 20px;
    position: relative;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.5); */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* เพิ่มพื้นหลังโปร่งแสง */
    border-radius: 15px; /* เพิ่มมุมโค้ง */
    border: 2px solid rgba(255, 255, 255, 0.3); /* กรอบสีขาวโปร่งแสง */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* เงาที่ทำให้เน้นชัดขึ้น */
    backdrop-filter: blur(2px); /* เอฟเฟกต์เบลอที่พื้นหลัง */
    text-align: center;
}

.hero-characters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-character {
    width: 150px;
    filter: drop-shadow(0 0 15px rgba(255, 0, 100, 0.7));
}

.hero-title {
    font-size: 4em;
    font-weight: bold;
    color: #a6f50a;
    text-shadow: 0 0 10px rgba(255, 0, 100, 0.7);
}

.hero-description {
    font-size: 1.2em;
    margin: 20px 0;
}

.primary-button {
    padding: 15px 40px;
    font-size: 18px;
    color: #000;
    background: linear-gradient(45deg, #ff007f, #ff00f7);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #ff00f7, #ff007f);
}

/* Info Grid Layout */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Rankings Grid Layout */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Card Styles */
.card {
    background: rgba(0, 10, 20, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(0, 247, 255, 0.3);
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 247, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00f7ff, #0088ff);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0088ff, #00f7ff);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .content-container {
        padding: 10px;
    }

    .hero-content {
        padding: 20px;
    }

    .primary-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .info-grid,
    .rankings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .primary-button {
        font-size: 14px;
    }
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto; /* ให้สามารถเลื่อนได้ถ้าเนื้อหายาว */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 70%;
    max-width: 800px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* สไตล์สำหรับฟอร์มภายใน modal */
.modal-content form {
    margin-top: 20px;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    color: #a6f50a; /* สีตัวอักษรของ label */
    font-weight: 500;
}

.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #a6f50a; /* สีตัวอักษรของ input */
}

.modal-content textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-content .primary-button,
.modal-content .secondary-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 14px;
}

.modal-content .primary-button {
    background-color: #007bff;
    color: white;
}

.modal-content .secondary-button {
    background-color: #6c757d;
    color: white;
}

.modal-content h2 {
    color: #66f;
    margin-bottom: 20px;
    font-size: 1.5em;
}
