@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

@font-face {
    font-family: 'Forced Square';
    /* Assegna un nome al tuo font */
    src: url('./forced_square-webfont.woff2') format('woff2'),
        url('./forced_square-webfont.woff') format('woff');
    font-display: swap;
}

#nome_logo {
    font-family: 'Forced Square', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #FFF;
    font-family: 'Ubuntu', sans-serif;
}


input,
textarea {
    font-family: 'Ubuntu', sans-serif !important;
}

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

body {
    overflow-x: hidden;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    box-shadow: inset 1rem 1rem rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

.container {
    margin: 0 auto;
    padding: 0 1rem;
}

.img-container {
    height: 100%;
    background-image: url('../../src/img/me3.webp');
    background-repeat: no-repeat;
    background-position: left;
    background-size: cover;
    clip-path: polygon(31% 0, 100% 25%, 61% 100%, 0 93%);
    max-width: 100%;
    width: 100vw;
}

@media (min-width: 1024px) {
    .img-container {
        width: auto;
    }

    .container {
        flex-direction: row;
    }
}

.appearL {
    animation: appearL 600ms linear forwards;
}

.appearR {
    animation: appearR 600ms linear forwards;
}

.appearT {
    animation: appearT 600ms linear forwards;
}

.appearSpecial {
    animation: appearSpecial 400ms linear forwards;
}

.main-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    overflow: hidden;
    /* The typwriter cursor */
    white-space: nowrap;
    /* Keeps the content on a single line */
    margin: 0 auto;
    /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em;
    /* Adjust as needed */
    animation:
        typing 3s steps(40, end),
        step-end;
}

@media (min-width: 1024px) {
    .main-title {
        font-size: 4rem;
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes appearSpecial {
    0% {
        opacity: 0;
        transform: scale(3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes appearL {
    0% {
        transform: translateX(-25%);
        opacity: 0;
    }

    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes appearR {
    0% {
        transform: translateX(25%);
        opacity: 0;
    }

    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes appearT {
    0% {
        transform: translateY(-25%);
        opacity: 0;
    }

    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

.red {
    background-color: red;
}

.blue {
    scroll-snap-align: start;
    background-color: blue;
}

.green {
    background-color: #dbdbdb;
}

footer .logo:hover {
    box-shadow: 0 0 10px white;
    transform: scale(1.3);
}

.saluta {
    animation:
        saluta 1.5s linear 0s forwards 2;

}

@keyframes saluta {
    0% {
        transform: rotate(-60deg);
    }

    25% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-60deg);
    }

    75% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-60deg);
    }
}

#error_page header {
    background-color: rgba(0, 0, 0, 0.5);
}

#error_page #bg_404 {
    background-image: url('../../src/img/awake.webp');
    background-size: cover;
    background-position: center;
}

#error_page #error_main {
    background-color: rgba(0, 0, 0, 0.3);
}

#error_page footer {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: none;
}
