html {
    font-family: "Poppins", sans-serif;
    background-color: rgb(243, 243, 240);
    overflow-x: hidden;
    background-image: url(sfond.jpg);
    background-size: 300px;
}


.titolo, .sub {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
}

.titolo span {
    font-size: 4em;
    padding: 0;
    margin: 0;
    display: inline-block;
    animation: jump 1s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.07s);
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

a {
    color: purple;
    font-weight: bold;
    text-decoration: none;
}


a:hover {
    text-decoration: underline;
    color: rgba(129, 39, 129, 0.742);
    cursor: pointer;
}

p {
    font-size: 1em;

}

h2 {
    font-family: "Comic Neue", cursive;
}

img {
    border-radius: 5px
}

.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 2vw;
    position: relative;
    margin-top: 4em;
}

.col1 {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.col2 {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.guarda {
    width: 40vw;
    height: auto;
    position: static;
    margin: 0 auto;
    display: block;
}

.comment {
    font-family: Poppins, sans-serif;
    font-size: 0.8em;
    text-align: center;
    margin: 1em;
    color: #757575;
}

.text {
    background-color: rgba(255, 255, 255, 0.431);
    backdrop-filter: blur(2px);
    border-radius: 15px;
    border: #ffffff86 solid 4px;
    flex: 1 1 0;
    padding: 2em;
    font-size: 1.2em;
    line-height: 1.6em;
    text-align: justify;
}


.img-comment-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2em;
}

.rotated-img-container {
    width: 400px;
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
    max-height: 90vw;
}

.rotated-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: auto;
    height: 90vw;
    max-height: 400px;
    border-radius: 15px;
    padding: 0;
    margin: 0;
}

.shake {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(-2px, -0.5px) rotate(-1.5deg);
    }

    20% {
        transform: translate(2px, 0.5px) rotate(1.5deg);
    }

    30% {
        transform: translate(-4px, -1px) rotate(0deg);
    }

    40% {
        transform: translate(2px, -0.5px) rotate(1.5deg);
    }

    50% {
        transform: translate(3px, 0) rotate(-1.5deg);
    }

    60% {
        transform: translate(0.5px, 0) rotate(0deg);
    }

    70% {
        transform: translate(-2px, 0.5px) rotate(-1.5deg);
    }

    80% {
        transform: translate(3px, -0.5px) rotate(1.5deg);
    }

    90% {
        transform: translate(-4px, 0.5px) rotate(0deg);
    }

    100% {
        transform: translate(0, 0) rotate(-1deg);
    }
}

img.shake {
    display: inline-block;
}

.colpur {
    flex: 2 4 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.colpur2 {
    flex: 2 4 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


img {
    max-width: 100% !important;
    height: auto !important;
}

body, html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.wrapper, .col1, .col2 {
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 900px) {


    .titolo span {
        font-size: 2.5em;
    }

    .guarda {
        width: 70vw;

    }

    .sub {
        top: 35%;
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {


    .wrapper {
        flex-direction: column;
        gap: 0;
    }

    .titolo {
        margin-top: 2em;
    }

    .titolo span {
        font-size: 1.5em;
    }

    .sub {
        font-size: 0.8em;
    }

    .guarda {
        width: 90vw;
        margin-bottom: 2em;
    }

    html {
        font-size: 15px;
    }
}