@import url("https://fonts.googleapis.com/css2?family=Nunito");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab");

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

*::selection {
    background: #ffd50069;
}

html, body {
    margin: 0;
    padding: 0;

    overflow-x: hidden;

    height: 100%;

    font-family: "Nunito";
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .sub-title {
    font-family: "Roboto Slab";
}

p {
    text-align: justify;
}

.content-section a:not(.card) {
    position: relative;
    color: var(--link-color);
    text-decoration: none;
}

.content-section a:not(.card)::before {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--link-color);
    transform: scaleX(0);
    transition: transform 150ms ease-in-out;
}

.content-section a:not(.card):hover::before,
.content-section a:not(.card):focus::before {
    transform: scaleX(1);
}

/** NAVBAR **/

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid hsl(0, 0%, 85%);
    background-color: hsl(0, 0%, 100%);
    z-index: 1;
}

.navbar-element {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 100%;
}

#navbar-element-left {
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1;
    margin: 0;
    padding: 0;
}

#navbar-element-left img {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
}

#navbar-element-center {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#navbar-element-right {
    text-align: right;
    z-index: 1;
}

.navbar-link {
    text-decoration: none;
    color: hsl(0, 0%, 20%);
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 1rem;
    padding: 0 1rem;
    height: 100%;

    transition: font-weight 150ms ease-in-out;
}

#navbar-element-left .navbar-link {
    color: hsl(0, 0%, 0%);
}

.navbar-link::before {
    position: absolute;
    content: "";
    display: block;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-color: hsl(50, 100%, 50%);
    transform: scaleX(0);

    transition: transform 150ms ease-in-out;
}

.navbar-link:hover::before,
.navbar-link:focus::before,
.navbar-link.active::before {
    transform: scaleX(1);
}

.navbar-link:hover {
    color: hsl(0, 0%, 0%);
}

.center-space-link {
    display: none;
}

#hamburger {
    display: none;
}

/** PLUS LA NAVBAR **/

#page-content {
    padding-top: 4em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

#footer {
    border: 2px solid var(--border-color);
    background-color: var(--secondary-background);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#footer p {
    color: hsl(0, 0%, 20%);   
    margin: 0;
}

#main-part {
    display: flex;
    flex-direction: column;
}

.content-section {
    padding: 2rem;
    border-bottom: 1px solid hsl(0, 0%, 85%);
    width: 100%;
}

.content-section:not(.cards) {
    padding: 2rem 4rem;
}

.content-section:last-child {
    border: none;
}

.main-title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 12em;
}

.main-title div {
    position: absolute;

    font-size: 3rem;
    font-weight: bold;
    padding: 1rem 2rem;
    backface-visibility: hidden;
    text-align: center;
    opacity: 1
}

.slide {
    position: absolute;
    top: 0;
    left: -3em;
    right: -3em;
    bottom: 0;
    animation: slide-in 1s forwards;
    transform: skewX(-15deg) translateX(-110%);
}

.slide.bla {
    background-color: var(--bla);
    transform: skewX(-15deg);
    animation: none;

}
.slide.byz {
    background-color: var(--byz);
    animation-delay: 300ms;
}
.slide.hot {
    background-color: var(--hot);
    animation-delay: 500ms;
}
.slide.fla {
    background-color: var(--fla);
    animation-delay: 750ms;
}
.slide.cyb {
    background-color: var(--main-color);
    animation-delay: 900ms;
}
.slide.whi {
    background-color: var(--background);
    animation-delay: 1200ms;
}

@keyframes slide-in {
    from {transform: skewX(-15deg) translateX(-110%);}
    to {transform: skewX(-15deg) translateX(0);}
}


.cards {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: stretch;
    background-color: var(--secondary-background);
}

.card {
    position: relative;
    display: flex;
    background-color: hsl(0, 0%, 100%);
    border: 1px solid hsl(0, 0%, 85%);
    border-radius: 15px;
    padding: 3rem 1rem;
    margin-bottom: 1rem;

    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    width: 200px;

    color: hsl(0, 0%, 0%);
    text-decoration: none;

    overflow: hidden;
}

.card-subtitle {
    text-align: center;
    margin: .4rem;
    color: hsl(0, 0%, 30%);
}

.card-title {
    margin: .8rem;
}

.card-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    transition: all 300ms cubic-bezier(0.65, 0.05, 0.36, 1);
    background-color: hsl(0, 100%, 100%);
    color:hsl(50, 100%, 50%);
}

.card:hover .card-popup,
.card:focus .card-popup {
    transform: translateY(0);
    opacity: 1;
}

blockquote p:first-child {
    position: relative;
}

blockquote p:first-child::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1rem;
    width: 0.2rem;
    background-color:hsl(50, 100%, 50%);
    border-radius: 1rem;
    transform: skewY(45deg);
}

.sheeps {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 4rem;
}