/* Definizione dell'animazione */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Applica l'animazione agli elementi */
h1, p, h2 a, h2 span {
    animation: slideIn 1s ease-out forwards;
    opacity: 0; /* Nascondi inizialmente */
}

/* Ritardo per ogni elemento */
h1 {
    animation-delay: 0.5s;
}

p#mes {
    animation-delay: 1s;
}

h2 a:nth-of-type(1) {
    animation-delay: 1.5s;
}

h2 a:nth-of-type(2) {
    animation-delay: 2s;
}

h2 a:nth-of-type(3) {
    animation-delay: 2.5s;
}/* Definizione dell'animazione */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Applica l'animazione agli elementi */
h1, p, h2 a, h2 span {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0; /* Nascondi inizialmente */
}

/* Ritardo per ogni elemento */
h1 {
    animation-delay: 0.2s;
}
body {
    overflow: hidden;
    margin: 0;
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden; /* Prevents body from changing size */
}
p#mes {
    animation-delay: 0.4s;
}

h2 a:nth-of-type(1) {
    animation-delay: 0.6s;
}

h2 a:nth-of-type(2) {
    animation-delay: 0.8s;
}

h2 a:nth-of-type(3) {
    animation-delay: 1s;
}

h2 span#rampo {
    animation-delay: 1.2s;
}

h2 a:nth-of-type(4) {
    animation-delay: 1.4s;
}

h2 span#rampo {
    animation-delay: 3s;
}

h2 a:nth-of-type(4) {
    animation-delay: 3.5s;
}/* Definizione dell'animazione */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Applica l'animazione agli elementi */
h1, p, h2 a, h2 span {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0; /* Nascondi inizialmente */
}

/* Ritardo progressivo per ogni elemento */
h1 {
    animation-delay: 0.1s;
}

p#mes {
    animation-delay: 0.2s;
}

h2 a:nth-of-type(1) {
    animation-delay: 0.3s;
}

h2 a:nth-of-type(2) {
    animation-delay: 0.4s;
}

h2 a:nth-of-type(3) {
    animation-delay: 0.5s;
}

h2 span#rampo {
    animation-delay: 0.6s;
}

h2 a:nth-of-type(4) {
    animation-delay: 0.7s;
}

h2 span#rampo {
    animation-delay: 0.7s;
}

h2 a:nth-of-type(4) {
    animation-delay: 0.7s;
}body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    background-image: url(img/images.png);
    animation: scrollBackground 10s linear infinite;
}
@keyframes scrollBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -100% 0;
    }
}
.container {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1200px;
    margin: 20px;
}

#adam {
    flex: 1;
    text-align: left;
}

#adam img#ciao {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
}

.content {
    flex: 2;
    text-align: right;
    padding-left: 20px;
}

h1 {
    font-size: 3em;
    text-align: center;
    color:rgb(166, 0, 255);
    font-family:pixel;
    text-shadow: 0px 0px 10px rgb(166, 0, 255);
}

h2 {
    font-size: 1.2em;
    text-align: center;
    font-family: pixel;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 350px;
    text-decoration: none;
}

a {
    color: rgb(255, 255, 255);
    font-size: 1.2em;
    transition: font-size 100mss;
    text-decoration: none;
    text-shadow: 0px 0px 10px rgb(166, 0, 255);
}

a:hover {
    font-size: 1.5em;
    color:rgb(166, 0, 255);
}

#mes {
    font-size: 1.5em;
    text-align: center;
    color: white;
    font-family: pixel;
}
#rampo
{
    font-size: 2em;
    text-align: center;
    color:rgb(166, 0, 255);
    font-family: pixel;
    text-shadow: 0px 0px 10px rgb(166, 0, 255);
}

#ciao {
    padding: 5px;
    animation: spin 4s linear infinite;
    transition: animation-duration 0.2s linear;
}

#ciao:hover {
    animation-duration: 0.2s;
    animation-timing-function: linear;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@font-face {
    font-family: pixel;
    src: url(img/Minecraft.ttf);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    #adam {
        text-align: center;
    }

    .content {
        text-align: center;
        padding-left: 0;
    }

    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1em;
    }

    a {
        font-size: 1em;
    }

    a:hover {
        font-size: 1.2em;
    }
}

