@import url("https://fonts.googleapis.com/css2?family=M+PLUS+2&display=swap");
html {
  overflow: hidden;
  min-height: -webkit-fill-available;
  min-height: 100vh;
}

body {
  background-color: #393f4c;
  height: 100vh;
  margin: 0;
  min-height: -webkit-fill-available;
  min-height: 100vh;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 100vw;
}

header,
footer {
  background-color: #302833;
  box-sizing: border-box;
  height: 5vh;
  padding: 0 5vw;
  position: relative;
  width: 100vw;
  z-index: 500;
}

.icon-link {
  color: #f8f4e6;
  transition: 0.3s ease-out;
}
.icon-link:hover {
  color: #ba2636;
  transition: 0.2s ease-out;
}

/******************/
/*   Scrollbar    */
/******************/
::-webkit-scrollbar {
  width: 10px;
  background-color: #f8f4e6;
}

::-webkit-scrollbar-track {
  background-color: #f8f4e6;
}

::-webkit-scrollbar-thumb {
  background-color: #ba2636;
  border-radius: 2px;
}

/******************/
/*      Font      */
/******************/
h1,
h2,
h3,
p {
  color: #f8f4e6;
  font-family: "M PLUS 2", sans-serif;
  margin: 0;
}

i {
  font-size: 25px;
  margin: 0 4px;
}

.right {
  text-align: right;
}

/******************/
/*     Header     */
/******************/
header {
  border-bottom: 1px solid #f8f4e6;
}
header p {
  position: absolute;
  bottom: 0;
}
header .status {
  right: 5vw;
}

/******************/
/*      Main      */
/******************/
main {
  align-items: center;
  display: flex;
  height: 90vh;
  overflow: hidden;
  position: relative;
  width: 100vw;
}
@media screen and (max-width: 576px) {
  main {
    box-sizing: border-box;
    justify-content: center;
  }
}

.handling-area {
  height: 100%;
  width: 100%;
}

.card {
  background-color: #302833;
  border: 1px solid #f8f4e6;
  border-radius: 5px;
  box-shadow: 0 0 2px #00184d;
  margin: 16px;
  padding: 32px;
  position: absolute;
  width: 45vw;
  z-index: 100;
}
.card:nth-child(odd) {
  right: 0;
  z-index: 50;
}
@media screen and (max-width: 576px) {
  .card {
    margin: 8px;
    width: 72vw;
  }
  .card:nth-child(odd) {
    right: auto;
  }
}

.profile {
  max-width: 600px;
}

.introduction {
  display: grid;
  gap: 16px;
  grid-template-columns: 150px 1fr;
  align-items: center;
}

.icon {
  border-radius: 100%;
  width: 150px;
  height: 150px;
  margin: 0;
}
.icon img {
  border-radius: 100%;
  width: 100%;
  height: 100%;
}

.research {
  max-height: 75vh;
  overflow-y: scroll;
}
.research hr {
  margin: 32px 0;
}

.paper a {
  text-decoration: none;
}
.paper a:hover .title {
  color: #ba2636;
  transition: 0.2s ease-out;
}
.paper .title {
  margin-top: 32px;
}

.projects {
  max-height: 75vh;
  overflow-y: scroll;
}
.projects h2 {
  padding-top: 20px;
}
.projects h2 a {
  margin-right: 8px;
}
.projects h2 a:first-child {
  margin-left: 16px;
}
.projects p {
  text-align: center;
}
.projects figure {
  border: 2px solid #f8f4e6;
  border-radius: 2px;
  font-size: 0;
  margin: 16px 0;
}
.projects figure img {
  width: 100%;
}
.projects .core-technology {
  line-height: 25px;
  margin-bottom: 16px;
  position: relative;
}
.projects .core-technology h3 {
  display: inline;
  margin-right: 16px;
}
.projects .core-technology img {
  bottom: 0;
  position: absolute;
}

.dead-end {
  background-color: #ba2636;
  border-top: solid 10px #f8f4e6;
  border-bottom: solid 10px #f8f4e6;
  position: absolute;
  right: 50vw;
  transform: translate(50%);
  width: 50vw;
}
@media screen and (max-width: 576px) {
  .dead-end {
    width: 100vw;
  }
}
.dead-end h1 {
  padding-top: 5vh;
  text-align: center;
}
.dead-end p {
  padding-bottom: 5vh;
  padding-top: 1vh;
  text-align: center;
}

/******************/
/*     Fotter     */
/******************/
footer {
  display: grid;
  align-items: end;
  justify-items: end;
  border-top: 1px solid #f8f4e6;
}
footer p {
  margin: 8px 0;
}
