.game-container {
    color: black;
    max-width: 900px;
    margin:10px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px;
    flex: 1; 
}

h1 {
    text-align: center;
    color: #005591;
    margin-bottom: 20px;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.level-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.level-type {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.level-type input[type="radio"] {
    margin-right: 5px;
}

#stored-levels-container, #random-levels-container {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.random-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.game-controls button {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.game-controls select {
    min-width: 150px;
}

.game-controls button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.highlight-button {
    animation: pulse 1s infinite;
    background-color: #4CAF50 !important;
    color: white !important;
}
#save-record:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
}

.highlight-button:disabled {
    animation: none !important;
    background-color: #cccccc !important;
}

.game-controls button:hover {
    background-color: #45a049;
}

#generate-random {
    background-color: #2196F3;
}

#generate-random:hover {
    background-color: #0b7dda;
}

#reset {
    background-color: #f44336;
}

#reset:hover {
    background-color: #d32f2f;
}

#login-button {
    background-color: #2196F3;
}

#login-button:hover {
    background-color: #0b7dda;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.timer {
    font-size: 24px;
    font-weight: bold;
}

.personal-best, .world-record {
    font-size: 16px;
}

.status {
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    min-height: 20px;
}

.status.error {
    background-color: #ffebee;
    color: #c62828;
}

.status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status.info {
    background-color: #e3f2fd;
    color: #1565c0;
}

#grid-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    overflow-x: auto;
    padding: 20px;
    background-color: white;
    border-radius: 15px;
}

#grid-container table {
    border-collapse: collapse;
    border: 2px solid #0d3965;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

#grid-container td {
    width: 50px;
    height: 50px;
    text-align: center;
    border: 1px solid rgba(68, 133, 184, 0.5);
    cursor: pointer;
    color: white;
    font-weight: bold;
    font-size: 20px;
    position: relative;
}

.cell {
    background-color: #1e5a92;
}

.filled {
    background-color: #2196F3;
}

.head {
    background-color: #f44336 !important;
}

.tail {
    background-color: #4CAF50 !important;
}

.row-hint, .col-hint {
    background-color: #0d3965;
    color: white;
    font-weight: bold;
}

@media (max-width: 768px) {
    #grid-container td {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}