/*smartphone vertical view*/
@media screen and (max-width: 551px) {
    /*the ul goes under the page title*/
    .navbar {
        display: block;
        width: 90%;
    }

    /*title and slogan go under the logo*/
    .title-wrapper { display: block; text-align: center; }

    .navbar ul { justify-content: center; padding: 0; }

    article { width: 85%; }

    .navbar li { padding: 10px; }
}

@media screen and (min-width: 552px) and (max-width: 955px) {
    .navbar {
        display: block;
        width: 90%;
    }

    .title-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar ul { justify-content: center; padding: 0; }

    article { width: 70%; }

    article p { text-align: justify; }

    .navbar li { padding: 10px; }
}

@media screen and (min-width: 956px) and (max-width: 1550px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        width: 95%;
    }

    .title-wrapper {
        display: flex;
        align-items: center;
    }

    article { width: 700px; }

    .navbar li { padding: 15px; }
}

@media screen and (min-width: 1551px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        width: 70%;
    }

    .title-wrapper {
        display: flex;
        align-items: center;
    }

    article { width: 700px; }

    .navbar li { padding: 20px; }
}

* { color: whitesmoke; }

html {
    background-color: black;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 20px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

a:hover { color: #eb4343; }

header {
    display: flex;
    justify-content: center;
}

.navbar { padding: 20px; }

.navbar h1 {
    font-size: 38px;
    margin-bottom: -35px;
}

.navbar p {
    color: gray;
    font-size: 18px;
}

.navbar ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style-type: none;
    font-weight: bolder;
    font-size: 16px;
}

main { margin-top: 80px; }

article {
    margin: 0 auto;
}

article fieldset {
    padding: 30px;
    background-color: transparent;
    height: fit-content;
    margin-bottom: 80px;
    border-radius: 10px;
    border: 1px solid rgb(215, 215, 215);
}

article legend {
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

article h1 {
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

article p {
    width: 100%;
    font-size: 23px;
    line-height: 40px;
    color: whitesmoke;
    margin-top: 0px;
}

article fieldset p {
    width: 100%;
    font-size: 23px;
    line-height: 40px;
    color: rgb(215, 215, 215);
    margin-top: 0px;
}

article button {
    font-size: 18px;
    cursor: pointer;
    border-radius: 30px;
    border: none;
    height: 50px;
    padding: 10px;
    font-weight: bolder;
    background: #eb4343;
    transition: all 0.5s ease-in-out;
}

article button a:hover { color: whitesmoke; }

footer {
    clear:both;
    position:relative;
    bottom:0;
    margin-top: 60px;
    padding: 20px;
    color: grey;
    text-align: center;
}
