@import url("fonts.css");

body {
    background-color: #242526;
}

a {
    text-decoration: none;
}

h1, p, h4 {
    color: #E6E6E6;
}

h1 {
    text-align: center;
    font-family: 'Raleway Light';
    font-size: 50px;
}

p {
    text-align: center;
    font-family: 'Raleway Thin';
    font-size: 16px;
}

.topnav {
    display: flex;
    flex-direction: row;
    height: 8vh;
    background-color: #2a2c2d;
    justify-content: space-around;
    align-items: center;
}

.topnav a {
    color: #FFB86C;
    font-family: 'Raleway Medium';
    font-size: 4vh;
}

.about {
    margin-top: 8vh;
}

.about img {
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 300px;
    height: 300px;
}

.about p {
    font-size: 4vw;
}

hr {
    margin-top: 10vh;
    margin-bottom: 10vh;
}

.cards {
    margin-inline: 15%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 2em;
    column-gap: 10%;
}

.card {
    box-shadow: 0 4px 8px 0 #E6E6E6;
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 4px 8px 0 #FFB86C
}

.container {
    padding: 2px 16px;
}

.title {
    height: 10vh;
}

.card h4 {
    font-size: 2vw;
}

.card p {
    font-size: 1vw;
}

@media only screen and (max-width: 400px) {
    h1 {
        font-size: 10vw;
    }

    .topnav {
        display: flex;
        flex-direction: column;
        height: 30vw;
        background-color: #2a2c2d;
        justify-content: space-around;
        align-items: center;
    }

    .topnav a {
        font-size: 5vw;
    }

    .about {
        margin-top: 4vh;
    }

    .about img {
        width: 75%;
        height: 75%;
    }

    hr {
        margin-top: 8vh;
        margin-bottom: 4vh;
    }

    .cards {
        display: block;
        margin-inline: 5em;
    }

    .card {
        margin-block: 1em;
    }

    .card h4, .card p {
        font-size: 5vw;
    }
}