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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

#game-info {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-panel {
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

#game-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.board {
    display: grid;
    grid-template-columns: repeat(10, 40px);
    grid-template-rows: repeat(10, 40px);
    gap: 2px;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.cell {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cell:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.cell.ship {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    border-color: #1a252f;
}

.cell.hit {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    animation: hit-animation 0.5s ease;
}

.cell.miss {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    animation: miss-animation 0.5s ease;
}

.cell.sunk {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
    color: white;
}

@keyframes hit-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background: #ff0000; }
    100% { transform: scale(1); }
}

@keyframes miss-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#game-status {
    margin-top: 20px;
    font-size: 1.3rem;
    text-align: center;
    padding: 15px 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.restart-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    #game-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .board {
        grid-template-columns: repeat(10, 35px);
        grid-template-rows: repeat(10, 35px);
    }
    
    .cell {
        width: 35px;
        height: 35px;
    }
    
    #game-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


