* {
    margin: 0;
    padding: 0;
    outline: none;
    color: inherit;
    font-family: inherit;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root,
::backdrop {
    --l: 70%;
    --s: 100%;

    --dark: 80%;
    --light: 20%;

    --h-pink: 300;
    --h-purple: 250;
    --h-blue: 200;
    --h-green: 150;
    --h-yellow: 50;
    --h-orange: 30;
    --h-red: 0;

    --pink: hsl(var(--h-pink), var(--s), var(--l));
    --purple: hsl(var(--h-purple), var(--s), var(--l));
    --blue: hsl(var(--h-blue), var(--s), var(--l));
    --green: hsl(var(--h-green), var(--s), var(--l));
    --yellow: hsl(var(--h-yellow), var(--s), var(--l));
    --orange: hsl(var(--h-orange), var(--s), var(--l));
    --red: hsl(var(--h-red), var(--s), var(--l));

    --black: hsl(0, 0%, 5%);
    --gray: hsl(0, 0%, 50%);
    --white: hsl(0, 0%, 95%);

    --shadow: 0 0 10px hsla(0, 0%, 5%, 95%);

    --gradient: linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--green), var(--yellow), var(--orange), var(--red));

    --fore: var(--white);
    --back: var(--black);

    color-scheme: dark;
}

@media (prefers-color-scheme: light) {
    :root,
    ::backdrop {
        --l: 70%;
        --s: 100%;

        --dark: 80%;
        --light: 20%;

        --h-pink: 300;
        --h-purple: 250;
        --h-blue: 200;
        --h-green: 150;
        --h-yellow: 50;
        --h-orange: 30;
        --h-red: 0;

        --pink: hsl(var(--h-pink), var(--s), var(--l));
        --purple: hsl(var(--h-purple), var(--s), var(--l));
        --blue: hsl(var(--h-blue), var(--s), var(--l));
        --green: hsl(var(--h-green), var(--s), var(--l));
        --yellow: hsl(var(--h-yellow), var(--s), var(--l));
        --orange: hsl(var(--h-orange), var(--s), var(--l));
        --red: hsl(var(--h-red), var(--s), var(--l));

        --black: hsl(0, 0%, 5%);
        --gray: hsl(0, 0%, 50%);
        --white: hsl(0, 0%, 95%);

        --shadow: 0 0 10px hsla(0, 0%, 5%, 50%);

        --gradient: linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--green), var(--yellow), var(--orange), var(--red));

        --fore: var(--black);
        --back: var(--white);

        color-scheme: light;
    }
}

:root,
::backdrop {
    font-size: 18px;
    font-family: 'Lato', sans-serif;

    color: var(--fore);
    background: var(--back);
}

html,
body {
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    transition: opacity 500ms ease;
}

header {
    z-index: 1;
    width: 100%;
    position: absolute;
}

p {
    margin: 0;
    width: 100%;
    max-width: 900px;
    line-height: 1.9rem;
    padding: 0.5rem;
}

a {
    cursor: pointer;
    padding: 0.3rem;
    position: relative;
    font-size: inherit;
    display: inline-block;
    text-decoration: none;
}

a::before {
    top: 0;
    left: 0;
    content: '';
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;

    border: solid 2px transparent;
    border-radius: 1px;
    border-image-slice: 1;
    border-width: 0 0 1px 0;
    border-image-source: var(--gradient);
}

a:hover::before {
    border-width: 1px;
}

i {
    color: var(--gray);
    font-style: italic;
    text-shadow: inherit;
    font-weight: lighter;
}

h1,
h2 {
    padding: 0.3rem 0.6rem;
    font-weight: 300;
    text-transform: capitalize;
}

h1 {
    font-size: 2.9rem;
}

h2 {
    margin: 0.6rem;
    padding: 0.6rem;
    margin-top: 3rem;
    font-size: 2.3rem;
    border-bottom: solid 1px var(--gray);
}

strong {
    color: inherit;
    font-size: inherit;
    font-weight: bolder;
    font-style: inherit;
    text-shadow: inherit;
}

input,
textarea {
    flex: 1;
    border: none;
    display: flex;
    margin: 0.6rem;
    max-width: 100%;
    padding: 0.6rem;
    background: var(--back);
    border-bottom: solid 1px var(--gray);
}

textarea {
    width: 100%;
    min-height: 6rem;
    margin: 0.6rem 0;
}

input:focus,
textarea:focus {
    background: var(--gray);
    border-color: var(--blue);
}

form {
    padding: 0.9rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
}

::selection {
    color: var(--fore);
    background-color: var(--purple);
}

::-moz-selection {
    color: var(--fore);
    background-color: var(--purple);
}

::-webkit-input-placeholder {
    color: var(--gray);
}

::-moz-placeholder {
    color: var(--gray);
}

:-ms-input-placeholder {
    color: var(--gray);
}

:-moz-placeholder {
    color: var(--gray);
}

::-webkit-scrollbar {
    width: 10px;
    background: hsl(0, 0%, 50%, 5%);
}

::-webkit-scrollbar-thumb {
    background: hsl(0, 0%, 50%, 10%);
}

::-webkit-scrollbar:hover {
    background: hsl(0, 0%, 50%, 5%);
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(0, 0%, 50%, 20%);
}

/*
	globals
*/

.title {
    color: var(--black);
    padding: 6rem 0 3rem 0;
    margin-bottom: 3rem;
    background: var(--gradient);
}

.menu .menu-list a.active {
    color: var(--gray);
}

.menu.active .menu-list {
    box-shadow: var(--shadow);
}

/*
	layout
*/
.row {
    display: flex;
    flex-direction: row;
}

.column {
    display: flex;
    flex-direction: column;
}

.start {
    display: flex;
    align-self: flex-start;
}

.end {
    display: flex;
    align-self: flex-end;
}

.center {
    display: flex;
    align-items: center;
}

.between {
    display: flex;
    justify-content: space-between;
}

.around {
    display: flex;
    justify-content: space-around;
}

.middle {
    display: flex;
    justify-content: center;
}

.wrap {
    display: flex;
    flex-flow: wrap;
}

.shrink {
    flex-shrink: 1;
}

.grow {
    flex-grow: 1;
}

.basis-none {
    flex-basis: 0;
}

.basis-auto {
    flex-basis: 0;
}

.fill {
    flex: 1;
    width: 100%;
    display: flex;
    min-height: 100vh;
}

.padding-1 {
    padding: 0.5rem;
}

.list > * {
    display: list-item;
    list-style-position: inside;
}

/*
	items
*/
.box {
    display: flex;
    margin: 0.6rem;
    padding: 0.9rem;
    max-width: 900px;
    color: var(--back);
    background: var(--fore);
    box-shadow: var(--shadow);
}

.box h1,
.box h2 {
    margin: 0;
    padding: 0;
    border: none;
    text-align: center;
    text-transform: lowercase;
    font-family: 'Roboto Mono', monospace;
}

.shapes {
    z-index: -1;
    width: 100vw;
    height: 100vh;
    position: fixed;
}

.shapes svg {
    width: 100vw;
    height: 100vh;
}

.arrow {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6rem;
    border: none;
    display: none;
    cursor: pointer;
    position: absolute;
}

.arrow:hover {
    border: none;
}

.arrow:after {
    content: '';
    margin: auto;
    border: none;
    width: 3rem;
    height: 3rem;
    display: block;
    border-top: solid 1px transparent;
    border-right: solid 1px transparent;
    animation-name: down;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    transform: translateY(0) rotate(135deg);
}

/*
 	sections
*/
.art {
    padding: 0.9rem;
    position: relative;
}

.about {
    padding: 0.9rem;
}

/*
 	colors
*/
.purple.fc {
    color: var(--purple);
}

.blue.fc {
    color: var(--blue);
}

.green.fc {
    color: var(--green);
}

.yellow.fc {
    color: var(--yellow);
}

.red.fc {
    color: var(--red);
}

.black-fill {
    fill: var(--black);
}

.white-fill {
    fill: var(--white);
}

.gray-fill {
    fill: var(--gray);
}

.purple-fill {
    fill: var(--purple);
}

.blue-fill {
    fill: var(--blue);
}

.green-fill {
    fill: var(--green);
}

.yellow-fill {
    fill: var(--yellow);
}

.red-fill {
    fill: var(--red);
}

/*
	menu start
*/

.menu {
    top: 0;
    right: 0;
    position: fixed;
}

.menu-icon {
    z-index: 1;
    width: 3rem;
    height: 3rem;
    margin: 1.9rem;
    cursor: pointer;
    position: relative;
}

.menu-icon > * {
    width: 100%;
    height: 2.25px;
    position: absolute;
    background: var(--fore);
    transform-origin: 50% 50%;
}

.menu-icon > *:nth-child(1) {
    top: 0.60rem;
}

.menu-icon > *:nth-child(2) {
    top: 1.35rem;
}

.menu-icon > *:nth-child(3) {
    top: 2.1rem;
}

.menu-list {
    top: 0;
    right: 0;
    z-index: 0;
    height: 100%;
    display: flex;
    position: fixed;
    flex-flow: column;
    padding-top: 6rem;
    background: var(--back);
    transform: translate(100%, 0);
}

.menu-list > * {
    text-align: center;
    padding: 1rem 1.25rem;
}

.menu.active .menu-icon > *:nth-child(1) {
    top: 1.35rem;
    transform: rotate(45deg);
}

.menu.active .menu-icon > *:nth-child(2) {
    transform: rotate(45deg);
}

.menu.active .menu-icon > *:nth-child(3) {
    top: 1.35rem;
    transform: rotate(-45deg);
}

.menu.active .menu-list {
    transform: translate(0, 0);
}

/*
	menu end
*/

@keyframes down {
    0% {
        transform: translateY(-1rem) rotate(135deg);
    }

    50% {
        transform: translateY(2rem) rotate(135deg);
    }

    100% {
        transform: translateY(-1rem) rotate(135deg);
    }
}

@media screen and (max-width: 1200px) {
    .box h1,
    .box h2 {
        font-size: 2.6rem;
    }
}

@media screen and (max-width: 900px) {
    .box h1,
    .box h2 {
        font-size: 2.3rem;
    }
}

@media screen and (max-width: 600px) {
    .box h1,
    .box h2 {
        font-size: 1.9rem;
    }

    .arrow {
        display: block;
    }

    .art {
        justify-content: center;
    }

    .art .box {
        align-self: center;
    }
}

@media screen and (max-width: 500px) {
    .row.sm {
        flex-direction: column;
    }

    .box h1,
    .box h2 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 400px) {
    .box h1,
    .box h2 {
        font-size: 1.3em;
    }
}
