/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
    min-height: 100vh;
    margin: 0;
    background-color: #f7f7f7;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 150px));
    grid-template-rows: repeat(3, minmax(80px, 150px));
    gap: 10px;
    margin: 20px auto;
    justify-content: center; /* Center grid horizontally */
}

header {
    width: 100%;
    background-color:  #F60100;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5em;
    color: white;
    font-weight: bold;
}
/* Navigation Styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    position: relative;
    margin-right: 15px;
}

nav ul li a {
    text-decoration: none;
    padding: 10px;
    display: block;
    color: white; /* Sets the link color to white */
}



.page {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    margin: 20px;
    max-width: 800px;
    width: 100%;
}

.hidden {
    display: none;
}

h1 {
    font-size: 2.5em;
    color: #00000;
}

.mode-selection, .player-selection {
    margin: 20px 0;
}

.mode-selection button, .player-selection button {
    padding: 10px 20px;
    font-size: 1em;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: blue;
    color: white;
    transition: background-color 0.3s;
}

.mode-selection button:hover, .player-selection button:hover {
    background-color: #ff3b2f;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 150px));
    grid-template-rows: repeat(3, minmax(80px, 150px));
    gap: 10px;
    margin: 20px auto;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.2s;
    background-color: #ffdd57;
    border: 2px solid #ff6f61;
}

.cell img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.cell:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
}

#reset {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: red;
    color: white;
    transition: background-color 0.3s;
}

#reset:hover {
    background-color: #45a049;
}

#status {
    margin-top: 20px;
    font-size: 1.5em;
    color: #333;
}

.scoreboard {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    font-size: 1.5em;
    color: #333;
}

.score {
    font-weight: bold;
}

.instructions {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.instructions h2 {
    font-size: 2em;
    color: #ff6f61;
    margin-bottom: 20px;
}

.instructions h3 {
    font-size: 1.5em;
    color: #333;
    margin-top: 20px;
}

.instructions p, .instructions ul {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

.instructions ul {
    padding-left: 20px;
}

.instructions ul li {
    margin-bottom: 10px;
}

footer {
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

footer .footer-links {
    margin-bottom: 10px;
}

footer .footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer .footer-links a:hover {
    color: #ff6f61;
}

/* Responsive Design */
@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    #board {
        grid-template-columns: repeat(3, minmax(60px, 100px));
        grid-template-rows: repeat(3, minmax(60px, 100px));
    }

    .cell img {
        width: 70%;
        height: 70%;
    }

    .scoreboard {
        flex-direction: column;
    }
}
.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 🖥️ Desktop (Large Screens) */
@media (min-width: 1024px) {
    .responsive-image {
        max-width: 600px; /* Larger image */
    }
}

/* 📱 Mobile (Small Screens) */
@media (max-width: 767px) {
    .responsive-image {
        max-width: 300px; /* Smaller image for mobile */
    }
}

/* 📟 Tablet (Medium Screens) */
@media (min-width: 768px) and (max-width: 1023px) {
    .responsive-image {
        max-width: 450px; /* Medium size for tablets */
    }
}
.page-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.language-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.language-table th, .language-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.language-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.language-table a {
    text-decoration: none;
    color: #0073e6;
    font-weight: bold;
}

.language-table a:hover {
    text-decoration: underline;
}
.character-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}