*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: Lato, "sans-serif";
}

body {
    margin-top: 40px;
}

.header {
    text-align: center;
}

.header__user-msg {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: blue;
    z-index: 1000; /* This ensures it stays on top of other elements */
}

.nav {
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.nav__link {
    text-decoration: none;
    color: #1c2023;
}

.nav__link:not(:last-of-type) {
    margin-right: 2.5rem;
}

.nav__link--active,
.nav__link:hover {
    font-weight: bold;
    font-size: 110%;
}

.main {
    display: flex;
    justify-content: center;
    margin: auto;
}

.main--about,
.main--error {
    flex-direction: column;
    max-width: 500px;
    padding: 0 1rem;
    line-height: 150%;
}

.main--user {
    flex-direction: column;
    max-width: 500px;
    padding: 0 1rem;
    line-height: 150%;
}

.contact {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.contact__details {
    margin-left: 1ch;
}

.contact__link {
    color: black;
    text-decoration: none;
    box-shadow: 0 2px 0 0 #4cafda;
}

.contact__link:hover {
    color: #4cafda;
}

.models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 1.25rem;
    justify-content: center;
    justify-items: center;
    max-width: 18rem;
    margin: 0 auto;
}
@media (min-width: 45em) {
    .models {
        grid-template-columns: repeat(2, 1fr);
        max-width: 45rem
    }
}

.model-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    height: 400px;
    padding: 0.75rem;
}

.model-card__image {
    max-width: 100%;
    width: 350px;
    height: 220px;
    margin-bottom: 1rem;
    transition: tranform 0.2s ease-in-ouhovert;
    border-radius: 10px;
}

.model-card__text {
    padding: 0 1.25rem;
}

.model-card_desc {
    font-size: 1rem;
    color: #3d84a3;
}

.model-card__name {
    margin: 0;
    font-size: 1.5rem;
    line-height: 2.25rem;
    color: #1c2023;
}

.model-card:hover .model-card__image {
    transform: translateY(-0.5rem);
}

.model-card:hover .model-card__name {
    text-decoration: underline;
}

.categories {
    display: flex;
    padding: 0;
    margin: 0 0 0.75rem;
    color: #3d84a3;
    list-style: none;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.075rem;
}

.categories__tag:not(:last-of-type)::after {
    content: "|";
    margin: 0 0.25rem;
}

.hero {
    width: 100%;
    margin-bottom: 1.5rem;
}

.model {
    display: flex;
    max-width: 50rem;
    flex-direction: column;
    font-size: 1.2rem;
    padding: 0 1rem;
}

.model__content {
    margin-bottom: 1rem;
    line-height: 150%;
}

@media (min-width: 48.75em) {
    .model {
        flex-direction: row;
        padding: 0;
    }
}

.model__content {
    flex: 7;
    margin-right: 3rem;
    padding: 0;
}

.model__heading {
    margin: 0;
    font-size: 2rem;
    line-height: 150%;
}

.model__heading--meta {
    font-size: inherit;
    margin-bottom: 1rem;
}

.model__meta-group {
    margin-bottom: 1rem;
}

.model__meta-group,
.cta {
    padding: 0.5rem;
    background-color: #d4eafa;
    border-radius: 6px;
}

.cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #1c2023;
    text-decoration: none;
}

.cta:hover {
    background-color: #b5e0ff;
}

.cts__icon {
    margin-right: 0.5rem;
    transform: translateY(1px);
}

.technology-list {
    list-style: none;
    margin: 0;
    padding-left: 0.75rem;
    line-height: 1.75rem;
}

.technology-list__item:before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-image: url("/static/img/list-check.svg");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.5rem;
    transform: translateY(2px);
} 

.u-bare-link {
    text-decoration: none;
}

.alert {
    font-size: 1.2rem;
    padding-bottom: 0.2rem;
}

.alert-success {
    color: green;
}

.alert-warning {
    color: orange;
}

.alert-info {
    color: blue;
}

.alert-error {
    color: red;
    font-size: 1rem;
    font-weight: bold;
}

.motif {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000; /* This ensures it stays on top of other elements */
    width: 50px;
    height: 50px;
}