@font-face {
    font-family: 'IvyMode';
    src: url('fonts/IvyMode-SemiBold.woff2') format('woff2'), url('fonts/IvyMode-SemiBold.woff') format('woff');
}

:root {
    --text-color: #1f16c5;
    --accent-color: #5dfed7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    font-family: 'Assistant', sans-serif;
}

h1 {
    text-align: center;
    font-family: 'IvyMode', sans-serif;
    font-size: 2rem;
    margin-top: 2rem;
}

h1 a {
    color: inherit;
    text-decoration: none;
}

h1 a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

hr {
    border: none;
    height: 1px;
    margin-top: 3rem;
    background: #eee;
}

button {
    background: var(--text-color);
    color: white;
    border-radius: 0.25rem;
    padding: 8px 16px;
    border: none;
    width: fit-content;
    display: block;
    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    background: #0c0947;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: var(--text-color);
}

.wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: 100%;
    height: 100%;
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    background: var(--text-color);
    background-image: url('img/palmito.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right -150px;
}

.crosswords {
    width: 100%;
    position: relative;
    min-width: 900px;
    width: 900px;
    margin-inline: auto;
    overflow-x: auto;
    display: grid;
    grid-gap: 0;
}

.crosswords-soluce {
    display: none;
    position: absolute;
    inset: 0;
}

.clues {
    padding: 2rem;
    color: var(--text-color);
    overflow-y: auto;
}

.clues-wrapper h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 3rem;
}

.clues-wrapper h2 svg {
    width: 20px;
    height: 20px;
}

.clues-wrapper ul {
    list-style: none;
    padding-left: 0;
}

.clues-wrapper ul li {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.clues-wrapper ul li b {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--text-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    aspect-ratio: 1;
    color: white;
    flex-shrink: none;
    font-size: 0.875rem;
}

.square {
    position: relative;
    background: #fff;
    box-shadow: 0 0 0 1px #333;
}

.square.disabled {
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.square input {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: none;
    border: none;
    height: 100%;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.15s ease-in;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
}

.square input:hover {
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.4);
}

.square input:focus {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
    outline: none;
}

.square span {
    position: absolute;
    top: 2px;
    left: 5px;
    color: var(--text-color);
    font-weight: bold;
    font-size: 12px;
}

.blocked {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 14px;
}

.soluce ul {
    list-style: none;
    padding-left: 0;
}

@media only screen and (max-width: 1500px) {
    .wrapper {
        grid-template-columns: 3fr 1fr;
    }
}
@media only screen and (max-width: 1350px) {
    .wrapper {
        height: auto;
        display: flex;
        flex-direction: column-reverse;
    }

    .clues {
        max-width: 800px;
        margin-inline: auto;
    }

    .game-container {
        display: block;
    }
}

/* Audio element */

.label-audio {
    margin-bottom: 0.5rem;
}

#playPauseBtn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--text-color);
    color: white;
    border: none;
    cursor: pointer;
    padding: 12px;
    transition: 0.1s;
}

#playPauseBtn:active {
    transform: scale(0.9);
}

/* #playPauseBtn.playing {
    background-color: #a0be78;
} */

#playPauseBtn svg#pause {
    display: none;
}
