@font-face {
  font-family: 'Record Beta 1';
  src: url("../fonts/RecordBeta1-Medium.woff2") format("woff2"), url("../fonts/RecordBeta1-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Record Beta 1';
  src: url("../fonts/RecordBeta1-MediumItalic.woff2") format("woff2"), url("../fonts/RecordBeta1-MediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
}

body {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

#about, #project {
  width: 100vw;
  height: 100vh;
  display: flex;
  margin: 38px 0 0 0;
  height: calc(100vh - 38px);
  transition: 1.5s ease;
  transform: translateX(0);
}
#about .bigCol p, #project .bigCol p {
  margin: 10px 20px 10px 10px;
  font-size: 1.7vw;
  line-height: 2.3vw;
}
#about .bigCol img, #project .bigCol img {
  margin: 11px 0 0 0;
  width: 100%;
  display: block;
}
#about .smallCol p, #project .smallCol p {
  margin: 10px;
  font-size: 1.2vw;
}
#about a, #project a {
  color: #FF0000;
}

@media screen and (min-width: 1300px) {
  #about .bigCol p, #project .bigCol p {
    font-size: 22px;
    line-height: 30px;
  }
  #about .smallCol p, #project .smallCol p {
    font-size: 17px;
  }
}

#project .head {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
#project .head .back {
  position: absolute;
  left: 8px;
  top: 10px;
}
#project .head .back img {
  margin: 0;
  transform: rotate(90deg);
}
#project .head .title {
  margin: 7px 0 0 calc(50% + 8px);
  font-size: 1.7vw;
}
#project .head .links {
  margin: 12px 0 6px calc(50% + 8px);
  font-size: 1.3vw;
}
#project .head .links a {
  color: black;
}
#project .head .links a:hover {
  color: #FF0000;
}
#project .head .plus {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 10px;
  background: #FF0000;
  width: 26px;
  height: 26px;
  padding: 7px;
  transition: .2s ease;
}
#project .head .plus img {
  transition: .5s ease;
  margin: 0;
}
#project .head .plus.open img {
  transform: rotate(45deg);
}
#project .head .plus:hover {
  background: #E5E5E5;
}
#project .head .curriculum {
  display: flex;
  font-size: 1.3vw;
  margin: 12px 0;
}
#project .head .curriculum .column {
  width: 50%;
  display: flex;
  flex-wrap: wrap;
}
#project .head .curriculum .column .experience {
  padding: 10px 0 10px 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}
#project .head .curriculum .column .experience .year {
  width: 5.7vw;
}
#project .head .curriculum .column .experience .details {
  width: inherit;
}

#project .desc {
  background: white;
  position: relative;
  z-index: 1;
}
#project .desc.open {
  margin: 0 !important;
  transition: .5s ease;
}

@media screen and (min-width: 1300px) {
  #project .head .title {
    font-size: 22px;
  }
  #project .head .links, #project .head .curriculum {
    font-size: 15px;
  }
  #project .head .curriculum .column:first-child .experience .details {
    width: 16vw;
  }
}

@media screen and (min-width: 1300px) {
  #project .head .title {
    font-size: 22px;
  }
  #project .head .links, #project .head .curriculum {
    font-size: 15px;
  }
  #project .head .curriculum .column .experience .year {
    width: 60px;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

html {
  background: #E5E5E5;
}

body {
  font-family: "Record Beta 1";
  background: white;
}

header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
}
header .menu{
  width: 75%;
  box-sizing: border-box;
  padding: 0;
  position: relative;
}
header div {
  width: 25%;
  padding: 6px 10px;
  font-size: 22px;
  display: flex;
  align-items: center;
}
header .logo{
  box-sizing: border-box;
}
header .menu div{
  width: calc(100% / 3);
}
header img {
  cursor: pointer;
  height: 21px;
  transform: scale(1.2);
  transition: .5s ease;
}
header img.open {
  transform: scale(1.2) rotate(45deg);
}
header #plus {
  position: relative;
  z-index: 5;
  height: 26px;
}

#burger{
  position: fixed;
  display: none;
}

main {
  transition: 1.5s ease;
  transform: translateX(0px);
}

#panel {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  top: calc(-100% * 2);
  transition: .5s ease;
  padding: 0;
  left: 0;
}
#panel div {
  width: 100%;
  height: 28px;
  padding: 6px 10px;
  font-size: 22px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 4;
}
#panel input {
  background: transparent;
  border: none;
  width: 100%;
  margin: 0 0 0 7px;
  border-bottom: black solid 3px;
  font-family: "Record Beta 1";
}
#panel input:focus {
  outline: none;
}
#panel #arrow img {
  transition: .5s ease;
}
#panel #arrow img.open {
  transform: scale(1.2) rotate(180deg);
}
#panel ul {
  position: relative;
  width: 100%;
  height: 0;
  margin: 0;
  list-style-type: none;
  padding: 0;
}
#panel ul div {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  z-index: 4;
  justify-content: flex-end;
}
#panel ul img {
  height: 19px;
}
#panel ul li {
  height: 28px;
  text-decoration: none;
  padding: 6px 10px;
  font-size: 22px;
  display: flex;
  align-items: center;
  transform: translate(0px, -122px);
  transition: .5s ease;
  z-index: 2;
}
#panel ul .first {
  position: relative;
  z-index: 3;
  transform: none;
}
#panel ul.open {
  height: auto;
}
#panel ul.open li {
  transform: translate(0px, 0px);
  transition: .5s ease;
  z-index: 2;
}
#panel ul.open .first {
  position: relative;
  z-index: 3;
  transform: none;
}

#panel.open {
  top: 100%;
}

.ornament {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 12%;
  width: 100%;
}

#slider {
  margin: 38px 0 0 0;
  width: 100vw;
  display: flex;
  overflow: hidden;
}
#slider .wrapper {
  width: 100vw;
  display: flex;
  animation: marquee 8s linear infinite;
  position: relative;
}
#slider .thumbnail {
  position: relative;
  width: 50%;
  height: 50vw;
  background: black;
}
#slider .thumbnail img {
  object-fit: cover;
  object-position: center;
  width: 50vw;
  height: 100%;
  opacity: 1;
  transition: .5s ease;
}
#slider .thumbnail .ornament img {
  height: 100%;
  width: 99%;
  object-fit: fill;
}
#slider .thumbnail .caption {
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 4.1vw;
  opacity: 0;
  line-height: 4.3vw;
  transition: .5s ease;
  color: white;
}
#slider .thumbnail:hover img {
  opacity: .7;
  filter: grayscale(1);
}
#slider .thumbnail:hover .ornament img {
  opacity: 1;
  filter: grayscale(0);
}
#slider .thumbnail:hover .caption {
  opacity: 1;
}

#home {
  width: 100vw;
  display: flex;
  flex-wrap: wrap;
  background: #E5E5E5;
}
#home .row {
  width: 100%;
  display: flex;
}
#home .thumbnail {
  position: relative;
  width: 25%;
  height: 25vw;
  background: black;
  opacity: 0;
  transition: .5s ease;
}
#home .thumbnail img {
  object-fit: cover;
  object-position: center;
  width: 25vw;
  height: 100%;
  opacity: 1;
  transition: .5s ease;
}
#home .thumbnail .ornament {
  height: 11%;
}
#home .thumbnail .ornament img {
  height: 100%;
  width: 99%;
  object-fit: fill;
}
#home .thumbnail .caption {
  position: absolute;
  top: 10px;
  left: 7px;
  font-size: 2.1vw;
  opacity: 0;
  line-height: 2.3vw;
  transition: .5s ease;
  color: white;
  top: 6px;
  left: 10px;
}
#home .thumbnail:hover img {
  opacity: .7;
  filter: grayscale(1);
}
#home .thumbnail:hover .ornament img {
  opacity: 1;
  filter: grayscale(0);
}
#home .thumbnail:hover .caption {
  opacity: 1;
}
#home .interYear {
  background: red;
}
#home .interYear .caption {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}
#home .interYear .caption .year {
  color: #E5E5E5;
}

footer {
  border-left: 50vw solid transparent;
  border-right: 50vw solid transparent;
  border-bottom: 38px solid #FF0000;
  position: fixed;
  bottom: 0;
  z-index: 4;
}

.red {
  background: #FF0000;
}

.grey {
  background: #E5E5E5;
}

.selected.red {
  color: white;
}

.selected.grey {
  color: #FF0000;
}

.bigCol {
  position: relative;
  width: 50%;
  overflow: scroll;
}

.smallCol {
  width: 25%;
}

.swiper-container{
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 2vh;
}

.swiper-container{
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.swiper-container .swiper-slide{
  cursor: pointer;
  position: relative;
}

.swiper-wrapper {
  -webkit-transition-timing-function: linear !important;
  transition-timing-function: linear !important;
  position: relative;
}

@media screen and (min-width: 1200px) {
  #slider .thumbnail {
    position: relative;
    width: 50vw;
    height: 35vw;
  }
  #slider .thumbnail img {
    object-fit: cover;
    object-position: center;
    width: 50vw;
    height: 100%;
  }
  #slider .thumbnail .ornament {
    width: 100%;
    height: 15.8%;
  }
  #slider .thumbnail .ornament img {
    height: 100%;
    width: 99%;
    object-fit: fill;
  }
  #slider .thumbnail .caption {
    font-size: 35px;
    line-height: 38px;
  }
}

/* Mobile */

@media (max-device-width: 900px) {


  #home .thumbnail {
    position: relative;
    width: 50%;
    height: 50vw;
  }

  #home .row{
    flex-wrap: wrap;
  }
  header{
    flex-wrap: wrap;
  }

  #home .thumbnail img {
    width: 50vw;
  }

  #burger {
    position: fixed !important;
    display: flex;
    width: 29px;
    height: 23px;
    right: 11px;
    top: 8px;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    z-index: 6;
  }

  #burger span{
    width: 100%;
    height: 3px;
    background: black;
    transition: .5s ease;
  }
  #burger .cross:first-child{
    transform:rotate(45deg) translate(7px, 7px);
  }
  #burger .cross:nth-child(2){
    opacity:0
  }
  #burger .cross:last-child{
    transform:rotate(-45deg) translate(7px, -8px)
  }
  #panel{
    z-index: 1;
  }
  #slider .thumbnail .caption,
  #home .thumbnail .caption
  {
    opacity: 1;
    font-size: 4.1vw;
    line-height: 5.3vw;
  }
  #home .thumbnail.interYear .caption{
    top: 0;
    left: 0;
  }
  header .logo{
    width: 100%;
  }
  header .menu {
    width: 100%;
    display: none;
    flex-flow: wrap;
    flex-direction: column-reverse;
    transform: translate(0px, -114px);
    transition: .5s ease;
  }
  header .menu div{
    width: 100%;
  }
  header .menu .menu--option,
  #bugrger,
  header .logo{
    position: relative;
    z-index: 3;
  }

  header .menu.out{
    display: flex;
    transform: none;
  }

  #about, #project {
    flex-wrap: wrap;
    height: auto;
  }

  .bigCol,
  .smallCol{
    width: 100%;
  }

  #about{
    padding: 0 0 11vw 0;
  }

  #about .smallCol p{
    font-size: 3vw;
  }

  #about .bigCol p, #project .bigCol p {
    margin: 10px 20px 10px 10px;
    font-size: 3vw;
    line-height: 4.3vw;
  }

  #project .head .title {
    margin: 14px 0 0 calc(50% + 8px);
    font-size: 3vw;
  }

  #project .head .links{
    font-size: 3vw;
  }
  #project .head .curriculum {
    display: flex;
    font-size: 2.5vw;
  }
  #project .head .curriculum .column .experience .year{
    width: 10.1vw;
  }

}
