:root {
    --green: #309372;
    --orange: #f08c5a;
    --dark-green: #1c644c;
    --dark-orange: #d67443;
}
html {
    height: 100%;
    font-size: 62.5%;
}

body {
    height: 100%;
    background: url('../img/pattern.webp') repeat top left;
    background-size: 40%;
    color: #212121;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-family: 'Dosis', sans-serif;
    font-size: 2.2rem;
    padding: 15px;
}
::selection {
    background: var(--orange);
    color: #fff;
}

.wrapper {
  min-height: 100%;
  margin-bottom: -71px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

p {
    margin-bottom: 10px;
}

sup, sub {
    font-size: 35%;
}
sup {
    top: -1.5rem
}

.profile {
    border: 5px solid var(--green);
}

h1 {
    font-size: 3.5rem;
}
h1 span{
    display: inline-block;
    animation: hello 8.0s infinite 1s;
}

iframe {
    width: 100%;
    max-width: 560px;
    margin: 20px 0;
}

.emoji {
    font-size: 5rem;
}

.contact {
    font-size: 2.6rem;
    margin: 20px 0;
    border: 3px solid var(--green);
    padding: 20px;
}
.contact p {
    font-weight: 700;
}
.contact p:first-child {
    font-weight: normal;
    text-decoration: underline;
    margin-bottom: 20px;
}
.contact a {
    color: var(--green);
}

.link {
    position: relative;
    margin: 20px 0;
    background: var(--green);
    color: #fff;
    font-size: 3rem;
    padding: 10px 60px 10px 20px;
    border-radius: 12px;
}
.link:hover {
    background: var(--orange);
}

.link-small {
    margin: 20px 0;
    color: var(--orange);
    text-decoration: underline;
}
.link-small:hover {
    color: var(--green);
}

.link-secondary {
    font-size: 2.5rem;
    background: var(--orange);
    padding: 5px 20px;
}
.link-secondary:hover {
    background: var(--dark-orange);
}

.link svg {
    position: absolute;
    right: 16px;
    top: 13px;
    width: 32px;
    height: 32px;
    fill: #fff;
    animation: rotate 3.5s infinite 1.5s;
}
@keyframes rotate {
    0% {
      transform: rotate(0);
    }
    15% {
      transform: rotate(40deg) scale(1.2);
    }
    30% {
      transform: rotate(0) scale(1);
    }
    100% {
      transform: rotate(0);
    }
}
@keyframes hello {
    0% {
      transform: rotate(0);
    }
    2% {
      transform: rotate(60deg) scale(1);
    }
    4% {
      transform: rotate(0) scale(1);
    }
    6% {
      transform: rotate(0) scale(1);
    }
    100% {
      transform: rotate(0);
    }
}


.products {
    display: flex;
    flex-flow: column nowrap;
}
.product {
    margin: 10px 0;
}
.product img {
    border: 4px solid var(--orange);
}


footer {
    background: #555555;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin: 40px -15px -15px;
    padding: 20px;
    font-size: 1.8rem;
}

footer .link-small {
    color: #fff;
}

footer .link-small:hover {
    color: var(--orange);
}

.mentions main{
    font-size: 1.8rem;
    text-align: left;
    width: 90%;
    margin-left: 5%;
    background: #fff;
    border: 2px solid var(--green);
    padding: 20px;
    align-items: unset;
}
.mentions main .title{
    font-weight: 700;
   text-decoration: underline;
}
.mentions main .hosting{
    margin: 20px 0;
}

@media screen and (min-width: 768px) {
    body {
        padding: 20px;
    }

    h1 {
        font-size: 4.0rem;
    }
    .link {
        padding-right: 65px;
        font-size: 4.0rem;
    }
    .link-secondary {
        padding-right: 20px;
        font-size: 3.0rem;
    }
    .link svg {
        right: 17px;
        top: 18px;
        width: 37px;
        height: 37px;
    }
    .products {
        flex-flow: row wrap;
        justify-content: space-between;
    }
    .product {
        flex-basis: calc(50% - 20px);
    }
    footer {
        margin: 30px -20px -20px;
    }
}

@media screen and (min-width: 1150px) {
    .product {
        flex-basis: calc(calc(100%/3) - 20px);
    }

    .product:nth-child(3n) img {
        transform: rotate(3deg);
    }
    .product:nth-child(3n+1) img {
        transform: rotate(-3deg);
    }
    .mentions main{
        width: 60%;
        margin-left: 20%;
    }
}