body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.header-image {
    display: block;
    margin: 10px auto;
    width: 100%;
    max-width: 600px;
}

.container {
    width: 500px;
    margin: 0 auto;
}

/* Instructions */
.instructions {
    text-align: center;
    margin: 10px auto;
    line-height: 1.6;
    font-size: 1.2rem;
    max-width: 100%;
}

.instructions h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #07436A;
}

.instructions p {
    margin-bottom: 10px;
    line-height: 1.3;
    max-width: 100%;
}

.instructions strong {
    color: #004085;
}

.instructions label {
    font-size: 1.2rem;
    margin-top: 10px;
    display: block;
}

#continue-instruction {
    font-size: 1.9rem;
    color: #004085;
    display: block; /* ?? µ???µa ?a eµfa???eta? p??ta */
    margin-top: 10px;
}

#timer {
       text-align: center;
       font-size: 1rem;
       width: 180px;
       height: 30px;
}
#timer option{
       text-align: center;
       width: 250px;
       height: 20px;
       font-size: .8rem;
}


.game-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.hidden {
    display: none;
}

#timer-display {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#word-grid {
    display: grid;
    grid-template-columns: repeat(5, 60px);
    grid-gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#game-over-image img {
    max-width: 300px;
    max-height: 300px;
    display: block;
    margin: 0 auto;
}

#game-over game-results {
    font-size: 2rem;
}

#virtual-keyboard {
    display: grid;
    grid-template-columns: repeat(10, 60px);
    grid-gap: 1px;
    justify-content: center;
    margin-bottom: 1px;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

button img {
    width: 120px;
    height: auto;
}

.word-cell {
    width: 50px;
    height: 28px;
    background-color: #ffffff;
    border: 2px solid #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

#virtual-keyboard {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
    background-color: #4f4f4f;
    padding: 2px;
    border-radius: 10px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#virtual-keyboard .row {
    display: flex;
    gap: 1px;
    justify-content: center;
}

#virtual-keyboard button {
    width: 50px;
    height: 60px;
    background-color: #6c757d;
    border: 1px solid #000;
    border-radius: 5px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

#virtual-keyboard button.special-key {
    width: 68px; /* Adjusted width for special keys */
}

#virtual-keyboard button:active {
    background-color: #5a6268;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

#start-game {
    margin-top: 20px;
}

.footer {
    margin-top: 20px;
    border-top: 3px solid blue;
    padding-top: 10px;
    text-align: center;
}

#ad-banner {
    margin-top: 20px;
    text-align: center;
}

#ad-banner img {
    max-width: 100%;
    height: auto;
}

img {
    max-width: 400px;
    height: auto;
}

#daily-limit-reached {
    text-align: center;
    margin-top: 20px;
}

#daily-limit-image img {
    max-width: 300px;
    max-height: 300px;
    display: block;
    margin: 0 auto;
}

#word-grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hint-row {
    display: grid;
    grid-template-columns: repeat(5, 55px);
    grid-gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

#main-grid {
    display: grid;
    grid-template-columns: repeat(5, 55px);
    grid-gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Responsive ??a ????t?? s?s?e??? se portrait mode */
@media only screen and (max-width: 768px) and (orientation: portrait) {
    body {
        font-size: 14px;
        padding: 10px;
    }

    .header-image {
        max-width: 90%;
    }

    .container {
        width: 100%;
        margin: 0;
    }

    .instructions {
        max-width: 100%;
        font-size: 1rem;
    }

    .instructions h2 {
        font-size: 1.5rem;
    }

    .game-board {
        margin-top: 10px;
    }

    #word-grid {
        grid-template-columns: repeat(5, 50px);
        grid-gap: 8px;
    }

    .word-cell {
        width: 50px;
        height: 38px;
        font-size: 1.5rem;
    }

    #virtual-keyboard {
        grid-template-columns: repeat(10, 50px);
        gap: 3px;
        padding: 3px;
    }
  
    #virtual-keyboard button {
        width: 50px;
        height: 60px;
        font-size: 1.5rem;
    }

    #start-game img {
        width: 200px;
        height: 50px;
    }

    #try-again img {
        width: 200px;
        height: 50px;
    }

    #daily-limit-reached p,
    #game-over p {
        font-size: 1rem;
    }

    footer {
        font-size: 0.8rem;
        text-align: center;
    }

    #timer-display {
        font-size: 1.5rem;
    }
}

/* ???sa?µ??? ??a ????t? se landscape */
@media only screen and (max-width: 768px) and (orientation: landscape) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        text-align: center;
        background-color: #f8f9fa;
    }

    .instructions, .game-board, #daily-limit-reached, #game-over {
        display: none;
    }

    #landscape-warning {
        display: block;
        font-size: 1.5rem;
        color: red;
    }
}

/* Responsive ??a ????t?? s?s?e??? ??t? ap? 500px */
@media only screen and (max-width: 500px) {
    #virtual-keyboard {
        grid-template-columns: repeat(10, 1fr);
        gap: 2px;
        width: 100%;
    }

    #virtual-keyboard button {
        width: auto;
        height: 35px;
        font-size: 0.9rem;
    }

    .word-cell {
        width: 42px;
        height: 35px;
        font-size: 1.5rem;
    }

    #word-grid-container {
        padding: 0 5px;
    }

    .hint-row {
        grid-template-columns: repeat(5, 40px);
    }

    body {
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .header-image {
        max-width: 80%;
    }

    #timer-display {
        font-size: 1.2rem;
    }

    .footer {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Responsive ??a ????t?? s?s?e??? ??t? ap? 500px */
@media only screen and (max-width: 500px) {
    .hint-row {
        display: grid;
        grid-template-columns: repeat(5, minmax(40px, 1fr)); /* ???aµ??? p??t?? µe e????st? 40px */
        gap: 8px; /* ?pa???? ap?stas? µeta?? t?? ???t??? */
        justify-content: center; /* ?e?t???? e??????µµ?s? */
        align-items: center; /* ???et? e??????µµ?s? */
    }

    .word-cell {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        display: flex; /* ???????µµ?s? pe??e??µ???? */
        justify-content: center;
        align-items: center;
        border: 2px solid #000; /* ?µ??????e?a sta pe??????a */
    }

    #word-grid-container {
        padding: 0 10px;
    }

    #virtual-keyboard {
        grid-template-columns: repeat(10, 1fr);
        gap: 3px;
        width: 100%;
    }

    #virtual-keyboard button {
        width: auto;
        height: 35px;
        font-size: 0.9rem;
    }

    body {
        overflow-x: hidden;
    }

    .header-image {
        max-width: 90%;
    }

    .footer {
        font-size: 0.8rem;
        text-align: center;
    }
}
#continue-instruction {
    font-size: 1.9rem;
    color: #004085;
    display: block; /* ?? µ???µa ?a eµfa???eta? p??ta */
    margin-top: 10px;
}
@media only screen and (max-width: 320px) {
    /* ???µ?s? t?? p???t???????? */
    #virtual-keyboard {
        display: flex;
        flex-wrap: wrap; /* ??asf???s? ?t? ta p???t?a t??????ta? se ??aµµ?? a? ??e?aste? */
        justify-content: center; /* ???t?? st? p??t?? t?? ?????? */
        gap: 6px; /* ?e?? a??µesa sta p???t?a */
        width: 100%; /* ?????? ???s? t?? d?a??s?µ?? p??t??? */
    }
   
    #virtual-keyboard button {
        flex: 0 1 calc(10% - 6px); /* ???e p???t?? ?ata?aµß??e? 10% t?? p??t??? µe ?e?? */
        max-width: 38px; /* ???µa µe?a??te?? µ???st? p??t?? */
        height: 42px; /* ????µ??? ???? */
        font-size: 1rem; /* ?e?a??te?? ??aµµat?se??? */
        padding: 4px; /* ???s???? padding ??a ??et? ???s? */
    }

    /* ??d??? ???µ?s? ??a µe?a??te?a p???t?a (Enter, Backspace) */
    #virtual-keyboard button.special-key {
        flex: 0 1 calc(20% - 6px); /* ?a e?d??? p???t?a ?ata?aµß????? pe??ss?te?? ???? */
        max-width: 60px; /* ?e?a??te?? p??t?? ??a Enter ?a? Backspace */
        height: 42px; /* ??at???s? ?d??? ????? */
        font-size: 1.8rem; /* G?aµµat?se??? ?d?a µe ta ???a p???t?a */
        padding: 4px;
    }
}
.hint-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* ??at??e? t?? st??e? st?? ?d?a e??e?a */
    gap: 10px; /* ??at???s? t?? ?e??? a??µesa sta ???t?? */
    justify-content: center; /* ?e?t???? e??????µµ?s? */
    margin-bottom: 15px;
    width: 100%; /* ??a?µ???s? µe t? p??t?? t?? ????? grid */
    max-width: 300px; /* ???? ??a µ????? ????e? */
    padding: 0 10px; /* ???????µµ?s? ??a ?a µ?? ???ß??ta? ?? ???e? */
}

@media only screen and (max-width: 400px) {
    body {
        overflow-x: hidden;
        font-size: 12px;
    }

    .container {
        width: 100%;
        margin: 6px;
        padding: 0 5px;
    }

    #virtual-keyboard {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 2px;
        width: 100%;
    }
  
    #virtual-keyboard button {
        width: auto;
        flex: 0 1 calc(10% - 2px);
        height: 40px;
        font-size: 0.9rem;
        padding: 2px;
    }

    #virtual-keyboard button.special-key {
        flex: 0 1 calc(20% - 2px);
        max-width: 60px;
        height: 40px;
    }

    .word-cell {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin: 0;
    }

    .hint-row {
        grid-template-columns: repeat(5, minmax(35px, 1fr));
        gap: 5px;
        justify-content: center;
    }

    #word-grid-container {
        padding: 0 5px;
    }
}
@media only screen and (max-width: 400px) {
    #virtual-keyboard {
        display: flex;
        flex-wrap: wrap; /* ??ad?p??s? ???µp??? */
        justify-content: center; /* ?e?t???? e??????µµ?s? */
        gap: 4px; /* ?e??s? ?e??? */
        padding: 10px;
    }

    #virtual-keyboard button {
        flex: 0 1 calc(10% - 4px); /* ???aµ??? p??t?? */
        max-width: 45px; /* ?e?a??te?? p??t?? */
        height: 45px; /* ????µ??? ???? */
        font-size: 1rem; /* ?e?a??te?? ??aµµat?se??? */
        padding: 6px; /* ?e??ss?te?? padding */
    }

    #virtual-keyboard button.special-key {
        flex: 0 1 calc(20% - 4px); /* ???t?? ??a Enter ?a? Backspace */
        max-width: 60px; /* ?e?a??te?? p??t?? ??a e?d??? ???µp?? */
        height: 42px; /* ?e?a??te?? ???? */
        font-size: 1.6rem; /* G?aµµat?se??? ?d?a µe ta ???a ???µp?? */
        padding: 3px; /* ?e??ss?te?? padding */
    }
}

.footer {
    margin-top: 10px;
    border-top: 8px solid #087A46;
    padding-top: 5px;
    text-align: center;
    font-size: 0.9rem;
    max-width: 400px;
    color: #333;
}

timer-display {
    height: 15px; /* Adjust as needed */
    font-size: 15px;
}

.timer-container {
    display: flex;
    align-items: center; /* Vertically align items */
}

#start-time-display {
    margin-left: 15px; /* Add some space between the timers */
    font-size: 25px;
}
