:root {
    --MAIN-FONT-FAMILY: 'Fira Code', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    --MAIN-COLOR: #8bb78b;
    --MAIN-COLOR-LIGHT: #9bcb9b;
    --LIGHT-WHITE: rgb(246, 246, 246);
    --NEGATIVE-COLOR: #c52828;
    --NEGATIVE-COLOR-LIGHT: #ff6767;
    --MAIN-FONT-COLOR: rgb(24, 24, 24);
    --MAIN-BORDER-RADIUS: 0.5em;
    --POSITIVE-COLOR: rgb(10, 141, 10);
    --LIGHT-BLACK: rgba(0, 0, 0, 0.2);
}

* {
    /* RESET */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: var(--MAIN-FONT-FAMILY);
    font-size: 1rem;
    scroll-behavior: smooth;
    color: var(--MAIN-FONT-COLOR);
    min-height: 100vh;
    background: rgb(255, 240, 145);
    background: radial-gradient(circle, rgba(255, 240, 145, 1) 0%, rgba(255, 237, 131, 1) 44%, rgba(235, 212, 81, 1) 67%, rgba(199, 180, 64, 1) 87%, rgba(185, 166, 47, 1) 100%) fixed;
    animation: puff-in-background 1s ease-in-out forwards;
}

h2 {
    text-align: left;
    text-shadow: var(--MEDIUM-ANTI-ALIASING);
}

.navbar {
    display: flex;
    flex-direction: row;
    --NAVBAR-COLOR: white;
    background-color: var(--NAVBAR-COLOR);
    width: 350px;
    min-width: 30%;
    max-width: 100%;
    margin: auto;
    padding: 1.5em;
    border-radius: 0.5em;
    border-bottom-left-radius: 3em;
    border-bottom-right-radius: 3em;
    box-shadow: 0px 2px 4px 6px var(--MAIN-COLOR);
}

.navbar nav {
    width: 100%;
	display: flex;
    justify-content: center;
    text-wrap: nowrap;
	align-items: center;
}

.navbar nav a {
    margin: auto;
    padding: 0.2em 0.5em;
    width: auto;
    border-radius: 0.25em;
    background-color: color-mix(in srgb, var(--MAIN-COLOR-LIGHT), white 60%); 
    transition: all ease-in-out 0.2s;
    text-decoration: none;
    font-size: 1.1rem;
    text-shadow: 0px 0px 1px var(--MAIN-FONT-COLOR);
    font-size: 1.1rem;
    color: var(--NAVBAR-TEXT-COLOR);
}

.navbar nav a:hover {
    background-color: color-mix(in srgb, var(--MAIN-COLOR-LIGHT), white 40%);
    color: inherit;
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 1.3em 2em;
    }

	.navbar nav {
		flex-direction: column;
		text-align: center;
	}
}

.container {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 2em 3.5em;
    border-radius: var(--MAIN-BORDER-RADIUS);
}

.centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.inline-centered {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

hr {
    background-color: var(--MAIN-COLOR);
	width: 100%;
	height: 1px;
}

main {
    height: auto;
    width: 850px;
    min-width: 60%;
    max-width: 90%;
    margin: 3em auto;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0px 0px 10px 2px var(--MAIN-COLOR);
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100vw;
    --BUTTON-COLOR: var(--MAIN-COLOR-LIGHT);
    background-color: var(--BUTTON-COLOR);
    transition: all 0.2s ease;
    font-weight: bold;
    box-shadow: 0px 0px 2px 1px var(--BUTTON-COLOR);
    font-size: 1.1rem;
    padding: 0.5em;
    font-family: var(--MAIN-FONT-FAMILY);
    border: none;
    width: 100%;
}

button:hover {
    background-color: color-mix(in srgb, var(--BUTTON-COLOR), black 8%);
}

button:active {
    transform: scale(0.95);
    box-shadow: var(--ACTIVE-SHADOW);
}

/* Utilities */

.small-spacing>*:not(:first-child) {
    margin-top: 1.25em;
}

.mid-spacing>*:not(:first-child) {
    margin-top: 2.5em;
}

.left-padding {
    padding-left: 2em;
}

.right-icon {
    font-size: inherit;
    width: 1em;
    height: 1em;
    margin: 0em 0em 0em 1em;
}

.left-icon {
    font-size: inherit;
    width: 1em;
    height: 1em;
    margin: 0em 1em 0em 0em;
}

.success-message {
    margin: auto;
    display: flex;
    float: right;
    height: auto;
    width: 10vw;
    line-height: 150%;
    border: 2px solid #8bb78b;
    background-color: #bbdfbb;
    padding: 1.25%;
    border-radius: 10px;
    color: rgb(0, 123, 0);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    top: 12%;
    right: 4.6%;
    position: fixed;
    transition: transform 3s ease-in, opacity 3s ease-in;
}

.success-message.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

img {
    pointer-events: none;
}