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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #000000 100%);
    color: white;
    min-height: 100vh;
    padding-top: 80px; /* Add padding to account for fixed navbar */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.nav-center {
    display: flex;
    justify-content: center; /* Center search input */
    flex: 1.18;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo i {
    color: #ffffff;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #cccccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #333333;
    color: white;
}

.nav-btn {
    color: #cccccc;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.search-filter {
    background: white;
    color: black;
    border: none;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.7rem 1rem;
    width: 440px;
    outline: none;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
    color: #666666;
}

.search-btn {
    background: transparent;
    border: none;
    color: #666666;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.discord-btn {
    background: rgba(88, 101, 242, 0.1) !important;
    color: #5865F2 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(88, 101, 242, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    text-decoration: none !important;
    margin-bottom: 2rem !important;
    margin-right: auto !important;
}

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.2) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(88, 101, 242, 0.5) !important;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.15) !important;
}

.discord-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.discord-btn span {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demon-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: opacity 0.5s ease-in-out;
}

.demon-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 200px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.demon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.demon-card:hover::before {
    left: 100%;
}

.demon-card:hover {
    background: rgba(42, 42, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
}

.demon-image {
    position: relative;
    cursor: pointer;
    width: 280px;
    height: 158px;
    background: linear-gradient(45deg, #333333 0%, #555555 50%, #777777 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.demon-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.demon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demon-image i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.demon-image:hover .video-overlay {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-overlay i {
    color: white;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.demon-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.demon-position {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.demon-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.demon-creator {
    color: #cccccc;
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0;
}

.page-title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.leaderboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.leaderboard-card:hover::before {
    left: 100%;
}

.leaderboard-card:hover {
    background: rgba(42, 42, 42, 0.9);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.2);
}

.player-rank {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    min-width: 60px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.player-stats {
    display: flex;
    gap: 1.5rem;
    color: #cccccc;
    font-size: 1rem;
}

.player-points {
    font-weight: 600;
}

.player-demons {
    font-weight: 500;
}

/* Admin Panel Styles */
.admin-panel {
    background: rgba(20, 20, 20, 0.9);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.admin-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 0.8rem 1.5rem;
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-demon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 30, 30, 0.7);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-demon-info {
    flex: 1;
    min-width: 200px;
}

.admin-demon-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.admin-demon-creator {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.admin-demon-id {
    color: #888;
    font-size: 0.9rem;
}

.admin-demon-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.edit-btn, .delete-btn, .move-btn, .move-up-btn, .move-down-btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.edit-btn {
    background: #4CAF50;
    color: white;
}

.edit-btn:hover {
    background: #45a049;
}

.delete-btn {
    background: #f44336;
    color: white;
}

.delete-btn:hover {
    background: #d32f2f;
}

.move-up-btn, .move-down-btn {
    background: #555555;
    color: white;
}

.move-up-btn:hover, .move-down-btn:hover {
    background: #777777;
}

.move-up-btn:disabled, .move-down-btn:disabled {
    background: #333333;
    color: #666666;
    cursor: not-allowed;
}

.submit-btn {
    background: #4CAF50;
    color: white;
}

.submit-btn:hover {
    background: #45a049;
}

.cancel-btn {
    background: #f44336;
    color: white;
}

.cancel-btn:hover {
    background: #d32f2f;
}

.demon-form {
    margin-bottom: 2rem;
}

.demon-form h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.form-group select option {
    background: #1a1a1a;
    color: white;
    padding: 0.8rem;
}

#otherModMenu {
    margin-top: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

#otherModMenu:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions button {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease;
}

.form-actions button:first-child {
    background: white;
    color: black;
}

.form-actions button:first-child:hover {
    background: #cccccc;
}

.form-actions button:last-child {
    background: #333333;
    color: white;
}

.form-actions button:last-child:hover {
    background: #555555;
}

.move-btn {
    background: white;
    color: black;
}

.move-btn:hover {
    background: #cccccc;
}

.move-btn:disabled {
    background: #666666;
    cursor: not-allowed;
}

.tutorial-container {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.tutorial-container p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #cccccc;
}

.tutorial-btn {
    display: inline-flex;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-left {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-center {
        justify-content: center; /* Center search input on mobile */
    }

    .nav-right {
         justify-content: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-input {
        width: 150px;
    }

    .container {
        padding: 1rem;
    }

    .demon-card {
        flex-direction: column;
        text-align: center;
        height: auto; /* Adjust height for mobile */
    }

     .demon-image {
        width: 100%; /* Make image full width on mobile */
        height: auto;
        max-width: 280px; /* Keep a max width */
    }

    .admin-panel {
        width: 95%;
        margin: 1rem auto;
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .admin-demon-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .admin-demon-info {
         text-align: center;
    }

    .admin-demon-actions {
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }

    .admin-controls {
        justify-content: center;
    }
}

/* Submission Form Styles */
.submission-form-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.submission-form {
    flex: 1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.submission-rules {
    flex: 1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-actions {
    margin-top: 1rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #ffed4a;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.form-info p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .submission-form-container {
        flex-direction: column;
        margin: 1rem;
        padding: 0;
    }

    .submission-form,
    .submission-rules {
        padding: 1.5rem;
    }

    .submission-rules {
        position: static;
    }
}

.tab-navigation {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 0.3rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.tab-btn {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-btn.active {
    background: #ffffff;
    color: #000;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.rules-title {
    font-size: 1.5em; /* Larger font for the title */
    margin-bottom: 10px; /* Space below the title */
}

.rules-list {
    list-style-type: disc; /* Use bullet points */
    margin-left: 20px; /* Indent the list */
}

.rules-list li {
    margin-bottom: 5px; /* Space between list items */
}

.hidden {
    display: none; /* Hides the element */
}

.discord-button-container {
    margin-bottom: 24px;
}

.discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #000000;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid #000000;
    width: 100%;
}

.discord-button:hover {
    background-color: white;
    color: black;
}

.discord-button i {
    font-size: 1.2em;
}

/* Roulette Specific Styles */
.roulette-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.roulette-section {
    margin-bottom: 2rem;
}

.roulette-section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #ffffff;
}

.demon-selection-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.demon-selection-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #cccccc;
    transition: color 0.2s ease;
}

.demon-selection-options label:hover {
    color: white;
}

.demon-selection-options input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cccccc;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.demon-selection-options input[type="checkbox"]::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.demon-selection-options input[type="checkbox"]:checked {
    border-color: #ffffff;
    background-color: #ffffff;
}

.demon-selection-options input[type="checkbox"]:checked::before {
    opacity: 1;
}

.start-game-btn, .spin-btn, .submit-percentage-btn, .reset-game-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin: 0.5rem;
}

.start-game-btn {
    background: #4CAF50;
    color: white;
}

.start-game-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.spin-btn {
    background: #2196F3;
    color: white;
}

.spin-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.submit-percentage-btn {
    background: #ffffff;
    color: #000;
}

.submit-percentage-btn:hover {
    background: #b6b6b6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.reset-game-btn {
    background: #f44336;
    color: white;
}

.reset-game-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.game-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    min-height: 150px; /* Ensure minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.current-demon-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.current-demon-display:hover {
    cursor: pointer;
}

.current-demon-image {
    width: 160px; /* Smaller image size */
    height: 90px; /* Maintain aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.current-demon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-demon-details {
    text-align: left;
}

.current-demon-details .demon-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
}

.current-demon-details .demon-creator {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.current-demon-details a {
    color: #2196F3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.current-demon-details a:hover {
    color: #1976d2;
    text-decoration: underline;
}

.percentage-input-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.percentage-input-area label {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.percentage-input-area input[type="number"] {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    width: 80px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease;
}

.percentage-input-area input[type="number"]:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.game-message {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1rem;
    min-height: 1.5em; /* Reserve space */
}

.success-message {
    color: #4CAF50;
}

.failure-message {
    color: #f44336;
}

.win-message {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 700;
}

.roulette-placeholder {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
}

@media (max-width: 600px) {
    .navbar {
        padding: 1rem 0.5rem;
    }
    .nav-right {
        gap: 0.5rem;
    }
     .nav-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
     }
    .search-input {
        width: 100px;
        padding: 0.5rem 0.8rem;
    }
    .search-btn {
         padding: 0.5rem 0.8rem;
    }
    .tab-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    .container {
        padding: 1rem;
    }
    .page-title {
        font-size: 2rem;
    }
     .roulette-container {
        padding: 1.5rem;
     }
     .roulette-section h2 {
        font-size: 1.5rem;
     }
     .current-demon-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
     }
     .current-demon-details {
        text-align: center;
     }
     .current-demon-details .demon-name {
        font-size: 1.3rem;
     }
     .percentage-input-area {
        flex-direction: column;
     }
      .start-game-btn, .spin-btn, .submit-percentage-btn, .reset-game-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin: 0.25rem 0;
    }
}