@import url('https://fonts.googleapis.com/css2?family=Anton&family=Jersey+10+Charted&display=swap');
body {
    color: #ffffff;
    font-family: 'Anton', sans-serif;
    font-size: x-large;
    padding: 0;
    margin: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center top;
    background-color: #919191;
}

section {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 25vh;
}

::-webkit-scrollbar{
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background: #44274F;
    border-radius: 0px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #37213F;
}
  
.content {
    padding: 20px;
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1.5s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.links a {
    margin-right: 20px;
}

a:hover {
    color: #f0f02b;
    text-transform: uppercase;
    opacity: 0.5;
    transition: all 1.5s;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    text-align: center;
}

p {
    margin-top: 10px;
    margin-bottom: 0.04px;
}

/* loading percentage style */
.loading {
    position:fixed;
    top: 0;
    left: 0;
    padding: 10px;
    z-index: 9999;
}

.percentage {
    font-size: 24px;
    opacity: 50%;
}

.buttontotop {
    text-decoration: none;
    text-align: center;
    color: inherit;
    font-size: x-large;
    border: none;
    outline: none;
    font: inherit;
    background: transparent;
}

.buttontotop:hover {
    color: #f0f02b;
    text-transform: uppercase;
    transition: all 1.5s;
}

/* Donut styles */
#donut-output {
    color: #ffffff;
    font-family: monospace;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    height: 300px;
    display: block;
    margin: 20px auto;
    width: fit-content;
    overflow: hidden;
    white-space: pre;
    text-align: center;
    background-color: #000000;
    border: 2px solid #44274F;
    transition: border-color 1.5s;
    letter-spacing: 0;
}

#donut-output:hover {
    border-color: #f0f02b;
}

.donut-section {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 25vh;
}

/* Wordle Terminal Styles */
.wordle-section {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 25vh;
}

.terminal-container {
    background-color: #000000;
    border: 2px solid #44274F;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
    height: 400px;
    overflow: hidden;
    transition: border-color 1.5s;
}

.terminal-container:hover {
    border-color: #f0f02b;
}

.terminal-output {
    height: 350px;
    overflow-y: auto;
    padding: 16px;
    color: #ffffff;
    font-family: monospace;
    font-size: 14px;
}

.terminal-input {
    display: flex;
    padding: 8px 16px;
    background-color: #000000;
    border-top: 2px solid #44274F;
}

.terminal-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: monospace;
    font-size: 14px;
    outline: none;
}

.terminal-input span {
    color: #ffffff;
    margin-right: 8px;
}

.guess-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 8px 0;
    font-family: monospace;
}

.letter {
    font-size: 1.2em;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.letter-correct {
    background-color: #538d4e;
    color: #ffffff;
}

.letter-wrong-position {
    background-color: #b59f3b;
    color: #ffffff;
}

.letter-incorrect {
    color: #ffffff;
}

@media screen and (max-width: 844px) {
    body {
        font-family: 'Anton', sans-serif;
        font-size: large;
        padding: 0;
        margin: 0;
    }
    
    section {
        min-height: 35vh;
    }

    .caption {
        font-size: large;
        bottom: -10px;
    }

    .loading {
        padding: 1px;
    }

    .links {
        font-size: large;
    }

    #donut-output {
        font-size: 8px;
        width: fit-content;
    }

    .terminal-container {
        width: 90%;
        height: 300px;
    }
    
    .terminal-output {
        height: 250px;
        font-size: 12px;
    }
    
    .terminal-input input {
        font-size: 12px;
    }
    
    .letter {
        font-size: 1em;
        padding: 2px 4px;
    }
}