@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap'); /* Alata */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,500;0,700;1,300&display=swap'); /* Ubuntu */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700&display=swap'); /* Ubuntu Mono */

:root {
    --black: hsl(0, 0%, 0%);
    --white: white;
    --accent: #446DF6;
    --background: #010618;
    --dark-accent: #000c2e;
    --light-accent: #839EF9;
    --heading-font-family: 'Alata', sans-serif;
    --body-font-family: 'Ubuntu', sans-serif;
    --monospace-font-family: 'Ubuntu Mono', monospace;
    --body-font-weight: 300;


    /* Specific Colors */
    --color-state-0: var(--dark-accent);
    --color-state-1: #3a3a3c; 
    --color-state-2: #B59F3B;
    --color-state-3: #538D4E;
}

html {
    color-scheme: dark;
    height: 100%;
}

h1, h2, h3, p {
    max-width: 80ch;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font-family);
}

p {
    line-height: 1.7;
}

body {
    background-color: var(--background);
    margin: 0;
    height: 100%;
    color: var(--white);
    overflow-y: auto;
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    align-items: center;
}


header {
    padding: 1rem;
    display: flex;
    justify-content: center;
    top: 0;
    width: 95%;
    position: relative;
}

header::after {
    content: "";
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    width: 100%;
    height: 5px;
    position: absolute;
    bottom: 0;
}


main {
    padding: 2rem;
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

section {
    display: flex;
    flex-direction: column;
    width: fit-content;
}

#text-area {
    width: 100%;
    height: 20vh;
    font-family: var(--monospace-font-family);
    font-size: inherit;
    border: 1px solid var(--accent);
    padding: 1rem;
    background: none;
}

:focus-visible, :focus {
    outline: 2px solid var(--light-accent);
}

input, label, button {
    cursor: pointer;
}

footer {
    display: flex;
    align-items: center;
    /* margin-top: 25vh; */
    flex-direction: column;
    position: relative;
    padding: 0 2rem;
    text-align: center;
    width: 90%;
}
  
footer::before {
    content: "";
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    width: 100%;
    height: 5px;
    position: absolute;
    top: -1rem;
}
  
footer p {
    width: fit-content;
}
  
footer .link-list {
    margin: 0;
}

.link-list {
    margin-bottom: 1rem;
}
  
.link-list p {
    margin: 8px;
}

a {
    color: var(--light-accent);
    text-decoration: none;
    position: relative;
    border: 1px solid transparent;
}
  
a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.25s;
    border-radius: 100px;
}
  
a:is(:hover, :focus:not(:focus-visible))::after {
    width: 100%;
    left: 0;
}

a.with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0 0.5rem;
    flex-direction: row;
}
  
a.with-icon p {
    word-break: normal;
    overflow-wrap: anywhere;
}
  
a:not(.with-icon) {
    padding: 0.5rem 0;
}

.updated-text {
    font-size: 0.6rem;
    font-style: italic;
    opacity: 60%;
}


/* Scrollbar */

:not(::-webkit-scrollbar) {
    scrollbar-color: rgba(255, 255, 255, 0.45) var(--background);
    scrollbar-width: thin;
}
  
/* width */
::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 100px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.75);
}



#help-dialog {
    /* background-color: var(--background); */
    color: var(--white);
    border-radius: 10px;
    padding: 1rem;
    top: 15rem;
    width: 90%;
    max-width: 90ch;
}

#close-help-dialog {
    display: flex;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    padding: 0.5rem;
    border: none;
    cursor: pointer;
    border-radius: 100%;
}

#close-help-dialog:hover {
    opacity: 40%;
}

#menu {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    border-radius: 10px;
    position: absolute;
    top: 0;
    height: 100%;
    right: 1rem;
    align-items: center;
}

#menu button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 100px;
    height: 3rem;
    display: flex;
    align-items: center;
}


#menu button:hover {
    opacity: 60%;
}