/* ================ Reset ================ */
* {
    margin:  0;
    padding: 0;
    gap:     0;
    box-sizing: border-box;
    user-select: none;
}

hr {
    border: none;
}

li {
    list-style: none;
}

a {
    color: black;
    text-decoration: none;
}

button {
    border: none;
    background: none;
}

img, video {
    -webkit-user-drag: none;
}

iframe {
    border: none;
}




/* ================ Global ================ */
h1, h2, h3 {
    color: hsl(0, 0%, 5%);
    font-family: system-ui;
}

li, p, a {
    color: hsl(0, 0%, 5%);
    font-family: system-ui;
    font-weight: 500;
}

h2 a {
    /* color:       inherit; */
    font-weight: inherit;
}

button {
    cursor: pointer;
}

img, video {
    max-width: 100%;
}




/* ============================================ */
/* ================ Background ================ */
/* ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(45deg, hsl(0, 0%, 91%), hsl(0, 0%, 98%));
}




/* ======================================== */
/* ================ Header ================ */
/* ======================================== */
header div {
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* background-color: turquoise; */
    /* background-color: darkturquoise; */
    /* background-color: blue; */
    /* background-color: cornflowerblue; */
    /* background-color: deepskyblue; */
    /* background-color: slateblue; */
    /* background-color: royalblue; */
    /* background-color: dodgerblue; */
    
    background: linear-gradient(darkturquoise, hsl(181, 100%, 32%));
    height: 70px;
}

header h1 {
    /* overflow: hidden; */
    /* white-space: nowrap; */

    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    color: white;
    margin-top: -5px;
    text-shadow: hsl(0, 0%, 0%, 15%) 0 0 12px;
}

header hr {
    /* height: 1px; */
    /* background: white; */
}



/* ================ Navbar ================ */
nav {
    position: sticky;
    top: 0;
    z-index: 2;
    background: white;
    /* background: hsl(0, 0%, 92%); */
    /* background: linear-gradient(to right, hsl(0, 0%, 98%), hsl(0, 0%, 100%)); */
    box-shadow: hsl(0, 0%, 0%, 5%) 0 5px 5px;
}

nav ul {
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: auto;
    max-width: 1080px;
    height: 25px;
    padding-left: 12px;
}

nav a {
    white-space: nowrap;
    /* color: white; */
    margin-right: 13px;
    font-weight: 500;
}

nav a:hover {
    color: hsl(33, 80%, 45%);
    /* color: hsl(174, 72%, 25%); */
    /* color: hsl(174, 72%, 38%); */
}




/* ================ Carrousel ================ */
.carrousel {
    position: fixed;
    z-index: 2;
    top: 50%;

    font-weight: bolder;
    border-radius: 15px;
    width:  30px;
    height: 30px;

    color: white;
    background: rgb(75, 190, 192);
    box-shadow: rgba(0,0,0, 25%) 0 0 8px;
}

.carrousel:hover {
    background: darkturquoise;
}

.carrousel#prev { left:  10px; }
.carrousel#next { right: 10px; }




/* ====================================== */
/* ================ Main ================ */
/* ====================================== */
main {
    margin:         auto;
    max-width:    1080px;
    min-height:    100vh;

    padding-top:    30px;
    padding-left:   10px;
    padding-right:  10px;
    padding-bottom: 50px;
}




/* ================ Sections ================ */
section {
    overflow: hidden;
    border-radius: 8px;
    background: white;
    /* background: hsl(0, 0%, 96%); */
    /* background: linear-gradient(45deg, hsl(0, 0%, 95%), hsl(0, 0%, 100%)); */
    box-shadow: rgb(0,0,0, 6%) 0 0 12px;
}

section h2, section h3 {
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    text-align: center;
    padding-top:     8px;
    padding-left:   14px;
    padding-bottom: 10px;
    /* height: 35px; */
    /* text-shadow: hsl(0, 0%, 0%, 10%) 0 0 12px; */
}




/* ================ Containers ================ */
section div, section ul {
    /* padding-top:    15px; */
    padding-left:   10px;
    padding-right:  10px;
    /* padding-bottom: 20px; */
}




/* ========================================= */
/* ================ Customs ================ */
/* ========================================= */

/* ================ posts ================ */
.posts {
    /* margin-top: 40px; */
}


.posts div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 12px;
    row-gap:    18px;

    margin-top:      5px;
    margin-bottom:  25px;
}



.posts div a {
    overflow: hidden;
    border-radius: 5px;
    transition: 85ms;
}

.posts div a:hover {
    box-shadow: hsl(0, 0%, 0%, 20%) 0 0 10px;
}

.posts div a:hover img {
    filter: brightness(1.07);
}
.posts div a:hover p {
    background: linear-gradient(15deg, hsl(0, 0%, 92%), hsl(0, 0%, 98%));
}



.posts img {
    /* display: block; */
    object-fit: cover;
    /* aspect-ratio: 4/3; */
    aspect-ratio: 3/2;
    width:  100%;
    /* height: 100%; */
    transition: 85ms;
}

.posts p {
    margin-top: -4px;
    padding-top:     3px;
    padding-left:   10px;
    padding-bottom:  8px;
    /* background: hsl(0, 0%, 90%); */
    background: linear-gradient(15deg, hsl(0, 0%, 90%), hsl(0, 0%, 98%));
}




/* ======================================== */
/* ================ Footer ================ */
/* ======================================== */

/* ================ Navigation ================ */
#gohead {
    position: fixed;
    bottom: 25px;
    right:  25px;

    border-radius: 15px;
    width:  30px;
    height: 30px;

    background: rgb(75, 190, 192);
    box-shadow: rgba(0,0,0, 25%) 0 0 8px;
}

#gohead:hover {
    background: darkturquoise;
}

#gohead p {
    color: white;
    font-size: 15px;
    margin-top: -5px;
}





/* ================ Footer ================ */
footer div {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(darkturquoise, hsl(181, 100%, 32%));
    height: 90px;
    box-shadow: hsl(0, 0%, 0%, 33%) 0 0 15px;
}

footer div h1 {
    color: white;
    text-shadow: hsl(0, 0%, 0%, 15%) 0 0 12px;
    /* margin-top: -5px; */
}


footer span {
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* min-height: 25px; */
    /* background-color: black; */
}

footer span a {
    /* color: white; */
    /* padding-bottom: 2px; */
}

footer span a:hover {
    /* color: dodgerblue; */
}