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

li {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    border: none;
    background: none;
}

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




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

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

button {
    cursor: pointer;
}

img, video {
    display: block;
    max-width: 100%;
    background-color: black;
}




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

body {
    min-height: 100vh;
}


body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    /* background-color: darkslateblue; */
    background: linear-gradient(45deg, hsl(248, 39%, 4%), hsl(248, 39%, 10%));
}




/* ======================================== */
/* ================ header ================ */
/* ======================================== */
header {
    height: 75px;
    background-color: darkslateblue;
    background: linear-gradient(hsl(248, 39%, 35%), hsl(248, 39%, 20%));

    display: flex;
    justify-content: center;
    align-items: center;
}

header h1 {
    /* text-align: center; */
    margin-top: -5px;
    text-shadow: 0 0 10px hsl(0, 0%, 0%, 50%);
}


/* ================ nav ================ */
nav {
    position: sticky;
    top: -1px;
    z-index: 2;
    background-color: hsl(0, 0%, 11%);
    box-shadow: 0 6px 6px hsl(0, 0%, 0%, 20%);
}

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

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

nav a:hover {
    color: gold;
}


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

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

    color: white;
    background-color: hsl(248, 39%, 28%);
    
    box-shadow: rgba(0,0,0, 0.50) 0 0 12px;
}

.carrousel:hover {
    background-color: hsl(248, 39%, 36%);
}

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



/* ====================================== */
/* ================ main ================ */
/* ====================================== */
main {
    overflow: hidden;

    margin: auto;
    max-width: 1080px;
    min-height: 100vh;

    padding-top:    30px;
    padding-left:    8px;
    padding-right:   8px;
    padding-bottom: 45px;
}



/* ================ sections ================ */
section {
    border-radius: 6px;
    min-height:  600px;
    
    /* background-color: darkblue; */
    background: linear-gradient(45deg, hsl(0, 0%, 100%, 6%), hsl(0, 0%, 100%, 8%));
    box-shadow: 0 0 15px hsl(0, 0%, 0%, 10%);
}

section h2 {
    padding-top:     8px;
    padding-left:   15px;
    padding-bottom:  8px;
}



/* ================ containers ================ */
section div {
    padding-top:    10px;
    padding-left:    8px;
    padding-right:   8px;
    padding-bottom: 10px;
}



/* ========================================= */
/* ================ customs ================ */
/* ========================================= */

/* ================ posts ================ */
#posts {
    /* margin-top: 50px; */
}

#posts div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    row-gap:    10px;
    column-gap: 10px;
}

#posts video {
    object-fit: cover;
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 4px;
    background: linear-gradient(45deg, hsl(0, 0%, 3%), hsl(0, 0%, 11%));
    box-shadow: 0 0 8px hsl(0, 0%, 0%, 35%);
    transition: 150ms;
}

#posts video:hover {
    box-shadow: 0 0 8px hsl(0, 0%, 50%, 35%);
}




/* ================ Web Pages ================ */
/* #webpages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    
    margin-top: 35px;
    column-gap:  5px;
    row-gap:    10px;
}

#webpages button {
    width:          40px;
    height:         40px;
    border-radius:   5px;
    background: linear-gradient(hsl(240, 100%, 29%), hsl(240, 100%, 24%));
}

#webpages button:hover {
    background: linear-gradient(hsl(240, 100%, 33%), darkblue);
    box-shadow: 0 0 10px hsl(0, 0%, 100%, 20%);
}

#webpages h3 {
    margin-top: -2px;
} */




/* ======================================== */
/* ================ footer ================ */
/* ======================================== */

/* ================ Navigation ================ */
#gohead {
    position: fixed;
    z-index: 1;
    bottom: 25px;
    right:  25px;

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

#gohead:hover {
    background-color: hsl(248, 39%, 38%);
}

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




/* ================ Footer ================ */
footer {
    height: 95px;
    background-color: darkslateblue;
    background: linear-gradient(hsl(248, 39%, 35%), hsl(248, 39%, 20%));

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 0 15px hsl(0, 0%, 0%, 50%);
}

footer h1 {
    /* text-align: center; */
    margin-top: -5px;
    text-shadow: 0 0 10px hsl(0, 0%, 0%, 50%);
}
