:root {
  --color_0: #00172D;
  --color_1: #F5EDED;
  --color_2: #ED1C24;
  --color_3: #006EBD;
  --color_4: #fc878b;
  --color_5: #65b5ed;
  --color_6: #65ed9b;
  --color_7: #eca83a;

  --code_bg: #010f1c;
  interpolate-size: allow-keywords;
}

.code_div_block {
  width: 100%;
  overflow: scroll;
  background: var(--code_bg);
  position: relative;
}

.code_pre_block {
  width: 100%;
  color: var(--color_1);
}

.code_comment {
  color: grey;
}

.code_constant {
  color: var(--color_5);
}

.code_function {
  color: var(--color_5);
}

.code_keyword {
  color: var(--color_4);
}

.code_module {
  color: var(--color_4);
}

.code_number {
  color: var(--color_4);
}

.code_property {
  color: var(--color_5);
}

.code_string {
  color: var(--color_6);
}

.code_bracket {
  color: var(--color_7);
}

.code_type {
  color: var(--color_4);
}

.code_variable {
  color: var(--color_1);
}



*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

body {
  background: var(--color_0);
  font-family: 'Lato';
  padding: 0em;
  margin: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

p {
  margin-block-start: 0em;
  margin-block-end: 0em;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
}

div:has(>div>details) {
  transition: opacity 0.4s ease;
  opacity: 0.75;
}

div:has(>div>details:not([open]) > :hover) {
  opacity: 0.9;
}

div:has(>div>details[open]) {
  opacity: 1.0;
}

.re_page {
  display: grid;
  width: 100%;
  max-width: 1350px;
  gap: 2em;
  grid-template-areas:
    "header header"
    "left   right";
  grid-template-columns: 2fr 1fr;

  @media (width < 1260px) {
    grid-template-areas:
      "header"
      "left"
      "right";
    grid-template-columns: 1fr;
  }
}

.re_column {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.top_bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--color_1);
  justify-content: center;
  position: relative;
  width: fit-content;
  margin: 0px auto 2em auto;

  >div:nth-child(1) {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: -1em;
    background: radial-gradient(at top,
        color-mix(in srgb, var(--color_3) 30%, transparent 100%) 0%,
        color-mix(in srgb, var(--color_3) 0%, transparent 100%) 70%);
    z-index: -1;
    padding: 0em 2em;
  }

  >img {
    width: 6em;
    height: 6em;
  }

  >p {
    transition: all 0.5s ease-in-out;
    font-size: 2em;

    @media (width >=850px) {
      font-size: 3em;
    }
  }
}

.sec_title {
  align-self: center;
  width: 100%;
  max-width: 700px;
  font-size: 2.4em;
  margin-bottom: 0.5em;

  @media (width <=440px) {
    font-size: 1.8em
  }

  position: relative;
  color: var(--color_1);
  padding: 0.2em 0.4em;
  text-align: center;
  transition: font-size 0.2s ease-in-out;

  >div:nth-child(1) {
    background-color: var(--color_3);
    position: absolute;
    top: 0px;
    left: 0.5em;
    width: calc(100% - 1em);
    height: 100%;
    transform: rotate(-1deg);
    z-index: -1;
  }

  >div:nth-child(2) {
    background-color: var(--color_1);
    position: absolute;
    top: 0px;
    left: 0.75em;
    width: calc(100% - 1.5em);
    height: 100%;
    transform: rotate(1deg);
    z-index: -2;
  }
}

.re_title_a,
.re_title_a:visited,
.re_title_a:hover,
.re_title_a:active {
  display: block;
  text-decoration: none;
  color: inherit;
}

.re_title_bg {
  margin-top: 1em;
  margin-bottom: 1em;
  position: relative;
  padding: 0.1em 1.25em;
  color: var(--color_0);

  >div:nth-child(1) {
    position: absolute;
    background-color: var(--color_1);
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  >div:nth-child(2) {
    position: absolute;
    background-color: var(--color_2);
    top: 0.5em;
    left: 0.5em;
    width: calc(100% - 1.0em);
    height: 100%;
    z-index: -2;
  }
}

.re_title {
  display: flex;
  flex-wrap: nowrap;
  padding: 0.2em 0.0em;

  >p:nth-child(1) {
    align-content: center;
    font-size: 1.8em;
  }

  >p:nth-child(2) {
    align-content: center;
    font-size: 1.25em;
  }
}

.accent_container {
  position: relative;
  color: var(--color_0);
  padding: 0.2em 0.8em;
  text-align: center;

  >div:nth-child(1) {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: var(--color_1);
    z-index: -1;
  }

  >div:nth-child(2) {
    position: absolute;
    top: 0.4em;
    left: 0.5em;
    width: calc(100% - 1.0em);
    height: 100%;
    background-color: var(--color_3);
    z-index: -2;
  }
}

.stylized_details {
  >summary::marker {
    content: " ";
  }

  &::details-content {
    height: 0px;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    transition-behavior: allow-discrete;
  }

  &[open]::details-content {
    height: auto;
    transition: all 0.4s ease-in-out;
  }

  >summary {
    margin-left: 0.75em;
    margin-right: 0.5em;
    margin-bottom: 0.75em;
    padding: 0.2em 0.75em;
    font-size: 1.4em;
    position: relative;
    transition: all 0.4s ease-in-out;
    color: var(--color_1);
  }

  &[open]>summary {
    color: var(--color_0);
  }

  >summary>div:nth-child(1) {
    position: absolute;
    background-color: var(--color_3);
    top: 0px;
    left: 0px;
    width: 8em;
    height: 100%;
    transition: all 0.4s;
    z-index: -1;
  }

  &[open]>summary>div:nth-child(1) {
    width: 100%;
    background-color: var(--color_1);
  }

  >summary>div:nth-child(2) {
    position: absolute;
    background-color: var(--color_1);
    top: 0.3em;
    left: 0.5em;
    width: 7em;
    height: 100%;
    transition: all 0.4s;
    z-index: -2;
  }

  &[open]>summary>div:nth-child(2) {
    width: calc(100% - 1em);
    background-color: var(--color_2);
  }

  >summary>div:nth-child(3) {
    position: absolute;
    background-color: var(--color_3);
    top: calc(50% - 0.15em);
    right: 0px;
    width: calc(100% - 10em);
    height: 0.3em;
    transition: all 0.4s;
    z-index: -3;
  }

  &[open]>summary>div:nth-child(3) {
    width: 0px;
  }
}

.portfolio_post {
  display: flex;
  flex-direction: row;
  gap: 3em;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  padding: 0em 1em;

  >a {
    min-width: 350px;
    max-width: 600px;
    position: relative;
    transition: all 0.5s ease-in-out;
  }

  >a:hover {
    transition: all 0.5 ease-in-out;
    transform: scale(1.1);
  }

  >a>div>div {
    color: var(--color_1);
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    font-size: 2.25em;
    text-align: center;
    padding: 0.5em 0em;
    background-color: color-mix(in srgb, var(--color_0) 100%, transparent 25%);
  }
}

.carousel_main_img {
  margin: 0 auto;
  width: calc(100% - 1.5em);
  transition: all 0.5s ease;
  transition-behavior: allow-discrete;
}

.carousel_img_container {
  scrollbar-width: none;
  display: flex;
  flex-direction: row;
  align-content: center;
  overflow-x: scroll;
  overflow-y: hidden;
  position: absolute;
  height: 100%;
  left: 0px;
  right: 0px;

  scroll-snap-type: x mandatory;

  >div {
    scroll-snap-align: center;
  }
}

.carousel_image_inner{
  overflow: hidden;
  >img {
    transition: all 0.6s ease;
    transform: scale(0.8);
    position: relative;
    opacity: 0.7;
  }
  >img:hover{
    transform: scale(0.95);
    opacity: 1.0;
  }
}
.carousel_image_accent{
  transition: all 0.3s ease;
  position: absolute;
  bottom: -5%;
  left: 50%;
  right: 50%;
  height: 5%;
  z-index: 0;
  background: var(--color_2)
}
.carousel_image_sides{
  align-self: center;
  height: 60%; 
  background: var(--color_3); 
  opacity: 1.0;
}

.carousel_image {
  position: relative;

  &:hover {
    >img {
      transform: scale(1.0);
      opacity: 1.0;
    }
  }
}

.selected_image {
  >div>img {
    transform: scale(1.0) !important;
    opacity: 1.0 !important;
  }

  >div {
    bottom: 0;
    left: 0px !important;
    right: 0px !important;
  }
}

.carousel_outer_container {
  width: 100%;
  position: relative;
  height: 30vw;
  max-height: 260px;
  overflow: hidden;

  >.carousel_border {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 10vw;
    max-width: 120px;
    z-index: 1;
    user-select: none;
    pointer-events: none;
  }

  >.scroll_indicator{
    position: absolute;
    top: 25%;
    bottom: 25%;
    width: 2.5vw;
    max-width: 0.5em;
    z-index: 1;
    user-select: none;
    pointer-events: none;
    background: var(--color_3);
  }

  >div:nth-child(1) {
    left: 0px;
    /* background: linear-gradient(to right, var(--color_0) 0%, transparent 100%); */
  }

  >div:nth-child(2) {
    right: 0px;
    /* background: linear-gradient(to left, var(--color_0) 0%, transparent 100%); */
  }

  >div:nth-child(3) {
    left: 0px; 
  }

  >div:nth-child(4) {
    right: 0px;
  }
}

.contacts {
  font-size: 1.6em;
  line-height: 1.5em;
  max-width: 900px;
  padding: 0em 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;

  >p:nth-child(2) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25em 0.5em;
  }
}