html {
    font-family: Roboto, Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
    font-size: large;
}
body {
    background-color: #242124;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
h1 {
    font-size: 48px
}

/* BOXES --------------------------------------*/
.box {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #242124;
}
.box > * {
    margin: 12px;
}
.box.light {
    background-color: #C1C0EB;
    color: black;
}
.box.rows {
    flex-direction: row;
    justify-content: start;
}

/* DIVIDERS -----------------------------------*/
.box hr {
  border-top: 3px solid white;
  border-radius: 16px;
  width: 90vw;
}
.box.light hr {
  border-top: 3px solid black;
  border-radius: 16px;
  width: 90vw;
}

/* LINK BUTTONS IN BOXES ----------------------*/
.box a {
    background-color: #C1C0EB;
    color: black;
    text-decoration: none;
    font-weight: bold;
    padding: 16px;
    border-radius: 16px;
    transition: 0.25s;
}
.box a:hover {
    background-color: #e0dff8;
}
.box.light a {
    background-color: #202c41;
    color: white;
}
.box.light a:hover {
    background-color: #0a101b;
}

/* SPLIT BOX ----------------------------------*/
.splitbox {
    width: 100%;
    display: flex;
}
.splitbox .box {
    width: 50%;
}

/* IMAGES -------------------------------------*/
.titleimg {
    max-width: 80%;
    max-height: 100vh;
    border-radius: 16px;
}

/* HEX CODES ----------------------------------*/
.hexcodes {
    width: 80vw;
    height: 100px;
    display: flex;
    border-radius: 16px;
    color: white;
}

.hexcodes *:first-child {
    border-radius: 16px 0 0 16px;
}
.hexcodes *:last-child {
    border-radius: 0 16px 16px 0;
}
.hexcodes * {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bolder;
    cursor: pointer;
    flex: 1 100%;
    transition: 0.25s;
    user-select: none;
}

.hexcodes *:hover {
    flex: 1 125%;
}

/* Gallery ------------------------------------*/

.gallery {
    background-color: #242124;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    font-weight: bolder;
    font-size: larger;
}

.gallery div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 23%;
    margin: 1%;
}

.gallery img {
    width: 100%;
    cursor: pointer;
}
.gallery img.nsfw {
    filter: blur(15px) brightness(.3);
    scale: 0.8;
}
.gallery a {
    text-decoration: none;
    color: white;
}

#lightbox {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0 ,0, .7);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#lightbox-menu {
    display: flex;
    justify-content: right;
    position: fixed;
    top: 0;
    right: 0;
    padding: 16px;
}
#lightbox-menu div {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    background-color: black;
    border: white 2px solid;
    height: 50px;
    width: 50px;
    margin-left: 8px;
}
#lightbox-menu div:hover {
    background-color: rgb(68, 68, 68);
}
#lightbox img {
    max-width: 80vw;
    max-height: 80vh;
}
#lightbox-title {
    display: flex;
    align-items: center;
    position: fixed;
    background-color: black;
    height: 50px;
    max-height: 5vh;
    bottom: 0;
    width: calc(100% - 32px);
    padding: 16px;
    margin: 0;
}

@media only screen and (max-width: 1200px) {
    .gallery div {
        width: 48%;
    }
}
@media only screen and (max-width: 768px) {
    .gallery div {
        width: 98%;
    }
    .hexcodes * {
        font-size: small;
    }
    .splitbox {
        flex-direction: column;
    }
    .splitbox .box {
        width: 100%;
    }
}