/* light mode */
:root {
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  --border: 1px;
  --text-primary: #161853;
  --text-secondary: #292c6d;
  --text-emphasized: #ec255a;
  --text-emphasized--opacity: #ec255a2d;
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-thumbnail: #40413c;
  --gridline-color: #34376d;
  --icon-color: #292c6d;
  --toggle-color: #c8c9ce;
}

/* dark mode */
.dark-mode {
  --text-primary: #f8f8f2;
  --text-secondary: #e4e4e4;
  --text-emphasized: #66d9ef;
  --text-emphasized--opacity: #66d8ef56;
  --bg-primary: #272822;
  --bg-secondary: #272822;
  --bg-thumbnail: #272822f1;
  --gridline-color: #75715e;
  --icon-color: #66d9ef;
  --toggle-color: #75715e;
}

::selection {
  background-color: var(--text-emphasized--opacity);
}

html {
  scroll-behavior: smooth;
  line-height: 2rem;
}

/* FONTS */

body {
  font-family: "IBM Plex Sans KR", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

a {
  color: inherit;
}

.section__intros > a {
  border-bottom: 1px dashed currentColor;
  display: inline-block;
  line-height: 1.2;
}

a:hover {
  color: inherit;
  background-color: var(--text-emphasized--opacity);
  text-decoration: none;
  /* border-bottom: 2px solid currentColor; */
  line-height: 1.2;
  cursor: pointer;
}

li.customnav__item.active {
  color: var(--text-emphasized);
  text-decoration-color: white;
}

p {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Roboto";
  font-weight: 400;
}

h1 {
  font-size: 3.5rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin: 2rem auto;
}

h3 {
  font-size: 2rem;
  color: var(--text-primary);
}

h4 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

h5 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.customnav__left__item,
.customnav {
  font-family: "Roboto";
}

.customnav__left__item,
.customnav__item {
  color: var(--text-primary);
  font-size: 2rem;
}

u {
  text-decoration: none;
  border-bottom: 1px solid var(--text-primary);
}

/* SECTION GLOBAL */

.sectionbox {
  max-width: 1300px;
  margin: auto;
}
.section__intros {
  color: var(--text-secondary);
  text-align: justify;
}

/* HEADER */

.header {
  height: 5rem;
  position: sticky;
  width: 100%;
  top: 0;
  border-bottom: solid var(--border) var(--gridline-color);
  z-index: 1;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* CUSTOMNAVBAR */

.customnav,
.customnav__left {
  position: fixed;
  background-color: var(--bg-primary);
  transition: width 300ms ease;
  z-index: 1;
}

.customnav__left {
  left: 0;
}

.customnav__left__item {
  margin: 0;
  width: 100%;
  text-align: center;
  height: 5rem;
  line-height: 5rem;
  border-bottom: solid var(--border) var(--gridline-color);
}

.customnav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.customnav__item {
  margin: 0;
  width: 100%;
  text-align: left;
  padding-left: 10%;
  height: 5rem;
  line-height: 5rem;
  border-bottom: solid var(--border) var(--gridline-color);
}

.active {
  color: var(--text-emphasized);
  transition: 0.3 ease background-color;
}

/* ACCESSORIES */

.badge {
  padding: 30px, 10px;
}

.customtable {
  color: var(--text-primary);
}

.customtable td {
  padding-left: 0;
  padding-right: 0;
  font-size: 1.2rem;
  font-weight: 300;
}

.customtable td {
  border: none;
}

.iconstyle {
  color: var(--icon-color);
}

/* MEDIA */

/* Small screens */
@media only screen and (max-width: 1400px) {
  .header {
    padding-left: 3vw;
    height: 3rem;
    line-height: 3rem;
  }

  .customnav {
    bottom: 0;
    width: 100vw;
    height: 3rem;
    border-top: solid var(--border) var(--gridline-color);
  }

  .customnav__item {
    line-height: 3rem;
    /* border-left: var(--border) solid var(--gridline-color); */
  }

  li.customnav__item.active {
    color: var(--text-emphasized);
    text-decoration-color: white;
  }
  /* .customnav__item.active {
    border-left: var(--border) solid var(--gridline-color);
  } */
  .customnav__item.cv,
  .customnav__item.publications {
    border-left: var(--border) solid var(--gridline-color);
  }
  .customnav__item.publications {
    border-right: var(--border) solid var(--gridline-color);
  }

  .customnav__left {
    display: None;
  }

  .customnav__list {
    flex-direction: row;
  }

  .main {
    margin-bottom: 10rem;
  }

  .first {
    display: None;
  }

  .publications {
    padding-left: none;
  }

  .sectionbox {
    padding: 7rem 3vw;
  }

  .customnav__item {
    font-size: 1rem;
    padding-left: 0;
    text-align: center;
  }

  :root {
    font-size: 15px;
  }

  .projectsbox > h1 {
    margin-bottom: 1.5rem;
  }
  .projectsbox > h2 {
    font-size: 2rem;
  }
  .projectsbox > h3 {
    font-size: 1.6rem;
  }
  .projectsbox > h4 {
    font-size: 1.3rem;
  }

  .sectionbox > h1 {
    font-size: 2.5rem;
  }

  .wrapper-color-switch {
    display: none;
  }
}

/* Large screens */
@media only screen and (min-width: 1400px) {
  .customnav {
    top: 0;
    right: 0;
    height: 100vh;
    width: 18vw;
    border-left: solid var(--border) var(--gridline-color);
    border-right: solid var(--border) var(--gridline-color);
  }

  .customnav .wrapper-color-switch {
    position: absolute;
    display: block;
  }

  .customnav__left {
    left: 0;
    top: 0;
    height: 100vh;
    width: 18vw;
  }

  .main {
    margin-right: 20vw;
    margin-left: 20vw;
  }

  .sectionbox {
    padding: 7rem 3vw;
  }

  :root {
    font-size: 17px;
  }

  img.img--lowquality {
    width: 50%;
  }
  img.img--midquality {
    width: 70%;
  }
}

/* PROJECTS__CARDS */

.card-columns {
  column-count: 3;
}

.height-fixed {
  height: 20rem;
}

.nopadding {
  padding: 0;
}

.card,
.thumbnail__image {
  border-radius: 0px;
  text-align: center;
  background-color: var(--bg-secondary);
}

.card {
  border: solid 1px var(--gridline-color);
}

.card-body {
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--gridline-color);
}

.card-text {
  font-size: 1rem;
  color: var(--text-primary);
}

.h-150 {
  background-color: var(--bg-thumbnail);
}

.card--empty {
  visibility: hidden;
}

.card-deck {
  margin-bottom: 2rem;
}

.card-footer {
  background-color: var(--bg-secondary);
  border-top: none;
  font-weight: 300;
}

.card-title,
.text-white {
  font-family: "Roboto", sans-serif;
}

.card-text {
  font-family: "IBM Plex Sans KR", sans-serif;
}

.card-title {
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

/* THUMBNAIL SECTION */

.thumbnail {
  padding: 0;
  border: 1px solid;
}

.thumbnail__caption {
  text-align: center;
  /* color: var(--text-primary); */
  padding: 0.5vw;
}

.thumbnail__image {
  background-color: var(--bg-secondary);
  width: 100%; /* width of container */
  height: 150px; /* height of container */
  object-fit: cover;
}

.badge {
  position: absolute;
  right: 5px;
  top: 5px;
}

/*  */

.projects_leftbordering {
  border-right: 1px solid var(--gridline-color);
}

.h-150 {
  height: 150px;
  display: grid;
  place-content: center;
  padding: 3rem;
}

/* PROJECTS.HTML */
blockquote {
  padding: 20px 30px 10px 30px;
  margin: 50px auto;
  width: 100%;
}

.boxed {
  border: solid 1px;
}

.boxed > p {
  font-size: 1rem;
}

.projectsbox > p {
  text-align: justify;
}

.projectsbox > h3 {
  margin-top: 5rem;
}
.projectsbox > h4 {
  margin-top: 2rem;
}

/* Button in about section */

.btn {
  margin-right: 0.5rem;
}

/* VIDEOS */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.autoplayvideo-wrapper {
  width: 100%;
  height: 100%;
}

.autoplayvideo-wrapper video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* TOGGLE SWITCH */
/* container that holds the switch */
.wrapper-color-switch {
  align-items: right;
  padding-left: 9%;
  padding-top: 1.6rem;
}

/* label for switch that is interactive */
.color-switch {
  width: 3.8rem;
  height: 1.8rem;
  border-radius: 10rem;
  border: 2px solid var(--toggle-color);
  position: absolute;
  cursor: pointer;
}

/* circle toggle */
.color-switch-toggle {
  width: 1.2rem;
  height: 1.2rem;
  border: solid 2px var(--toggle-color);
  position: absolute;
  border-radius: 10rem;
  top: 0.2rem;
  left: 0.2rem;
  cursor: pointer;
  transition: all 250ms ease-in-out;
}

/* text label - light by default */
.color-switch::before {
  content: "Light mode on";
  position: absolute;
  display: inline-block;
  width: 12rem;
  left: 4.3rem;
  top: 0.1rem;
  color: var(--toggle-color);
  font-family: "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
}

/* animate circle toggle if switch is on */
#input-color-switch:checked ~ label .color-switch-toggle {
  transform: translatex(2rem);
}

/* text label - when dark */
#input-color-switch:checked ~ .color-switch::before {
  content: "Dark mode on";
}

/* hide input */
#input-color-switch {
  display: none;
}

/* FOOTER */
.footer-copyright {
  color: var(--toggle-color);
  font-weight: 400;
}
