*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    font-size: 16px;
    --color-text: white;
    --color-text-alt: #8bff85;
    --color-text-grid: #fff;
    --color-bg: #000;
    --color-link: white;
    --color-link-hover: white;
    --cut: 20px;
}

p {
    font-size: 16px;
}

.hidden {
    display: none;
}

body {
    margin: 0;
    /* color: var(--color-text); */
    /* background: var(--color-bg) url(../img/bg.jpg) no-repeat 50% 50% fixed; */
    background-size: cover;
    /* font-family: 'Open Sans', sans-serif; */
    font-family: 'Roboto', sans-serif;
    /* font-family: 'Rubik', sans-serif; */
    font-variation-settings: "wdth" 80, "wght" 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


header {
    /* position: absolute; */
    left: 0;
    z-index: 100;
    padding: 15px 30px;
    width: 100%;
    background: black;
    top: 0;
}

header .logo {
    float: left;
}

header .logo img {
    max-height: 45px;

}

header .logo2 img {
    max-height: 33px;
}

header .menu {
    float: right;
    cursor: pointer;
    height: 45px;
    width: 30px;
    padding-top: 10px;
    z-index: 10000;
}

header .menu span {
    width: 100%;
    height: 4px;
    background: #fff;
    display: block;
    border-radius: 1px;
    float: right;
    transition: all ease 0.3s;
    -webkit-transition: all ease 0.3s;
    -moz-transition: all ease 0.3s;
}

header .menu span:nth-child(2) {
    margin-top: 4px;
    width: 75%;
}

header .menu span:nth-child(3) {
    margin-top: 4px;
    width: 50%;
}

header .menu:hover>span {
    width: 100%;
    background: #ea6349;
}

.right-menu {
    width: 100%;
    position: fixed;
    height: 100%;
    visibility: hidden;
    z-index: 101;
    right: 0;
    top: 0;
}

footer {
    width: 100%;
    padding: 15px 25px;
}

footer .copyright {
    font-size: 15px;
    /* color: #fff; */
}


footer .copyright span {
    color: #ea6349;
}

footer .social a {
    font-size: 14px;
}

footer .social a:last-child {
    margin-right: 0;
}

footer .back-top {
    color: #fff !important;
    margin-right: 45px;
    font-size: 15px;
    cursor: pointer;
}

footer .back-top:hover p,
footer .back-top:hover i {
    color: #ea6349;
    transition: all ease 0.5s;
    -webkit-transition: all ease 0.5s;
    -moz-transition: all ease 0.5s;
}

footer .back-top p,
footer .back-top i {
    float: left;
}

footer .back-top i {
    margin-right: 15px;
    line-height: 27px;
}

.active {
    -webkit-mask: url(../img/sprite-right.png);
    mask: url(../img/sprite-right.png);
    -webkit-mask-size: 1280% 100%;
    mask-size: 1280% 100%;
    -webkit-animation: mask-play .7s steps(11) forwards;
    animation: mask-play .7s steps(11) forwards;
    background: #000;
}


.invert {
    background: #000;
    visibility: visible;
    z-index: 500;
}

.passive {
    -webkit-mask: url(../img/sprite-right.png);
    mask: url(../img/sprite-right.png);
    -webkit-mask-size: 1280% 100%;
    mask-size: 1280% 100%;
    -webkit-animation: mask-play .5s steps(11) reverse;
    animation: mask-play .5s steps(11) reverse;
}

.menu-close {
    width: 16px;
    height: 16px;
    position: fixed;
    top: 44px;
    right: 50px;
    background: url(../../img/close.png) no-repeat;
    cursor: pointer;
    background-size: 100%;
}

.page-menu {
    text-align: center;
    display: table;
    height: 100%;
    width: 100%;
}

.page-menu ul {
    display: table-cell;
    vertical-align: middle;
    padding-left: 0;
}

.page-menu ul li a {
    color: #fff;
    font-weight: 500;
    font-size: 20px;
    text-decoration: none;
    transition: all ease 0.5s;
    -webkit-transition: all ease 0.5s;
    -moz-transition: all ease 0.5s;
}

.page-menu ul li {
    list-style: none;
    padding-top: 15px;
}

.page-menu ul li a:hover {
    color: #ea6349;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
    content: '';
    position: fixed;
}

.js .loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgb(181, 215, 227), rgb(50, 50, 50)) no-repeat;
    z-index: 999;
    /* background: var(--color-bg); */
}

.js .loading::after {
    top: 0;
    /* left: 50%; */
    width: 100%;
    height: 100%;
    /* margin: -30px 0 0 -30px; */
    /* border-radius: 50%; */
    opacity: 1;
    /* background: var(--color-link); */
    animation: loaderAnim 0.8s linear infinite alternate forwards;
    background: url(https://korpurist.life/bankrotstvo/23/img/heart_400.png);
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1001;
}

.background__diagramm {
    position: absolute;
    z-index: 1000;
}

.css-example {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.css-example>svg {
    width: 100vw;
}

@keyframes loaderAnim {
    to {
        opacity: 0.4;
        transform: scale3d(0.5, 0.5, 1);
    }

}


a {
    text-decoration: none;
    color: var(--color-link);
    outline: none;
    cursor: pointer;
}

a:hover {
    color: var(--color-link-hover);
    outline: none;
    text-decoration: underline;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:not(.card__image):focus {
    /* Provide a fallback style for browsers
	 that don't support :focus-visible */
    outline: none;
    background: lightgrey;
}

a:not(.card__image):focus:not(:focus-visible) {
    /* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
    background: transparent;
}

a:not(.card__image):focus-visible {
    /* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
    outline: 2px solid red;
    background: transparent;
}

.unbutton {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.unbutton:focus {
    outline: none;
}

.frame {
    z-index: 100;
    /* position: relative; */
    padding: 2vw;
    /* display: grid; */
    grid-template-columns: auto 1fr;
    grid-template-areas: 'title title' 'prev back' 'credits credits' 'sponsor sponsor';
    grid-gap: 1rem;
    /* pointer-events: none; */
    background: #000000cc;
    margin: 130px auto;
}

body #cdawrap {
    justify-self: start;
}

.frame a {
    pointer-events: auto;
}

.frame__title {
    grid-area: title;
    font-size: inherit;
    margin: 0;
    font-weight: inherit;
}

.frame__credits {
    grid-area: credits;
    max-width: 90%;
    margin: 25px auto;
    /* text-align: justify; */
}

.frame__back {
    grid-area: back;
    justify-self: start;
}

.frame__prev {
    grid-area: prev;
    justify-self: start;
}

.frame__demos {
    grid-area: demos;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: start;
    flex-wrap: wrap;
}

.frame__demos-item:not(:first-child) {
    width: 2rem;
    display: block;
    flex: none;
    border-radius: 10px;
    aspect-ratio: 1;
    border: 1px solid var(--color-link-hover);
    display: grid;
    place-items: center;
}

span.frame__demos-item:not(:first-child) {
    border-color: #fff;
}

.grid {
    display: none;
    position: relative;
    width: min-content;
    margin: 0 0 30vh auto;
    padding: 3vw 3vh 3vh 3vh;
    grid-template-columns: 350px;
    grid-auto-rows: 350px;
    gap: 1rem;
    z-index: 200;
    /* background: #000000ab; */
    /* margin: 50px; */
    color: var(--color-text-grid);
}

.grid_main {
    display: grid;
    position: relative;
    /* width: min-content; */
    margin: auto;
    padding: 3vw 3vh 3vh 3vh;
    grid-auto-rows: 360px;
    /* gap: 1rem; */
    z-index: 200;
    /* background: #000000ab; */
    /* margin: 100px auto; */
    color: var(--color-text-grid);
    /* grid-template-columns: min-content; */
    width: auto;
    /* justify-content: center; */
    /* width: calc(100% - 100px); */
}

.grid:hover {
    background: #000000e0;
}

.grid__title {
    /* text-transform: uppercase; */
    font-size: 8.0vw;
    /* line-height: 0.8; */
    /* opacity: 0.4; */
    /* font-family: "tt-autonomous", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif; */
    font-weight: 400;
    /* line-height: 0.8; */
    /* background-color: #fff; */
    /* background-image: linear-gradient(45deg, #fdf17b, #54ad8a, #a054fd); */
    /* background-size: 100%; */
    /* background-repeat: repeat; */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent;  */
    /* -moz-background-clip: text; */
    /* -moz-text-fill-color: transparent; */
}

.grid__title_main {
    text-transform: uppercase;
    font-size: 11vw;
    /* opacity: 0.4;	 */
    font-weight: 900;
    /* background-color: #fff; */

}

.grid__title_stat {
    text-transform: uppercase;
    font-size: 3.4vw;
    /* opacity: 0.4;	 */
    /* font-weight: 900; */
    background-color: #ffffffd6;
    max-width: 900px;
    padding: 25px;
    color: black;

}

.speaker_div {
    display: flex;
    text-transform: none;
    font-size: 14px;
    flex-direction: row;
    /* max-width: 50%; */
    align-items: center;
    text-align: -webkit-left;
}

.card {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, auto);
    gap: 0.5rem;
    padding: 0.5rem;
    grid-template-areas: 'box-a box-b' 'box-c box-d';
    cursor: pointer;
}

.card__img {
    background-size: cover;
    background-position: 50% 50%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    will-change: filter, transform;
}

[data-effect="hover-2"] .card__img {
    transform: scale3d(1.3, 1.3, 1.3);
}

[data-effect="hover-3"] .card__img {
    transform: scale3d(1.2, 1.2, 1.2);
}

.card__box {
    /* opacity: 0; */
    z-index: 11111;
    padding: 1rem;
    display: flex;
    position: relative;
    /* overflow: hidden; */
    flex-direction: column;
    background-color: rgb(199 49 29 / 79%);
    backdrop-filter: blur(5px);
}

.card__box--a {
    grid-area: box-a;
}

.card__box--b {
    grid-area: box-b;
}

.card__box--c {
    grid-area: box-c;
}

.card__box--d {
    grid-area: box-d;
}

.card__box--b,
.card__box--d {
    align-items: flex-end;
    text-align: right;
}

/* Corners made with https://css-generators.com/custom-corners/ by Temani Afif */

.card__box--a,
.card__box--d {
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.card__box--b,
.card__box--c {
    clip-path: polygon(0 var(--cut), var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.card__box-number {
    font-size: clamp(1.25rem, 4vw, 1.25rem);
    font-family: "tt-autonomous", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
    font-weight: 200;
    /* line-height: 0.8; */
    grid-area: number;
}

.card__box--alt {
    color: var(--color-text-alt);
}

.card__box-tags,
.card__box-category {
    font-size: 1rem;
    font-weight: 600;
    margin-top: auto;
}

.card__box-tags {
    grid-area: tags;
    font-size: 1rem;
}

.card__box-category {
    grid-area: category;
}

.card__box>span {
    display: inline-bock;
    position: relative;
    overflow: hidden;
}

@media screen and (min-width: 53em) {
    .frame {
        /* position: fixed; */
        /* bottom: 0; */
        /* background: #000000ab; */
        background: #0000009f;
        margin: 100px 50px;
    }


    .grid {
        display: grid;
        position: relative;
        width: min-content;
        margin: 0 0 30vh auto;
        padding: 3vw 3vh 3vh 3vh;
        grid-template-columns: 350px;
        grid-auto-rows: 350px;
        gap: 1rem;
        z-index: 200;
        /* background: #0000009f; */
        margin: 100px 50px;
        color: var(--color-text-grid);
        /* grid-template-columns: repeat(2,350px); */
    }

    .grid_main {
        grid-template-columns: repeat(auto-fit, 300px);
        /* background: #0000009f; */
        /* margin: 100px 0px; */
        /* width: calc(100% - 100px); */
        justify-content: center;
        grid-gap: 75px;
        grid-auto-rows: 320px;

    }

    .grid__title {
        font-size: 1.4vw;

    }

    .grid__title_main {
        font-size: 2.2vw;
        line-height: 1.1;
    }

    .grid__title_stat {
        text-transform: uppercase;
        font-size: 1.2vw;
        line-height: 1.1;
        /* opacity: 0.4;	 */
        /* font-weight: 900; */
        background-color: #ffffffd6;
        max-width: 900px;
        padding: 25px;
        color: black;

    }

    .card__box {
        opacity: 0;
        z-index: 2;
        padding: 1rem;
        display: flex;
        position: relative;
        overflow: hidden;
        flex-direction: column;
        background-color: rgba(255, 255, 255, .15);
        backdrop-filter: blur(5px);
    }

    .speaker_div {
        display: flex;
        text-transform: none;
        font-size: 16px;
        flex-direction: row;
        max-width: 50%;
        align-items: center;
        text-align: -webkit-left;
    }


    footer {
        width: 100%;
        padding: 15px 150px;
    }

    .minimum {
        width: 80%;
        place-self: center;
    }

    .maximum {
        width: 110%;
        margin: -15px 0;
    }

    .margin-desctop {
        margin: 100px 80px;
    }

    .frame__credits {
        max-width: 60%;
    }

    .display {
        display: flex;
        place-content: center;
    }
}

@media only screen and (max-width: 500px) {
    .hidden {
        display: none;
    }
}

.frame:hover {
    background: #000000e0;
}


.filter {
    display: none;
}