* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    background-color: #1a1a1a;
    color: white;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
    padding: 10px;
}

.definitions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 50%;
    text-align: center;
}

.definitions-container h2 {
    margin-top: 10px;
}

.definitions {
    max-height: 100vh;
    max-width: 130vw;
    overflow: auto;
    transform: scale(1);
    transform-origin: center;
    padding: 15px 0;
}

.cell-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.cell {
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 18px;
    background-color: #1a1a1a;
    color: white;
    border: 1px solid #CFFFE5;
    text-transform: uppercase;
    position: absolute;
}

.cell-number {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 12px;
    font-weight: bold;
    color: #CFFFE5;
}

.correct {
    border: 2px solid lightgreen !important;
}

.wrong {
    border: 2px solid lightcoral !important;
}

.disabled {
    background-color: transparent;
    pointer-events: none;
    border: none;
}

.highlight {
    background-color: #CFFFE5;
    color: black;
}

.highlight .cell-number {
    color: black !important;
}

.definition {
    cursor: pointer;
    padding: 5px;
    transition: background-color 0.3s ease;
}

.definition:hover {
    color: #cfd0ff;
    text-decoration: underline;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.popup {
    display: none;
    position: fixed;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: black;
    padding: 20px;
    border: 1px solid black;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

button {
    margin-top: 10px;
    padding: 10px 15px;
    cursor: pointer;
    background-color: black;
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 0px 10px #CFFFE5;
    transition: transform 0.2s, background-color 0.3s;
}

button:hover {
    background-color: #CFFFE5;
    color: black;
    transform: scale(1.1);
}

button:disabled {
    background-color: #d3d3d3;
    color: #a1a1a1;
    cursor: not-allowed;
    border: 1px solid #b0b0b0;
    box-shadow: none;
    opacity: 0.5;
}

.back-button {
    position: absolute;
    top: 15px;
    left: 15px;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s, background-color 0.3s;
}

.back-button:hover {
    background-color: #CFFFE5;
}

.indices {
    display: none;
    border: 2px solid black;
    border-radius: 10px;
    background-color: #CFFFE5;
    padding: 10px;
    margin: 5px 0px;
}

.info {
    border: 2px solid black;
    border-radius: 10px;
    background-color: #CFFFE5;
    padding: 10px;
    margin: 5px 0px;
    color: black;
    display: flex;
    justify-content: space-around;
}

#gameArea {
    margin: 20px 0px;
    display: flex;
    padding: 0 auto;
    justify-content: space-evenly;
}

#gameArea button {
    margin: 0 40px;
}

#timer {
    font-size: 18px;
    font-weight: bold;
}

#score {
    font-size: 18px;
}