* {
    margin: 0;
    padding: 0;
    -o-user-select: none;
    user-select: none;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('strait_of_hormuz.jpg') center/cover no-repeat;
    font-family: Arial, sans-serif;
}

#board {
    /*border-collapse: collapse;*/
    background: transparent;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

td {
    height: 35px;
    width: 35px;
    border: 1px solid #666;
    background-color: #BDBDBD;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    color: #000;
}

td:hover {
    background-color: rgba(100, 149, 237, 0.5);
}

td.revealed {
    background-color: transparent;
    border: 1px solid #999;
    font-family: Arial;
    font-size: 14px;
}

td img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.inactive-cell {
    background: transparent;
    border: none;
    cursor: default;
}

.inactive-cell:hover {
    background: transparent;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
 
.modal.hidden {
    display: none;
}
 
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}
 
.modal-content {
    background-image: url('trump_lose.jpg');
    border: 3px solid #e74c3c;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    max-width: 400px;
    height: 380px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}
 
@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
 
.modal-header {
    font-size: 48px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
 
.modal-message {
    font-size: 24px;
    color: #ecf0f1;
    margin-bottom: 30px;
    font-weight: 500;
}
 
.modal-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 250px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}
 
.modal-button:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}
 
.modal-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
}
 
/* WIN MODAL STYLING */
#winModal .modal-content {
    border-color: #2ecc71;
}
 
#winModal .modal-header {
    color: #2ecc71;
}
 
#winModal .modal-button {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}
 
#winModal .modal-button:hover {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}
 
#winModal .modal-button:active {
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.4);
}