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

body {
    font-family: 'Arial', sans-serif;
    background-color: #222;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.game-ui {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #444;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-weight: bold;
}

.score, .timer {
    padding: 5px 0;
    font-size: 18px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 1px;
    background-color: #222;
    border-radius: 5px;
    margin-bottom: 20px;
    min-height: 300px;
    padding: 2px;
}

.grid-cell {
    background-color: #444;
    border-radius: 3px;
    transition: background-color 0.2s;
    aspect-ratio: 1/1;
}

.grid-cell.filled {
    background-color: #0d6efd;
    animation: pop 0.3s;
}

.grid-cell.filled.red { background-color: #dc3545; }
.grid-cell.filled.green { background-color: #28a745; }
.grid-cell.filled.blue { background-color: #0d6efd; }
.grid-cell.filled.yellow { background-color: #ffc107; }
.grid-cell.filled.purple { background-color: #6f42c1; }

.grid-cell.highlight {
    background-color: rgba(255, 255, 255, 0.2);
}

.game-blocks {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.block-option {
    display: grid;
    grid-template-columns: repeat(3, 15px);
    grid-template-rows: repeat(3, 15px);
    gap: 2px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 5px;
    transition: all 0.2s;
}

.block-option:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

.block-option.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.7);
}

.block-cell {
    width: 15px;
    height: 15px;
    border-radius: 2px;
    background-color: #444;
}

.block-cell.filled {
    background-color: #0d6efd;
}

.block-cell.filled.red { background-color: #dc3545; }
.block-cell.filled.green { background-color: #28a745; }
.block-cell.filled.blue { background-color: #0d6efd; }
.block-cell.filled.yellow { background-color: #ffc107; }
.block-cell.filled.purple { background-color: #6f42c1; }

.game-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.game-message h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.game-message p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ccc;
    max-width: 300px;
}

#startBtn {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

#startBtn:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.game-message.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

@keyframes pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.row-clear {
    animation: row-clear 0.5s;
}

@keyframes row-clear {
    0% { background-color: white; }
    100% { background-color: #444; }
}

@media (max-width: 500px) {
    .game-container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .game-board {
        min-height: 300px;
    }
} 