:root {
    --background-color: #121212;
    --background-overlay-color: #12121299;
    --text-color: #DDDDDD;
    --subtext-color: #BBBBBB;
    --border-color: #333333;
    --link-color: #4AA4EA;
    --link-hover-color: #99CBF1;
    --link-hover-background: #4AA4EA33;
    --coming-soon-link-color: #808080;
    --coming-soon-link-hover-color: #DDDDDD;
    --login-button-color: #DDDDDD;
    --login-button-hover-color: #4AA4EA;
}

html {
    padding: 0 1rem;
    font-size: 16px;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);

    font-family: "Lato", sans-serif;
    text-align: center;
}

main {
    max-width: 500px;
    margin: 0 auto;
}

footer {
    margin: 10rem 0 2rem;
}

hr {
    border: none;
    margin: 1rem 0;
}

h1 {
    display: inline-block;
    margin-bottom: 0;

    font-size: 4rem;
    color: var(--header-hover-color, var(--text-color));
    text-shadow: 0 0 10px rgb(from var(--header-hover-color, var(--text-color)) r g b / 0.8);

    transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
    will-change: transform;
}

.wide-letter-spacing {
    letter-spacing: 1rem;
}

h2 {
    margin: 0 1rem;
    font-size: 1.5rem;
}

.right-aligned {
    text-align: right;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover,
a:focus-within {
    color: var(--link-hover-color);
}

#click-me-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--background-overlay-color);
    backdrop-filter: blur(10px);

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.5s ease;
}

#click-me-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-text {
    font-size: 2rem;
}

.subtext {
    margin: 0.5rem 1rem;
    color: var(--subtext-color);
    font-size: 1rem;
}

.subheader {
    text-align: right;
}

.coming-soon-link {
    color: var(--coming-soon-link-color);
    cursor: default;
}

.coming-soon-link:hover {
    color: var(--coming-soon-link-hover-color);
}

.link-lists {
    padding-left: 0;
    list-style-type: none;
}

.link-lists li {
    position: relative;
    overflow: hidden;
    text-align: left;
    z-index: 0;

    border-block: 1px solid var(--border-color);
}

.link-lists li + li {
    margin-top: -1px;
}

.link-lists .hovering-link {
    display: block;
    padding: 0.6rem 0.5rem;

    text-shadow: 0 0 0 rgb(0 0 0 / 0);

    transition: 
        color 0.2s ease-in-out, 
        text-shadow 0.2s ease-in-out, 
        transform 0.2s ease-out;
}

.link-lists li:hover .hovering-link,
.link-lists li:focus-within .hovering-link {
    position: relative;
    z-index: 1;
    transform: translateY(-2px);

    outline: none;
    text-shadow: 0 2px 4px rgb(0 0 0 / 0.8);
}

.link-lists li::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    
    opacity: 0;
    
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;

    -webkit-mask-image: linear-gradient(to right, 
        black 0%, black 40%, transparent 60%, transparent 100%
    );
    mask-image: linear-gradient(to right, 
        black 0%, black 40%, transparent 60%, transparent 100%
    );
    
    -webkit-mask-size: 250% 100%;
    mask-size: 250% 100%;
    
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;

    transition: 
        opacity 0.4s ease-in-out, 
        mask-position 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
        -webkit-mask-position 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.link-lists li:hover::before,
.link-lists li:focus-within::before {
    opacity: 0.6;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
}

.aq-question {
    font-size: 1em;
    font-weight: bold;
    text-align: justify;
}

.aq-answer {
    margin: -0.5rem 0.5rem 0;
    color: var(--subtext-color);
    text-align: justify;
    line-height: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.profile-container {
    display: none;
}

#email-display {
    margin: 0.5rem 1rem;
    font-size: 1.5rem;
    color: var(--link-color);
}

#email-input,
#password-input {
    width: 100%;
    padding: 0.6rem 0.5rem;
    box-sizing: border-box;
    
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

#email-input:focus,
#password-input:focus {
    border-color: var(--login-button-hover-color);
    background-color: rgb(from var(--login-button-hover-color) r g b / 0.2);
}

#login-button,
#logout-button {
    width: 100%;
    padding: 0.6rem 0.5rem;
    
    font-family: inherit;
    font-weight: bold;
    font-size: 1rem;
    
    background-color: var(--login-button-color);
    color: var(--background-color);
    border: none;
    border-radius: 2px;
    
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

#login-button:hover,
#login-button:focus-within,
#logout-button:hover,
#logout-button:focus-within {
    background-color: var(--login-button-hover-color);
    color: white;
    outline: none;
}

#login-button:active,
#logout-button:active {
    transform: scale(0.98);
}

.input-error {
    border-color: #ff5555 !important; 
    background-color: rgba(255, 55, 55, 0.2) !important;
    
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* ----- I am not bothered to type all these default features. Thanks Gemini! ----- */

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration {
    display: none;
}

input, 
button {
    appearance: none;
    -webkit-appearance: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--background-color) inset !important;
        -webkit-text-fill-color: var(--text-color) !important;
    transition: background-color 5000s ease-in-out 0s;
}