body {
    margin: 0 !important;
    padding: 0 !important;
}

/*Theme Overload*/
.td-pb-span8 {
    width: 100% !important;
}

.td-container-wrap {
    width: 100% !important;
}

.td-container {
    width: 90% !important;
}

@media (max-width: 600px) {
    .td-container {
        width: 100% !important;
    }
}

/*Header*/
#btnStart {
    padding-left: 20px;
    padding-right: 20px;
}

.crypto-content button {
    background-color: #214893;
    margin: 5px;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.crypto-content button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.tg-options {
    text-align: right;
}

#tg-disp-timer {
    text-align: center;
}

.tg-header-input {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.tg-header-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.tg-header-stats>* {
    flex: 1;
    border: 1px solid #ffffff33;
}


.tg-header-input input {
    padding: 10px;
    font-size: 16px;
    width: 300px;
}

/*POPUP*/
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/*CRYPT*/
div.dotted-line {
    border-top: 3px dotted #606060;
}

.crypto-content {
    padding: 20px;
    margin: auto;
    overflow-y: scroll;
}

.crypto-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.word-container {
    display: flex;
    background-color: rgb(187, 187, 187);
    padding: 2px;
    border-radius: 1rem;
    align-items: center;
}

.character-box {
    background-color: lightgray;
    font-size: 20px;
    width: 30px;
    height: 70px;
    text-align: center;
    align-content: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    margin: 2px;
}

.character-box-special {
    font-size: 25px;
    font-weight: bold;
    width: 15px;
    height: 70px;
    text-align: center;
    align-content: center;
    justify-content: center;
    cursor: pointer;
}

.character-box .guess-letter {
    color: #777777;
}

.character-box .crypt-letter {
    color: #2d2c2c;
}

.active {
    border: 2px solid #00a2ff;
}

.stopwatch-container {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.wrong-choice {
    border: 2px solid #ED4337;
}


@media (max-width: 600px) {
    .crypto-container {
        gap: 15px;
    }

    .character-box {
        font-size: 15px;
        width: 20px;
        height: 60px;
        border-radius: 6px;
        margin: 2px;
    }

    .character-box-special {
        font-size: 15px;
        font-weight: bold;
        width: 15px;
        height: 60px;
    }
}

/*Scoreboard*/
.tg-scoreboard {
    background: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #007BFF, #0056b3);
    padding: 15px 50px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.tg-scoreboard h1 {
    font-size: 26px;
    margin: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white !important;
}

.tg-scoreboard ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tg-scoreboard li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    margin: 8px 0;
    border-radius: 10px;
    transition: transform 0.3s, background 0.3s;
    font-size: 18px;
}

.tg-scoreboard li:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.tg-scoreboard .tg-lb-name {
    font-weight: 600;
}

.tg-scoreboard .tg-lb-score {
    font-weight: 600;
    color: #ffdd57;
    font-size: 20px;
}

.tg-scoreboard .tg-lb-medal {
    font-size: 22px;
    margin-right: 10px;
}

/*KEYBOARD*/

.custom-keyboard {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    padding: 10px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.key-row {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.key-row button {
    background-color: #f1f1f1;
    border: none;
    height: 50px;
    width: 70px;
    margin: 5px;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 2vw;
}

.key-row button:hover {
    background-color: #ddd;
}

.key-row button:active {
    background-color: #ccc;
}

.tg-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    font-size: 24px;
    background-color: #6200ea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 500;
}

.tg-fab:hover {
    background-color: #3700b3;
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .key-row button {
        width: 30px;
        height: 40px;
        margin: 2px;
    }

    .custom-keyboard {
        display: flex;
    }

    .tg-fab {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .tg-scoreboard {
        padding: 10px 20px;
    }

    .tg-scoreboard h1 {
        font-size: 24px;
        letter-spacing: normal;
    }

    .tg-scoreboard li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.2);
        padding: 8px;
        margin: 6px 0;
        border-radius: 10px;
        transition: transform 0.3s, background 0.3s;
        font-size: 18px;
    }
}

@media (max-width: 330px) {
    .key-row button {
        width: 25px;
        height: 30px;
        font-size: 14px;
        margin: 2px;
    }

    .custom-keyboard {
        display: flex;
    }
}