@keyframes text-wobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-25px) rotate(-5deg); }
    30% { transform: translateX(20px) rotate(3deg); }
    45% { transform: translateX(-15px) rotate(-3deg); }
    60% { transform: translateX(10px) rotate(2deg); }
    75% { transform: translateX(-5px) rotate(-1deg); }
    100% { transform: translateX(0%); }
}

@keyframes text-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@font-face {
    font-family: otsikko;
    src: url(fontit/FasterOne-Regular.ttf);
}
@font-face {
    font-family: teksti;
    src: url(fontit/PatuaOne-Regular.ttf);
}
body {

background-color: rgb(50, 153, 250);
 

}
.container{
max-width: 800px;
margin-left: auto;
margin-right: auto;
background-color: rgba(0, 68, 255, 0.596);
padding: 15px;
font-family: teksti;
animation: text-wobble 1.5s ease-in-out 1;
    animation-delay: 0s;
    color: rgb(240, 244, 247);
}

h1 {
    text-align: center;
  color: aliceblue;
    font-size: 50px;
    font-family: otsikko;
}
iframe{
 animation: text-rotate 0.5s linear 2;
    animation-delay: 0s;

    display: block;
    padding-left: 30px;
    margin-left: auto;
    margin-right: auto;
    
}
h2 {
    font-family: otsikko;
    color: aliceblue;
}
img{
   width: 300px;
   height: auto;
   

}
img, iframe {
    max-width: 100%;
}