@import url("https://fonts.googleapis.com/css2?family=Oxanium");

:root {
    color-scheme: dark;
    --col-text: #dadcd9;
    --col-text-2: #86c232;
    --col-text-3: #ddffae;
    --col-link: var(--col-text-2);
    --col-link-hover: #bde66a;
    --col-bg-1: #393939;
    --col-bg-2: #222629;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--col-bg-2);
    background: radial-gradient(circle farthest-side, var(--col-bg-1), var(--col-bg-2));
    background-attachment: fixed;
    font-family: Oxanium;
    color: var(--col-text);
    letter-spacing: 0.05em;
}

strong {
    color: white;
}

h1, h2, h3 {
    color: var(--col-text-3);
    margin: 10px 0px;
}
p {
    margin: 8px 0px;
}
li {
    margin: 5px 0px;
}
a {
    text-decoration: none;
    color: var(--col-link);
    font-weight: bold;
}
a:hover {
    color: var(--col-link-hover);
}
img,
video {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
hr {
    width: 50%;
    background-color: var(--col-text-3);
    height: 1px;
    border: none;
    margin: 15px auto;
}
code {
    border-radius: 5px;
    font-size: 15px;
    background-color: #00000047;
    padding: 2px 5px;
}
.top {
    position: relative;
    padding: 5px 20px 5px 20px;
    max-width: 900px;
    margin: auto;
}

.top h1 {
    color: var(--col-text);
    font-weight: normal;
    font-size: 20px;
    margin: 0;
}

.top h2 {
    color: var(--col-text-2);
    font-size: 15px;
    margin: 0;
}

.menu-container {
    display: flex;
    background-color: #00000045;
    justify-content: center;
}

nav li {
    margin: 0px;
    list-style-type: none;
    float: left;
}

nav a {
    font-size: 16px;
    display: inline-block;
    padding: 8px 10px;
}

nav li.active {
    background-color: #ffffff1a;
}

nav li:hover {
    background: #ffffff27;
}

.linkbox {
    position: absolute;
    right: 0;
    top: 0;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
}

.linkbox img {
    height: 2rem;
    margin: 0px 3px;
    width: auto;
    filter: invert(1) brightness(0.9);
}

.content-layout {
    max-width: 768px;
    margin: 10px auto 70px;
    background-color: #d3d3d314;
    padding: 10px 10px 50px;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.preview {
    position: relative;
    flex-grow: 1;
    margin: 2px;
    height: 200px;
    width: 240px;
    max-width: 240px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #ffffff30;
}

.preview>img {
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.preview-text {
    position: absolute;
    box-sizing: border-box;
    bottom: 0px;
    padding: 10px;
    color: #ffffff;
    text-shadow: -2px 3px 3px #0000003c;
    background-color: #00000082;
    border-top: 1px solid #ffffff5b;
    width: 100%;
    font-size: 15px;
    transition: 0.5s ease;
}

.preview:hover>img {
    transform: scale(1.1);
}

.preview:hover>.preview-text {
    color: var(--col-link-hover);
}

.content-layout ul {
    margin: 6px 0px;
    padding: 0px 30px;
    margin-bottom: 0.8em;
}

ul.nav-path>li {
    display: inline;
}
ul.nav-path {
    padding: 0;
}
ul.nav-path>li:not(:first-child)::before {
    content: "▸ ";
}

.icon {
    width: 20px;
    height: 20px;
    vertical-align: top;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    width: 100%;
    margin-top: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.img-comp-container {
    position: relative;
    overflow: hidden;
    margin: 6px 0;
}
.img-comp {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}
.img-comp-container img {
    display: block;
}
.img-comp img {
    height: 100%;
    width: auto;
    max-width: none;
}
.img-comp-text, .img-comp-text-r {
    position: absolute;
    background: #0000006b;
    padding: 4px;
    bottom: 0;
}
.img-comp-text-r {
    right: 0;
}

.img-comp-slider-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #ffffff5c;
    z-index: 1;
}

.img-comp-slider {
    position: absolute;
    z-index: 1;
    cursor: ew-resize;
    width: 40px;
    height: 40px;
    background-color: #ffffff69;
    opacity: 0.8;
    border-radius: 50%;
    background-image: url(icons/arrows.svg);
    background-size: 40px 40px;
    top: calc(50% - 20px);
    left: -20px;
}

.cross,
.img-scroll-left,
.img-scroll-right {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.507);
    border-radius: 50%;
    background-image: url(icons/cross.svg);
    background-repeat: no-repeat;
    background-size: 50% 50%;
    background-position: center;
    cursor: pointer;
}

.cross:hover,
.img-scroll-left:hover,
.img-scroll-right:hover {
    background-color: rgba(83, 83, 83, 0.507);
}

.cross {
    position: fixed;
    top: 10px;
    right: 10px;
}

.img-overlay {
    position: fixed;
    background-color: #000000d9;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    overflow-y: overlay;
}

.img-overlay img {
    width: auto;
    max-width: 100%;
}

.img-scroll {
    position: relative;
    overflow: hidden;
    height: 44vw;
    max-height: 450px;
}

.img-scroll-container {
    flex-direction: row;
    height: 100%;
    display: flex;
    align-items: center;
}

.img-scroll-container>div {
    position: absolute;
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.4s;
    cursor: pointer;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.img-scroll img {
    width: auto;
    height: 100%;
}

.img-scroll-left,
.img-scroll-right {
    position: absolute;
    top: calc(50% - 20px);
    background-image: url(icons/right.svg);
    background-size: 70% 70%;
}

.img-scroll-right {
    right: 0;
}

.img-scroll-left {
    left: 0;
    transform: scale(-1);
}
