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

li {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    border: none;
    background: none;
}




/* ================ Global ================ */
h1, h2, h3 {
    color: white;
    font-family: system-ui;
}

li, p, a {
    color: white;
    font-family: system-ui;
    font-weight: 500;
}

a:hover {
    color: rgb(50, 50, 220); 
}

button {
    cursor: pointer;
}

img {
    /* background: rgb(32, 32, 32); */
    background: linear-gradient(to top right, rgb(20,20,20), rgb(40,40,40));
}




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

body {
    min-height: 100vh;
    /* background: linear-gradient(to left bottom, rgb(8,8,18), rgb(5,5,5)); */
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to left bottom, rgb(8,8,18), rgb(5,5,5));
}




/* ======================================== */
/* ================ Header ================ */
/* ======================================== */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    
    min-height: 70px;
    background: linear-gradient(rgb(0, 0, 100), rgb(0, 0, 50));
}

header h1 {
    text-shadow: rgba(0,0,0,0.50) 0 0 15px;
}



/* ================ Navbar ================ */
nav {
    position: sticky;
    top: 0;
    z-index: 2;

    background: hsl(0, 0%, 11%);
    box-shadow: hsl(0, 0%, 0%, 30%) 0 10px 10px;
}

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

nav a {
    white-space: nowrap;
    margin-right: 12px;
}


/* ---------------- Carrousel ---------------- */
.carrousel {
    position: fixed;
    top: 50%;

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

    color: white;
    background-color: darkblue;
    box-shadow: rgba(0,0,0, 0.50) 0 0 12px;
}

.carrousel:hover {
    background-color: rgb(0, 0, 180);
}

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




/* ====================================== */
/* ================ Main ================ */
/* ====================================== */
main {
    margin: 0 auto;
    width: 100%;
    max-width: 1080px;
    min-height: 100vh;
    
    padding-top:    40px;
    padding-left:   10px;
    padding-right:  10px;
    padding-bottom: 15px;
}   




/* ================ Sections ================ */
section {
    margin-bottom: 50px;

    overflow: hidden;
    border-top-left-radius:  8px;
    border-top-right-radius: 8px;
    
    background: rgb(15,15,15);
    box-shadow: rgba(0,0,0,0.50) 0 0 15px;
}

section h2 {
    display: flex;
    justify-content: center;
    text-align: center;
    
    background: linear-gradient(rgb(0, 0, 100), rgb(0, 0, 50));
}



/* ================ Containers ================ */
section div {
    margin-top:     15px;
    margin-left:    10px;
    margin-right:   10px;
    margin-bottom:  15px;
}




/* ========================================= */
/* ================ Customs ================ */
/* ========================================= */
#posts a {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border-radius: 5px;
    gap: 2px;
    margin-bottom: 16px;
}

#posts a:hover img {
    filter: brightness(1.05);
}


#posts p {
    position: absolute;
    z-index: 1;
    opacity: 0.80;
    padding-left:   5px;
    padding-right:  5px;
    padding-bottom: 3px; 
    background: black;
    transition: 80ms;
}

#posts img {
    display: block;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 2/3;
}






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

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

    border-radius: 15px;
    width:  30px;
    height: 30px;
    background-color: darkblue;
    box-shadow: rgba(0,0,0, 0.50) 0 0 12px;
}

#gohead:hover {
    background-color: rgb(0, 0, 180);
}

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



/* ================ footer ================ */
footer {
    box-shadow: black 0 0 20px;
}

footer h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    
    text-shadow: rgba(0,0,0,0.50) 0 0 15px;
    background: linear-gradient(rgb(0, 0, 100), rgb(0, 0, 50));
    min-height: 90px;
}

footer div {
    text-align: center;
    background: linear-gradient(rgb(20,20,20), black);
    height: 24px;
}