body {
    background-color: #0d0d0d;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 10px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #1a1a1a;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    opacity: 0.8;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.8rem;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.search-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}

.search-bar {
    width: 100%;
    max-width: 350px;
    padding: 14px;
    border-radius: 25px;
    border: 2px solid #444;
    outline: none;
    font-size: 1.2rem;
    background: #111;
    color: white;
    text-align: center;
    transition: 0.3s;
}

.settings-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-button img {
    width: 24px;
    height: 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

.game-sections {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.game-section {
    margin-bottom: 40px;
    text-align: left;
}

.game-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-left: 10px;
}

.game-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.game-card {
    width: calc(25% - 12px);
    height: 220px;
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(40%);
    transition: 0.3s;
}

.game-card:hover img {
    filter: brightness(25%);
}

.game-title {
    position: absolute;
    top: 10px;
    left: 15px;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
    z-index: 2;
}

.game-description {
    position: absolute;
    top: 40px;
    left: 15px;
    color: #aaa;
    font-size: 0.9rem;
    width: calc(100% - 30px);
    z-index: 2;
    font-weight: normal;
    line-height: 1.3;
}

.play-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #000;
    color: white;
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 2;
    border: none;
    cursor: pointer;
}

.play-button svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.play-button:hover {
    background: #00ff88;
    color: #000;
}

.see-more-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #333;
}

.see-more-card .game-title {
    position: static;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
    left: 0;
}

.see-more-card .play-button {
    position: static;
    margin-top: 10px;
    background: #00ff88;
    color: #000;
    width: auto;
    height: auto;
    padding: 8px 20px;
    border-radius: 25px;
}

.see-more-card .play-button:hover {
    background: #00cc66;
}

@media (max-width: 1024px) {
    .game-card {
        width: calc(33.333% - 12px);
    }
}

@media (max-width: 768px) {
    .game-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 480px) {
    .game-card {
        width: 100%;
    }
}

/* Settings page styles */
.settings-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.settings-section {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-section h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #00ff88;
}

.settings-section .description {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 10px;
    border-radius: 25px; 
    border: 1px solid #444;
    background: #111;
    color: white;
    font-size: 1rem;
    outline: none;
}

.input-group input::placeholder {
    color: #666;
}

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

.save-button, .reset-button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.save-button {
    background: #00ff88;
    color: black;
}

.save-button:hover {
    background: #00cc66;
}

.reset-button {
    background: #ff4444;
    color: white;
}

.reset-button:hover {
    background: #cc0000;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.preset-button {
    display: flex;
    align-items: center;
    background: #333;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.preset-button:hover {
    background: #444;
}

.preset-button img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.preset-button span {
    font-size: 0.9rem;
    color: white;
}

.custom-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00ff88;
    color: black;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.custom-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-popup svg {
    width: 20px;
    height: 20px;
}

.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #FFA500;
    color: black;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.notification-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-popup svg {
    width: 20px;
    height: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.three-dots-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #36393f;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none;
    width: 200px;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 10px;
    margin: 5px;
}

.dropdown-menu a:hover {
    background-color: #7289da;
    border-radius: 10px;
}

.dropdown-menu .divider {
    border-top: 1px solid #444;
    margin: 5px 0;
}