/* Fonts */
@font-face {
    font-family: Figtree;
    src: url(./assets/fonts/Figtree-VariableFont_wght.ttf);
    font-weight: 500 800;
}

/* global */
*{
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    background: #F4D04E;
    font-family: 'Figtree', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #111111;
}

a{
    text-decoration: none;
    color: #111111;
}


/*Contents*/

.main-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
    grid-gap: 1.5em;
    justify-items: center;
    align-content: center;
    padding: 1.5em;
}

.cardsec {
    background: white;
    max-width: 384px;
    max-height: 522px;
    border-radius: 20px;
    border: #111111 solid 0.1em;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.53em;
    padding: 1.5em;
    box-shadow: 0.5em 0.5em #111111;
    transition: opacity 0.2s ease-in-out;
}

.cardsec:hover {
    box-shadow: 1em 1em #111111;
    opacity: 100%;
}

.cardsec:hover .c2-link {
    color: #F4D04E;
}

.cardsec img {
    width: 100%;
    border-radius: 10px;
    margin: 0 0 1.5em 0;
}

.content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "c1"
                         "c2"
                         "c3"
                         "c4";
    grid-gap: 0.86em;
}

.c1 {
    grid-area: 2;
    font-size: 0.86rem;
}

.c2 {
    grid-area : 3;
    font-size: 1.5rem;
    font-weight: 800;
}

.c3 {
    grid-area: 1;
    background: #F4D04E;
    padding: 0.25em 0.5em;
    width: fit-content;
    border-radius: 2.5px;
}

.c4 {
    grid-area: 4;
    color: #6B6B6B;
}

.profname {
    width: 100%;
    margin: 1.5em 0 0 0;
    display: flex;
    align-items: center;
    padding: 0;
}

.profname img {
    width: min(90vw, 42px);
    padding: 0 0.5em 0 0;
    margin: 0;
}

.profname p {
    font-size: 0.86rem;
    font-weight: 800;
    margin: 0 0.5em 0 0;
    padding: 0;
}


.site-footer, .site-footer a {
    color: #6B6B6B;
    text-align: center;
}

/*media queries*/
@media (max-width: 768px) {
    .main-container {
        align-content: center;
        justify-items: center;
    }

    .cardsec {
        justify-content: center;
        align-items: center;
    }

    .site-footer, .site-footer a {
    text-align: center;
    }
}
