body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Background options */
.bg-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.bg-night {
    background: radial-gradient(circle at 10% 20%, #1f2330 0%, #0b1020 60%);
}
.bg-forest {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
}
.bg-sunset {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 60%);
}
.bg-solid {
    background: #222831;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: white;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 100%;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger:hover span {
    background: #667eea;
}

.navbar-logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
    flex-grow: 1;
    margin-left: 20px;
}

.navbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #333;
    padding: 6px 12px;
    border-radius: 20px;
}

.navbar-search input {
    background: none;
    border: none;
    color: white;
    outline: none;
    padding: 4px 8px;
    width: 150px;
}

.navbar-search input::placeholder {
    color: #aaa;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.search-btn:hover {
    color: #667eea;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: #16213e;
    color: white;
    padding-top: 60px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #333;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: #667eea;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #2a3f5f;
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-menu a:hover {
    background: #667eea;
    padding-left: 30px;
}

/* Settings panel inside sidebar */
.settings-panel {
    display: none;
    padding: 16px 20px 30px 20px;
    border-top: 1px solid #2a3f5f;
    background: rgba(255,255,255,0.02);
}
.settings-panel.open {
    display: block;
}
.bg-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.bg-swatch {
    width: 40px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 998;
}

.sidebar-overlay.active {
    display: block;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin: 40px auto;
}

h1 {
    color: #333;
    margin-bottom: 30px;
}

.input-section {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #667eea;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

button:hover {
    background: #764ba2;
}

.output-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.display-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    min-height: 100px;
    word-wrap: break-word;
    color: #333;
    font-size: 28px;
    line-height: 1.6;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
/* Games Section */
.games-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.games-section h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.game-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}

.game-thumbnail::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 8s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.game-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
}

.game-thumbnail > * {
    position: relative;
    z-index: 1;
}

.game-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-info h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.game-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}