@font-face {
    font-family: southtime;
    src: url(fonts/southtime.woff2);
}

@font-face {
    font-family: museo;
    src: url(fonts/museo.woff2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: #51b848;
    color: white;
}

body {
    background-image: url(img/tile.jpg);
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;

    font-family: museo;
    line-height: 1.35;
}

body.welcome {
    flex-direction: column;
}

h1 {
    font-family: southtime;
    font-size: clamp(3.5em, 10vw, 6em);
    font-weight: normal;
}

h2 {
    font-size: 1.5em;
    padding-top: 1em;
}

h3 {
    font-family: southtime;
    font-size: clamp(2.5em, 6vw, 4em);
    font-weight: normal;
}

a {
    color: black;
    text-decoration-color: #51b848;
}

main {
    text-align: center;
}

header {
    padding-top: 3em;
    text-align: center;
}

#intro {
    text-align: center;
    padding: 2em 0;    
}

#intro img {
    border-radius: 50%;
    width: 25%;
    filter: grayscale(1);
    transition: filter 0.5s;
}

#intro img:hover {
    filter: none;
}

#form {
    border-top: 2px dashed #ccc;
    border-bottom: 2px dashed #ccc;
    background-color: rgba(200,200,200,0.2);
    padding: 2em 0;
    width: 100%;
}

#form div {
    max-width: 555px;
    margin: auto;    
}

#form label {
    display: block;
    margin-bottom: 1em;
    cursor: pointer;
}

#form input[type='text'], textarea {
    width: 100%;
    border: 0;
    font-family: monospace;
    font-size: 1.25em;
    margin-bottom: 1em;
    padding: 0.5em;
    border: 1px solid transparent;
}

#form input[type='text']:focus, textarea:focus {
    outline: 1px solid #51b848;
    border: 1px solid #51b848;
    box-shadow: 0px 0px 2px #51b848;
}

#form button {
    font-family: museo;
    text-transform: uppercase;
    margin: auto;
    display: block;
    font-size: 1.5em;
    border: none;
    border-radius: 2px;
    width: 100%;
    cursor: pointer;
    transition: all 0.5s;
    background-color: #ccc;
    color: white;
    padding: 0.25em 0;
}

#form button:hover {
    background-color: #51b848;
    color: white;
}

#form p {
    padding: 5em 0;
    font-size: 1.5em;
    text-align: center;
}

#infos {
    max-width: 555px;
    padding: 2em 0;
    margin: auto;
    margin-bottom: 10em;
}

#infos iframe {
    width: 100%;
    border: 0;
    height: 300px;
}

#infos .timeline {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
}

footer {
    color: white;
    background-color: #51b848;
    position: fixed;
    z-index: 10;
    bottom: 0;
    padding: 1em 0;
    width: 100%;

}

footer a {
    color: white;
}

footer .contact {
    font-family: southtime;
    font-size: 2.2em;
    padding-botton: 1em;    
}

footer .wrapper {
    width: 60%;
    margin: auto;
}

footer .left {
    width: 50%;
    float: left;
}

footer .right {
    width: 50%;
    float: right;
    text-align: right;
    font-size: 0.8em;
}

.clovers {
    position: fixed;
    width: 80%;
    margin: auto;
    top: 0;
}

.clovers img {
    position: absolute;
    opacity: 0;    
    animation-delay: 1s;
    animation-fill-mode: forwards;
}

.clovers :nth-child(1) {
    top: 10vh;
    left: -5vw;
    width: 15%;

    animation-name: zoom;
    animation-duration: 500ms;    
}

.clovers :nth-child(2) {
    width: 17.5%;
    top: 50vh;
    left: 5vw;

    animation-name: zoom;
    animation-duration: 1.5s;      
}

.clovers :nth-child(3) {
    width: 7.5%;
    top: 70vh;
    left: 20vw;

    animation-name: zoom;
    animation-duration: 600ms;      
}

.welcome .clovers :nth-child(3) {
    left: -5vw;
}

.clovers :nth-child(4) {
    width: 30%;
    top: 10vh;
    right: 0vw;

    animation-name: zoom;
    animation-duration: 300ms;     
}

.welcome .clovers :nth-child(4) {
    width: 15%;
    top: 25vh;
    right: 0vw;
}

.clovers :nth-child(5) {
    width: 10%;
    top: 20vh;
    right: -8.5vw;

    animation-name: zoom;
    animation-duration: 1s;    
}

.clovers :nth-child(6) {
    width: 10%;
    top: 60vh;
    right: -2.5vw;

    animation-name: zoom;
    animation-duration: 750ms;
}

/* animate */

@keyframes roll {
    from {
      opacity: 0;
      transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
    }
  
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
}

  @keyframes zoom {
    from {
      opacity: 0;
      transform: scale3d(0.3, 0.3, 0.3);
    }
  
    to {
      opacity: 1;
    }
}

@media (max-width: 700px) {
    .welcome {
        padding: 0 2.5vw;
    }
    .welcome .clovers {
        display: none;
    }

    footer .wrapper {
        width: 90%;
    }
}