@import url("https://fonts.googleapis.com/css2?family=Fira+Code&family=JetBrains+Mono&display=swap");
@import url("editor.css");
@import url("project.css");

:root {
    --text: #f7f7f7;
    --background: #121216;
    --elevated: #28282D;
    --editor: #282C34;
}

* {
    font-family: "Jetbrains Mono", monospace;
    padding: 0;
    margin: 0;
    text-decoration: none;
    box-sizing: border-box;
    cursor: none;
    color: var(--text);
    line-height: 1.5em;
}

section {
    min-height: 100vh;
}

body {
    background-color: var(--background);
    font-size: 1em;
    display: grid;
    justify-items: center;
}

.cursor-wrapper {
    position: fixed;
    left: 0;
    pointer-events: none;
    z-index: 9999999;
}

.cursor {
    height: 0.5em;
    width: 0.5em;
    border-radius: 0.5em;
    background-color: var(--text);
    opacity: 0.3;
    transition: width ease 0.2s, height ease 0.2s, margin ease 0.2s, padding ease 0.2s, border-radius ease 0.2s, background-color ease 0.2s;
}

.titlebar {
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-inline: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.4em;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
}

.titlebar-links {
    display: flex;
    align-items: center;
    gap: 0.5em;
    height: 3em;
}

.undo-wrapper {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 9;
}

.undo {
    visibility: visible;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
    background-color: var(--elevated);
    padding: 0.2em 1em;
    border-radius: 1em;
    margin-top: -5em;
    transition: opacity ease 0.7s, margin-top ease 0.2s;
}

.container {
    padding-inline: 1em;
    width: 100vw;
    max-width: 800px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5em;
    background-color: var(--elevated);
    box-shadow: 0 4px 0 0 black;
    border-radius: 0.5em;
    margin-bottom: 4px;
    padding: 0.25em 0.75em;
    transition: margin-top 0.2s;
}

.btn:active {
    box-shadow: none;
    margin-top: 8px;
}

.divider {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 2em;
    padding-block: 5em;
}

.hide {
    opacity: 0;
    transform: translate(0, 20px);
}

.show {
    opacity: 1;
    transform: none;
    transition: ease 1.5s;
}

.egg-wrapper {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 9;
}

.egg {
    visibility: visible;
    opacity: 0;
    background-color: var(--elevated);
    padding: 0.2em 1em;
    border-radius: 1em;
    margin-bottom: -5em;
    transition: opacity ease 0.7s, margin-bottom ease 0.2s;
}

.bottombar {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1em;
    width: 100%;
    font-size: 0.8em;
    padding-inline: 1em;
    padding-block: 0.5em;
    /* background: linear-gradient(90deg, var(--elevated) 0%, rgb(50, 50, 50) 25%, rgb(50, 50, 50) 75%, var(--elevated) 100%); */
    z-index: 99;
}