body {
    font-family: Arial, sans-serif;
    display: block;
    min-height: 100vh;
    margin: 0;
    background-color: #111;
    color: #eee;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.screen, #start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    padding-bottom: 80px;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (max-width: 700px) {
  .screen, #start-screen {
    padding-bottom: 120px;
  }
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at center, rgba(30, 144, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

#game {
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 600px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



#board {
    display: grid;
    grid-template-columns: repeat(7, 60px);
    grid-template-rows: repeat(6, 60px);
    grid-gap: 10px;
    justify-content: center;
    align-items: center;
    background-color: #111;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 0 2px #1E90FF,
                0 0 0 4px #111,
                0 0 20px rgba(30, 144, 255, 0.4),
                0 0 40px rgba(30, 144, 255, 0.2);
    margin: 20px 0;
    width: 500px;
    height: 440px;
    box-sizing: border-box;
}

#board div {
    width: 60px;
    height: 60px;
    background-color: #222;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1),
                inset 0 0 10px rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
    box-sizing: border-box;
}

#board div.blue {
    background-color: #1E90FF;
    border: none;
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.6),
                0 0 30px rgba(30, 144, 255, 0.3),
                inset 0 0 15px rgba(255, 255, 255, 0.5);
}

#board div.green {
    background-color: #32CD32;
    border: none;
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.6),
                0 0 30px rgba(50, 205, 50, 0.3),
                inset 0 0 15px rgba(255, 255, 255, 0.5);
}

.cascade {
    transform: translateY(20px) !important;
}

#info {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin: 20px 0;
    min-height: 100px;
    width: 100%;
}

.player-info {
    text-align: center;
    margin: 0 20px;
    flex: 0 0 150px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-info#blue-info {
    color: #1E90FF; /* Match the blue tile color */
}

.player-info#green-info {
    color: #32CD32; /* Match the green tile color */
}

.player-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.player-color.red {
    background-color: #FF0000;
}

.player-color.black {
    background-color: #000000;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #111;
}

.hidden {
    display: none !important;
    visibility: hidden;
    opacity: 0;
}

#start-screen {
    z-index: 2;
}

#game-screen {
    z-index: 1;
}

#game {
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 600px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#game.hidden {
    opacity: 0;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    width: 300px;
    margin-bottom: 10px;
    display: block;
}

h1 {
    margin: 10px 0;
    font-size: 1.5em;
}

button {
    background-color: #444;
    color: #eee;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.2);
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: #555;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.4);
    transform: translateY(-2px);
}

#rounds {
    margin-bottom: 20px;
}

#blue-name, #green-name {
    font-weight: bold;
    font-size: 1.2em;
}

.music-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #2a2a2a, #333333);
    border: 2px solid rgba(30, 144, 255, 0.4);
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.3),
                inset 0 0 10px rgba(30, 144, 255, 0.1);
    transition: all 0.3s ease;
    color: #1E90FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-button:hover {
    border-color: rgba(30, 144, 255, 0.8);
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.4),
                inset 0 0 15px rgba(30, 144, 255, 0.2);
}

.music-button:active {
    transform: scale(0.95);
    box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.4),
                inset -3px -3px 7px rgba(255, 255, 255, 0.1);
}

.music-button.muted {
    color: #666;
    border-color: #333;
    background: linear-gradient(145deg, #252525, #2d2d2d);
    opacity: 0.8;
}

.game-mode-select,
.game-options {
    margin: 10px 0;
    text-align: center;
}

.player-inputs {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 10px 0;
}

.player-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

#ai-options {
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

select, input[type="text"] {
    background-color: rgba(68, 68, 68, 0.8);
    color: #eee;
    border: 1px solid rgba(30, 144, 255, 0.3);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 3px 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.1);
}

select:hover, input[type="text"]:hover {
    border-color: rgba(30, 144, 255, 0.6);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.2);
}

select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #1E90FF;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
}

button#start-button {
    display: block;
    margin: 32px auto 40px auto;
    padding: 14px 38px;
    font-size: 1.2rem;
    border-radius: 12px;
    background: linear-gradient(90deg, #1E90FF 30%, #39ff14 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 24px rgba(30,144,255,0.15);
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    max-width: 80vw;
}

#start-button:hover, #start-button:focus {
    background: linear-gradient(90deg, #39ff14 30%, #1E90FF 100%);
    box-shadow: 0 6px 32px rgba(30,144,255,0.25);
    transform: translateY(-2px) scale(1.03);
}

@media (max-width: 700px) {
  #start-button {
    font-size: 1rem;
    padding: 12px 18px;
    margin-bottom: 60px;
    min-width: 180px;
    max-width: 95vw;
  }
}
    margin-top: 15px;
    padding: 8px 25px;
    font-size: 18px;
    background-color: #1E90FF;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.4),
                0 0 40px rgba(30, 144, 255, 0.2);
}

button#start-button:hover {
    background-color: #1a7ad9;
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.6),
                0 0 60px rgba(30, 144, 255, 0.3);
}
