* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffffff;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 15px;
    background-color: rgba(18, 18, 18, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(10px);
}

header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-switch {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 60px;
  height: 34px;
  display: inline-block;
  cursor: pointer;
  z-index: 10;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #e0e0e0;
  border-radius: 34px;
  transition: background 0.4s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

body:not(.light) .theme-switch .slider {
  background: #333333;
}

body:not(.light) .theme-switch .slider::before {
  background: #f1f1f1;
}

body.light .theme-switch .slider {
  background: #e0e0e0;
}

body.light .theme-switch .slider::before {
  background: #757575;
}

body.light {
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    color: #000000;
}

body.light .container {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.search-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 10px;
}

#search-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 2px solid #3498db;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#search-input:focus {
    border-color: #2980b9;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.6);
}

#search-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

#search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.5);
}

.links-section h2,
.config-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #3498db;
    text-align: center;
}

.links-scrollable {
    max-height: 400px;
    overflow-y: overlay;
    border-radius: 15px;
    padding: 15px;
    background-color: rgba(30, 30, 30, 0.7);
    scrollbar-width: thin;
    scrollbar-color: #3498db transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.links-scrollable ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.links-scrollable li {
    background: linear-gradient(135deg, #2c2c2c, #1e1e1e);
    padding: 18px;
    border-radius: 12px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.links-scrollable a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: block;
    transition: color 0.3s ease;
}

.links-scrollable li:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.links-scrollable li:hover a {
    color: #ffffff;
}

.links-scrollable::-webkit-scrollbar {
    width: 8px;
}

.links-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(#3498db, #2980b9);
    border-radius: 10px;
}

.links-scrollable::-webkit-scrollbar-track {
    background-color: transparent;
}

body.light #search-input {
    border-color: #2980b9;
    color: #000000;
    background-color: rgba(0, 0, 0, 0.05);
}

body.light #search-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

body.light #search-input:focus {
    border-color: #3498db;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 12px rgba(41, 128, 185, 0.6);
}

body.light #search-button {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

body.light #search-button:hover {
    box-shadow: 0 6px 15px rgba(41, 128, 185, 0.5);
}

body.light .links-scrollable {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .links-scrollable li {
    background: linear-gradient(135deg, #f5f7fa, #e4e7f0);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .links-scrollable li:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

body.light .links-scrollable a {
    color: #000000;
}

body.light .links-scrollable li:hover a {
    color: #ffffff;
}

body.light .links-scrollable::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

body.light .links-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(#2980b9, #3498db);
}

body.light .config-card {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.steam-logo {
    width: 200px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.5s ease-in-out, filter 0.3s ease;
    color: inherit;
    fill: currentColor;
    stroke: currentColor;
}

.steam-logo:hover {
    transform: rotate(360deg);
    filter: brightness(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#config-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    z-index: 10;
}

#config-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.5);
}

.config-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.game-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.5);
}

.game-btn:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    opacity: 0.6;
}

.game-content {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    min-height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.config-card {
    background: linear-gradient(135deg, #2c2c2c, #1e1e1e);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.config-card h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 20px;
}

.config-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.download-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.5);
}