@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;1,100;1,400&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    width: all;
    height: 100%;
    background-color: #20346e;
    font-family: 'Montserrat';
    font-weight: 100;
}

header {
    width: 100%;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

header > h1 {
    color: white !important;
}

.main {
    width: 100%;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 50px;

}

.main > .card {
    width: 100%;
    height: 10em;
    padding: 5px;
    border-radius: 10px;
    background-color: rgb(19, 36, 87, 0.7);

    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    text-decoration: none;

    transition: 0.3s linear;

    margin-top: 10px;
}

.main > .card.reverse {
    flex-direction: row-reverse;
}

.main > .card:hover {
    background-color: rgb(15, 29, 73);
    transition: 0.3s linear;
}

.main > .card > img {
    width: 10%;
}

.main > .card > .description {
    width: 90%;
    padding-left: 30px;
    padding-right: 30px;
    color: white;

    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

@media screen and (max-width: 768px) {
    header > h1 {
        font-size: 20px;
    }

    .main {
        padding: 30px;
    }

    .main > .card {
        flex-direction: column;
        height: auto;
    }

    .main > .card.reverse {
    flex-direction: column;
    }

    .main > .card > img {
        width: 50%;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .main > .card > .description {
        width: 100%;
        text-align: justify;
    }

    .main > .card > .description > h2 {
        width: 100%;
        text-align: center;
    }

    .main > .card > .description > p {
        width: 100%;
        text-align: justify;
    }


}