* {
    box-sizing: border-box;
    font-style: italic;
}

body {
    background-color: #2a8878;
    margin: 0;
}

header {
    background-color: #0c7973;
    position: fixed;
    top: 0;
    width: 100%;
    height: 3rem;
    overflow: hidden;
    z-index: 1;
}

#search {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    height: 3rem;
}

#search input {
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1rem;
    max-width: 100px;
    padding-left: 8px;
}

#search input::placeholder {
    color: lightgrey;
}

#search i::before {
    font-size: 1.2rem;
    color: #feebda;
}

main,
footer {
    color: #feebda;
    text-align: center;
}

main h1 {
    font-family: 'Cookie', cursive;
    font-size: 3.2rem;
    font-style: normal;
}

main .topContent {
    margin: 10px;
    padding-top: 3.5rem;
}

p {
    font-size: 1.2rem;
}

main .topContent a {
    color: #e782a4;
    text-decoration: none;
    border-bottom: 1px dotted #e782a4;

}

main .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

main .cards .card {
    position: relative;
    width: 100%;
    background-color: #feebda;
    color: #e782a4;
    text-align: center;
    padding: 20px;
    margin: 10px;
}

main .cards .card h2 {
    font-family: 'Cookie', cursive;
    font-style: normal;
    font-size: 2rem;
    border-bottom: 1px dotted #e782a4;
    padding: 5px;
}

main .cards .card img {
    position: absolute;
    top: 0;
    left: 50%;
    visibility: hidden;
    transform: translate(-50%, -50%);
}

@media screen and (min-width: 800px) {

    header {
        background-color: #2a8878;
        overflow: visible;
        height: auto;
    }


    header #search {
        justify-content: center;
    }

    header #search i::before {
        visibility: hidden;
    }

    header #search input {
        max-width: 20rem;
    }

    header nav {
        background-color: #feebda;
    }

    header nav ul {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    header nav ul li {
        display: inline-flex;
    }

    header nav ul li a {
        color: #991d42;
        text-decoration: none;
        font-size: 1.3rem;
        height: 3rem;
        line-height: 3rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-bottom: 1px dotted #2a8878;
    }

    main .topContent {
        padding-top: 6.5rem;
        display: flex;
        justify-content: space-between;
        flex-direction: row-reverse;
        text-align: left;
    }

    main .topContent article h1 {
        margin-top: 0;
    }

    main .cards {
        justify-content: space-around;
    }

    main .cards .card {
        width: 45%;
        min-width: 320px;
    }
}

@media screen and (min-width: 1200px) {
    header #search {
        justify-content: space-between;
    }

    header nav ul {
        justify-content: flex-end;
    }

    main .topContent img {
        position: fixed;
        top: 0.5em;
        left: 1em;
        z-index: 1;
        height: 10em;
    }

    main .topContent {
        padding-top: 11em;
        justify-content: center;
        padding-right: 11em;
        padding-left: 11em;
    }

    main .topContent article p {
        column-count: 2;
    }

    main .cards .card {
        width: 30%;
    }

    main .cards .card img {
        visibility: visible;
    }

}