/* Google Fonts - Roboto Mono, Rethink Sans */
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Roboto+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Silkscreen:wght@400;700&display=swap');

* {
    font-family: "Roboto Mono", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    height: 210dvh;
    background-size: 34rem;
    overflow-x: hidden;
    margin-left: 4rem;
    background-color: black;
}

header {
    background-color: black;
    background-size: 34rem;
    min-height: 100vh;
    color: white;
    padding: 1.5rem;
    height: 100vh;
}

#page_title {
    font-family: "Roboto Mono", Sans-serif;
    margin-left: 4rem;
    position: fixed;
    top: 0rem;
    mix-blend-mode: difference;
    z-index: 6;
    cursor: pointer;
}

#main_icon {
    height: 2.5rem;
    position: fixed;
    mix-blend-mode: difference;
    z-index: 6;
    filter: grayscale(1) invert(1);
    cursor: pointer;
}

#md2pdf_logo {
    height: 3rem;
    margin-top: 0.5rem;
}

#rail_logo {
    height: 5rem;
    margin-top: -0.5rem;
}

@keyframes start_title {
    from {margin-top: 3rem; opacity: 0;}
    to {margin-top: 0rem; opacity: 1;}
}

@keyframes start_header {
    from {opacity: 0; transform: translateY(5rem)}
    to {opacity: 1; transform: translateY(0rem)}
}

::-webkit-scrollbar {
    width: 0.9rem;
}
  
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
  
::-webkit-scrollbar-thumb {
    background: #141414;
}
  
::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

#error_title {
    font-family: "Roboto Mono";
    display: grid;
    justify-content: center;
}

#error_text {
    font-family: "Roboto Mono";
    display: grid;
    justify-content: center;
}

#development_notice {
    display: none;
    position: sticky;
    bottom: 20px;
    text-align: center;
    color: red;
    font-family: "Roboto Mono", sans-serif;
    font-weight: bolder;
}

#big_tile {
    padding: 0.5rem;
    padding-left: 2rem;
    background-color: #ffd06b;
    height: 78vh;
    width: 29rem;
    color: black;
    display: inline-block;
    margin-right: 2.2rem;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: 1s start_header forwards;
    animation-delay: 0.4s;
    box-shadow: 5px 5px 0px #0d0b05;
}

#big_tile_2 {
    padding: 0.5rem;
    padding-left: 2rem;
    background-color: #ffd06b;
    height: 78vh;
    width: 29rem;
    color: black;
    display: inline-block;
    margin-right: 2.2rem;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: 1s start_header forwards;
    animation-delay: 0.7s;
    box-shadow: 5px 5px 0px #0d0b05;
}

#main_section {
    margin-top: 15vh;
}

h1.big_tile_title {
    font-family: 'Roboto Mono', Sans-serif;
    font-size: 2rem;
    pointer-events: none;
}

h2.featured_text {
    font-family: 'Roboto Mono', Sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    pointer-events: none;
}

#description {
    margin-left: 66.5rem;
    margin-top: -81.7vh;
    font-family: "Roboto Mono", sans-serif;
    position: absolute;
    overflow-y: hidden;
}

#arrow_down {
    filter: invert(1);
    height: 2.5rem;
    width: 2.5rem;
    margin-top: 1.5rem;
    animation: 3s arrow_down_hover infinite;
    animation-delay: 2s;
    scale: 0.8;
    cursor: pointer;
}

#arrow_down_container {
    display: flex;
    justify-content: center;
}

@keyframes arrow_down_hover {
    0% {margin-top: 1.5rem}
    50% {margin-top: 2rem;}
    100% {margin-top: 1.5rem;}
}

#side_panel {
    background-color: #040404;
    z-index: 1;
    width: 4rem;
    height: 100vh;
    position: fixed;
    margin-left: -4rem;
    border-width: 1px;
    border-color: #1e1e1e;
    border-style: solid;
    border-top: transparent;
    border-left: transparent;
    border-bottom: transparent;
    animation: 1s sidepanel_show forwards;
}

#home_icon {
    filter: invert(1);
    width: 2rem;
    margin-left: 25%;
    margin-top: 1.5rem;
    animation: 1s sidebar_icons_move infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -0.7s);
    background-color: #fbfbfb;
    cursor: pointer;
}

#apps_icon {
    filter: invert(1);
    width: 2rem;
    margin-left: 25%;
    margin-top: 2rem;
    background-color: #fbfbfb;
    cursor: pointer;
}

#scrollUp_icon {
    position: fixed;
    filter: invert(1);
    width: 2rem;
    margin-left: -2rem;
    bottom: 1rem;
    transform: rotateZ(180deg);
    cursor: pointer;
    animation: 1s fadeInSCROLLUP infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -0.8s);
}

@keyframes fadeInSCROLLUP {
    from{opacity: 0}
    60%{opacity: 0}
    to{opacity: 1}
}

#apps_carousel {
    animation: 1s carousel_startAnim forwards;
}

@keyframes carousel_startAnim {
    from{margin-top: -2rem; opacity: 0;}
    to{}
}

#github_button {
    padding: 0.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: transparent;
    color: white;
    border-color: white;
    border-width: 0.1rem;
    font-family: "Roboto Mono";
    border-style: solid;
    visibility: hidden;
}

@keyframes github_button_appear {
    from {opacity: 0;}
    to {opacity: 1;}
}

#aiexam_logo_featured {
    height: 29rem;
    position: absolute;
    margin-left: -11.595rem;
    margin-top: 9.66rem;
    opacity: 0.95;
    scale: 1.1;
    pointer-events: none;
}

#dice-roll_logo {
    height: 29rem;
    position: absolute;
    margin-left: -11.595rem;
    margin-top: 8rem;
    opacity: 0.95;
    pointer-events: none;
    animation:  1s featured_icons_move infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -0.7s);
}

#aiexam_logo {
    filter: grayscale(1);
}

.app_list_logo.AIexam {
    scale: 0.6;
}

#title_link {
    color: white;
    text-decoration: none;
}

article.app {
    padding: 0.6rem;
    padding-right: 1rem;
    height: 5rem;
    display: inline-block;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    margin-top: 1rem;
    background-color: #111111;
    color: white;
    box-shadow: 5px 5px 0px #00000012;
    cursor: pointer;
    transition: 0.3s all;
    border-radius: 0.6rem;
    border: 1px solid #27272a;
}

article.app:hover {
    background-color: #232323;
}

article.app:active {
    background-color: #2e2e2e;
    scale: 0.98;
}

div.app_logo_bg {
    height: 4rem;
    width: 4rem;
    background-color: black;
    display: inline-block;
    padding: 0.5rem;
    pointer-events: none;
    border-radius: 0.4rem;
}

img.app_list_logo {
    width: 4rem;
    height: 4rem;
    position: absolute;
    filter: invert(100%);
    pointer-events: none;
}

#nadrazi_logo {
    filter: invert(0);
}

h2.app_title {
    font-family: "Roboto Mono";
    display: inline-block;
    transform: translateY(-2rem);
    margin-left: 0.5rem;
    user-select: none;
    pointer-events: none;
}

h2.segment_title {
    margin-left: 1.5rem;
    font-family: "Roboto Mono";
    user-select: none;
    font-weight: 300;
}

#glitch-container {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000000;
    overflow: hidden;
    margin-left: -2rem;
    margin-top: -3rem;
    margin-right: -3rem;
    transform: translateY(1.5rem);
    opacity: 1;
    animation: bg_move 1s infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -0.7s);
}

@keyframes bg_move {
    from {opacity: 1; filter: blur(0px);}
    to {opacity: 0.5; filter: blur(8px);}
}

#glitch-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.outer-vignette {
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%);
}

.center-vignette {
    background: radial-gradient(circle, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}

#apps_list {
    margin-top: 3rem;
    animation: appstitle_move 1s infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -0.7s);
}

@keyframes appstitle_move {
    from {margin-top: 0.5rem; opacity: 0; filter: blur(3px);}
    to {margin-top: 15dvh; opacity: 1; filter: blur(0px);}
}

@keyframes redirect_animation {
    from {scale: 1; filter: blur(0px); margin-top: 0rem;}
    to {scale: 1.025; filter: blur(10px); margin-top: 0.5rem;}
}

@keyframes icon_morph {
    from {scale: 1;}
    50% {transform: rotate(20deg)}
    to {margin-left: -5.05rem; scale: 0.9; transform: rotate(-8deg);}
}

@keyframes title_morph {
    from {}
    to {margin-left: -0.2rem;}
}

@keyframes sidebar_icons_move {
    from {margin-top: 1.5rem}
    to {margin-top: 7rem}
}

#side_panel_divider {
    width: 2rem;
    height: 0.1rem;
    background-color: #292929;
    margin-left: 1rem;
    position: absolute;
    margin-top: 5.3rem;
    animation: sidepaneldivider_appear 1s infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -0.8s);
}

@keyframes sidepaneldivider_appear {
    from {width: 0rem;}
    to {width: 2rem;}
}

#button-container {
    position: relative;
    width: 80vw;
    height: 80vh;
    max-width: 800px;
    max-height: 600px;
    border: 1px solid #333;
    cursor: none;
}

.card-spotlight {
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid #222;
    background-color: #111;
    padding: 2rem;
    overflow: hidden; /* Important to contain the pseudo-element */
  
    /* Default values for the CSS custom properties */
    --mouse-x: 50%;
    --mouse-y: 50%;
    --spotlight-color: rgba(255, 255, 255, 0.05);
}

.card-spotlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
      circle at var(--mouse-x) var(--mouse-y),
      var(--spotlight-color),
      transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.card-spotlight:hover::before {
    opacity: 1;
}

.custom-spotlight-card {
    width: 100%;
    max-width: 400px;
    color: #eee;
}
  
.custom-spotlight-card h2 {
    margin-top: 0;
    color: #fff;
}
  
.custom-spotlight-card p {
    color: #999;
    line-height: 1.6;
}

#github_card {
    margin-top: 5rem;
    animation: fadeOutCards 1s infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -0.7s);
}

#githubCardDiv {
    animation: 1s carousel_startAnim forwards;
}

.card_title, .card_subtitle {
    font-family: "Roboto Mono", Sans-serif;
}

#github_title {
    color: white;
}

.pixel-card {
    height: 400px;
    width: 300px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    border: 1px solid #27272a;
    border-radius: 25px;
    isolation: isolate;
    transition: border-color 200ms cubic-bezier(0.5, 1, 0.89, 1);
    user-select: none;
    background-color: #111;
    cursor: pointer;
    transition: 0.2s all;
    animation: fadeOutCards 1s infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -0.7s);
}

@keyframes fadeOutCards {
    from {}
    to {opacity: 0; filter: blur(20px)}
}

.pixel-card:active {
    scale: 0.98;
    font-weight: 200;
}

  
.pixel-card:focus {
    outline: none;
    border-color: #a1a1aa;
}
  
.pixel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    aspect-ratio: 1;
    background: radial-gradient(circle, #09090b, transparent 85%);
    opacity: 0;
    transition: opacity 800ms cubic-bezier(0.5, 1, 0.89, 1);
    z-index: 1;
}
  
.pixel-card:hover::before, .pixel-card:focus-within::before {
    opacity: 1;
}
  
.pixel-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}
  
.pixel-card-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    pointer-events: none;
}
  
.pixel-card-content h2 {
    margin: 0;
    font-size: 2rem;
}
  
.pixel-card-content p {
    margin: 0.5rem 0 0;
    color: #a1a1aa;
}
#featured_card1 {
    margin-top: 5rem;
}

#featured_card2 {
    margin-left: 20rem;
    margin-top: -25.1rem;
}

#featured_card3 {
    margin-left: 40rem;
    margin-top: -25.1rem;
}

#subtitle {
    position: fixed;
    margin-top: 2.5rem;
    margin-left: -0.3dvw;
    font-size: 1rem;
    animation: 1s subtitle_move infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -0.7s);
    z-index: 5;
    font-weight: 300;
}

@keyframes subtitle_move {
    from {opacity: 0; margin-left: 5dvw}
    to {}
}

@media screen AND (max-width: 1000px) {
    #side_panel {
        display: none;
    }

    body {
        margin-left: 0;
    }

    header {
        background-color: black;
        background-size: 34rem;
        color: white;
        padding: 1.5rem;
        margin-top: -115dvh;
        pointer-events: none;
    }

    #big_tile, #big_tile_2, #apps_carousel, #github_card, #description {
        display: none;
        pointer-events: none;
    }

    @keyframes title_morph {
        from {}
        to {opacity: -0.8}
    }

    #arrow_down_container {
        display: none;
    }

    #main_icon {
        margin-top: 115dvh;
    }

    /* jank */
    @keyframes icon_morph {
        from {}
        to {}
    }
    
    @keyframes start_title {
        from {}
        50% {}
        to {}
    }

    @keyframes start_icon {
        from {}
        to {}
    }

    @keyframes test {
        from{}
        to{}
    }
    /* We ♥ jank */

    #apps_list {
        margin-top: 2rem;
        animation: 1s test forwards;
        scale: 0.9;
        display: grid;
    }    

    .app_title {
        font-size: 1.6rem;
    }

    #cursor {
        display: none;
    }

    #glitch-container {
        display: none;
        pointer-events: none;
    }

    #md2pdf_title {
        font-size: 1.2rem;
        text-wrap: none;
        text-overflow: clip;
    }
  }