@font-face {
    font-family: "SfRobotics";
    src: url('../fonts/SfTransrobotics-gBv4.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url('../fonts/Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url('../fonts/Roboto/Roboto-BoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

:root {
    --clr-salad-light: #66ffff;
    --clr-salad-dark: #00ccff;
    --clr-salad-max: #006699;
    --clr-about: #cceeff;
    --clr-border: #001933;
    --fs-320: 0.7rem;
    --fs-400: 0.75rem;
    --fs-480: 0.9rem;
    --fs-600: 1.05rem;
    /* Background colors */
    --clr-back-1: #ee7752;
    --clr-back-2: #e73c7e;
    --clr-back-3: #23a6d5;
    --clr-back-4: #23d5ab;
    /* Related to bubbles in background */
    --playState: visible;
    --minSizeOfBubble: 2;
    --frequencyBubbles-ms: 1500;
    /* Related to project modals */
    --rect-w: 0;
    --rect-h: 0;
    --rect-perimeter: 0;
    --curve: cubic-bezier(0.165, 0.84, 0.44, 1);
    --speed: 1s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    font-family: 'Roboto', sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background: linear-gradient(-45deg, var(--clr-back-1), var(--clr-back-2), var(--clr-back-3), var(--clr-back-4));
    background-size: 300% 300%;
    animation: gradient 20s linear infinite;
    overflow: hidden;
}

@keyframes gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.fa {
    margin-right: 1em;
    padding: 0.3em;
    text-align: center;
    background: var(--clr-salad-max);
    color: white;
}

.push-btn:active {
    box-shadow: none;
    transform: translateX(0.2em) translateY(-0.2em);
}

.container {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    width: min(92%, 1600px);
    margin: 0 auto;
    scroll-snap-coordinate: 0 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

header,
footer {
    margin-inline: 0.3rem;
    display: flex;
    align-items: center;
}

header {
    justify-content: center;
}

header>h2 {
    font-family: 'SfRobotics';
    font-size: var(--fs-600);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

nav {
    margin-inline: 0.3em;
    margin-bottom: 0.5em;
    display: flex;
    gap: 0.5rem;
}

.link-wrapper {
    display: flex;
    height: 2.4em;
}

nav>div {
    flex: 1;
}

a,
button {
    height: 100%;
    width: 100%;
    font-family: 'Roboto-Thin';
    font-size: var(--fs-400);
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    text-decoration: none;
    background-color: var(--clr-salad-dark);
    color: black;
}

.current-link {
    color: white;
}

main {
    flex: 1;
    gap: 0.5em;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-behavior: smooth;
}

section {
    margin-inline: 0.3em;
    padding-block: 0.3em;
    background-color: var(--clr-about);
    padding-inline: 0.5em;
}

.text {
    margin-inline: auto;
    margin-block: 0.5em;
    text-align: justify;
    text-justify: auto;
    text-align-last: left;
    max-width: 640px;
    font-size: var(--fs-400);
}

.inside-section {
    margin-block: 0.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    flex: 1;
    scroll-snap-align: start;
}

.inside-section>* {
    flex: 1;
    flex-basis: 0;
    min-width: 7em;
    text-align: center;
}

.subsection-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    width: 100%;
    font-size: var(--fs-400);
    padding-block: 0.5em;
    background-color: var(--clr-salad-max);
    color: white;
    margin-bottom: 0.5em;
}

.blink {
    animation: blinker 10s ease-in-out infinite;
}

@keyframes blinker {
    50% {
        background-color: var(--clr-salad-dark);
        color: black;
    }
}

img {
    max-width: 100%;
    max-height: 100%;
}

.technology {
    width: 100%;
    padding-inline: 2em;
    padding-block: 0.5em;
    margin: 0 auto;
    font-size: var(--fs-400);
    text-align: left;
}

.technology svg {
    margin-right: 0.5em;
}

.remark {
    font-size: var(--fs-320);
    margin-block: 0.5rem;
}

footer {
    display: flex;
    justify-content: space-between;
    margin-block: 1em;
}

.border {
    border-radius: 0.3em;
    border: 1px solid var(--clr-border);
    box-shadow: 0.2em -0.2em 0.4em 0 var(--clr-border);
}

@media (min-width: 620px) {
    :root {
        --minSizeOfBubble: 3;
        --fs-320: 0.8rem;
        --fs-400: 1rem;
        --fs-480: 1.2rem;
        --fs-600: 1.4rem;
    }
}

@media (hover: hover) {

    a:hover,
    button:hover {
        font-size: var(--fs-480);
        font-style: italic;
    }
}