@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crete+Round:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    position: relative;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
}

h1,
h2 {
  font-weight: 500;
  line-height: 1.2;
  margin: 10px 0;
}

h3,
h4 {
    line-height: 1.2;
    margin: 10px 0;
}

p {
  margin: 10px 0;
}

header {
    min-height: 5vh;
}

.logo {
    font-family: 'Crete Round';
    font-size: 25px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1rem;
    color: green;
    opacity: 1;
}

.slideLeft {
    animation: slideLeft 1.5s ease forwards;
}

/* Containers */

.container {
    max-width: 35rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem;
}

.section {
    padding: 1rem;
    display: grid;
    place-items: center;
    align-items: center;
    min-height: 90vh;
    overflow: hidden;
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.col {
    flex-direction: column;
}

.top {
    margin-top: 4rem;
}

/* Colors and backgrounds */

.orange {
    color: orangered;
}

.black {
    color: #000;
}

.white {
    color: #fff;
}

.blue {
    color: blue;
}

.green {
    color: green;
}

.bg-dark {
    background: #1f242d;
    color: #fff;
}

.bg-light {
    background-color: #fff;
    color: #000;
}

.bg-blue {
    background-color: blue;
    color: #fff;
}

.bg-orange {
    background-color: orange;
    color: #fff;
}

.border {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.intro {
    min-width: 350px;
    min-height: 400px;
    text-align: left;
}

.intro h3 {
    max-width: 350px;
}

.btn {
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: 0;
    display: inline-block;
    cursor: pointer;
}

.btn:hover {
    background-color: green;
    color: #fff;
}

.hidden {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 2s;
}

.show {
    opacity: 1;
    transform: translateX(0);
}

/* ABOUT  */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: center;
    height: 100%;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background-color: #fff;
    color: #000;
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    margin: 1.5rem;
}

.text-center {
    text-align: center;
}

.bg-blue {
    background-color: blue;
    color: #fff;
}

.bg-green {
    background-color: green;
    color: #fff;
}

.bg-black {
    background-color: #000;
    color: #fff;
}

.section-flex,
.section-grid {
    padding: 1.2rem 0;
}

.section-flex img,
.section-grid img {
    width: 300px;
}

.languages .flex {
    flex-wrap: wrap;
    justify-content: center;
}

.margin {
    margin-top: 70px;
}

@media screen and (max-width: 587px) {
    /* */
    .container {
        /* center flex elements within container */
        justify-content: center;
    }

    .section-flex,
    .section-grid {
        text-align: center;
    }
    
    .flex {
        flex-wrap: wrap;
    }

    .section-grid .grid {
        grid-template-columns: 1fr;
    }

    .text-box,
    .img-box {
        /* does not work for flex, hence the container above */
        justify-self: center;
    }

}

/* FORMULAIRE */

textarea {
    resize: none;
}
select {
    padding: 10px;
}
select:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.form {
    padding: 10px;
    border-style: none;
    border-radius: 10%;
}
.form h3,
.form p {
    padding: 10px;
}
.form input[type='text'],
.form input[type='email'],
.form input[type='password'],
.form textarea {
    border: 0;
    border-bottom: 1px solid #b4becb;
    border-radius: 5px;
    width: 100%;
    padding: 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}
form input:focus,
form textarea:focus {
    outline: none;
}
.form-control {
    margin: 30px 0;
}

/* KEYFRAMES ANIMATION */

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(50px);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }

    100% {
        transform: translateY(0);
    }
}
