:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --hover-bg: #f0f0f0;
    --font-main: Georgia, 'Times New Roman', Times, serif;
}

body.darkMode {
    --bg-color: #000000;
    --text-color: #ffffff;
    --border-color: #ffffff;
    --hover-bg: #222222;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    align-items: center;
}

.footer {
    cursor: pointer;
    text-align: center;
    margin: 0;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    text-align: center;
    margin: 0;
}

#app {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
}

.title {
    margin-top: 40px;
    font-size: 30px;
    font-weight: 300;
    text-transform: lowercase;
    cursor: pointer;
    text-align: center;
}

.buttons {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.button {
    width: 100%;
    max-width: 180px;
    padding: 0.8em;
    border: 0.1em solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    text-transform: lowercase;
    transition: background 0.2s, transform 0.1s;
    user-select: none;
}

.button:hover {
    background-color: var(--hover);
}

.title, .button, .footer {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

body.darkMode:not(.mouseIsMoving) .title,
body.darkMode:not(.mouseIsMoving) .button,
body.darkMode:not(.mouseIsMoving) .footer {
    opacity: 0;
    pointer-events: none;
}

body:not(.darkMode) .title,
body:not(.darkMode) .button,
body:not(.darkMode) .footer {
    opacity: 1 !important;
}