@font-face {
    font-family: 'Copyduck';
    src: url('fonts/Copyduck.otf');
    src: url('fonts/Copyduck.otf') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/Copyduck.ttf')  format('truetype'); /* Legacy iOS */
}

@font-face {
    font-family: 'AlteHaasGroteskRegular';
    src: url('fonts/AlteHaasGroteskRegular.ttf');
    src: url('fonts/AlteHaasGroteskRegular.ttf')  format('truetype'); /* Legacy iOS */
}

@font-face {
    font-family: 'Dimbo';
    src: url('fonts/Dimbo Regular.ttf');
    src: url('fonts/Dimbo Regular.ttf')  format('truetype'); /* Legacy iOS */
}

body {
    font-family: 'Dimbo', 'Arial', sans-serif;
    background-color: #f0f0f0;
    /*background-image: url('../img/bg.jpg');*/
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    flex-direction: column;
}

h1, h2 {
    font-family: 'Copyduck', sans-serif;
}

h3 {
    text-align: center;
}

button,
th {
    font-family: 'AlteHaasGroteskRegular', 'Arial', sans-serif;
    font-weight: normal;
}

.game-container {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
}
.game-board-container {
    text-align: center;
}
#game-board {
    display: grid;
    gap: 2px;
    margin-bottom: 20px;
    justify-content: center;
}
/*
.tile {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
}
*/
.tile {
    width: 50px;
    height: 50px;
    background-color: #f8f8f8;
    border: none;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.selected {
    background-color: #4CAF50;
    color: white;
}
#word-display {
    font-size: 32px;
    margin-bottom: 10px;
    height: 30px;
    position: fixed;
    top: 20px;
    left: 40px;
}
#score-display {
    font-size: 32px;
    margin-bottom: 10px;
    position: fixed;
    top: 20px;
    right: 40px;
}
#high-score-display {
    font-size: 14px;
    margin-bottom: 10px;
    color: #222;
    position: fixed;
    top: 60px;
    right: 44px;
}
#submit-word,
#reset-game {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 5px;
}
#submit-word:hover {
    background-color: #45a049;
}
#used-words-container {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px 0;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}
#used-words {
    width: 100%;
    border-collapse: collapse;
}
#used-words th, #used-words td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
#used-words th {
    background-color: #f2f2f2;
}
#used-words th {
    background-color: #4CAF50BB;
    color: white;
}
#used-words tr:nth-child(even) {
    background-color: #f2f2f2;
}

.footer {
    position: fixed;
    right: 10px;
    bottom: 10px;
}

#awesome {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6em;
    font-weight: bold;
    height: 60px;
    color: #000;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    pointer-events: none; /* Make sure the text doesn't interfere with any other UI elements */
}

@media (max-width: 900px) {
    h2 {
        margin: 20px 0 8px;
    }
    .footer {
        position: relative;
        margin-top: 20px;
    }
    #awesome {
        font-size: 4em;
    }
    #score-display {
        font-size: 22px;
        margin-bottom: 4px;
        position: relative;
        top: 0px;
        right: 0;
    }
    #high-score-display {
        font-size: 14px;
        margin-bottom: 0px;
        position: relative;
        top: 0px;
        right: 0;
    }
}

.animate-in {
    opacity: 1 !important;
}