@font-face {
    font-family: "icons";
    src: url("../fonts/icon.woff") format("woff");
    font-display: swap;
}

.icon {
    display: inline-block;
    font-family: "icons";
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

.icon::before {
    display: inline-block;
    line-height: 1;
}


.icon-right::before {
    content: "\e900";
}

.icon-left::before {
    content: "\e901";
}
.menu-arrow::before {
    content: "\e902";
}


body {
  margin: 0;
  display: flex;
  font-family: Kanit;
}

a {
  color: rgb(74, 74, 74);
  text-decoration: none;
  word-wrap: break-word;
  transition: all 0.5s;
}
a:hover {
  color: black;
}

button:hover {
  cursor: pointer;
}

h1 {
  color: hsl(0, 0%, 0%);
}

p, h2, h1, h3, h4 {
  margin: 0;
}

#left_menu {
  color: hsl(0, 0%, 100%);
  background-color: rgba(255, 255, 255, 0.7490196078);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  height: 90vh;
  padding-top: 10vh;
  padding-right: 50px;
  z-index: 1;
  border-right: 2px hsl(0, 0%, 0%) solid;
  margin-right: 20px;
}
#left_menu img {
  width: 200px;
  height: 200px;
  border-radius: 0 10px 10px 0;
}
#left_menu ul {
  padding: 0;
  width: -moz-min-content;
  width: min-content;
}
#left_menu ul li {
  margin-bottom: 10px;
  background-color: hsl(0, 0%, 0%);
  width: -moz-min-content;
  width: min-content;
  border-radius: 0 5px 5px 0;
}
#left_menu ul li .menu_item {
  color: hsl(0, 0%, 100%);
  display: block;
  padding: 5px;
  text-decoration: none;
  padding-right: 10px;
  transition: all 0.5s ease-in-out;
}
#left_menu ul li .menu_item:hover, #left_menu ul li .menu_item.active {
  padding-left: 25px;
}
#left_menu ul:hover .menu_item:not(:hover) {
  padding-left: 5px;
}
#left_menu #open_menu {
  display: none;
}
@media (max-width: 560px) {
  #left_menu {
    position: fixed;
    left: -155px;
    padding-right: 25px;
    transition: left 1s;
  }
  #left_menu img {
    width: 150px;
    height: 150px;
  }
  #left_menu #open_menu {
    display: block;
    background-color: hsl(0, 0%, 0%);
    position: absolute;
    right: -10px;
    font-size: 30px;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 0 20% 20% 0;
    padding: 5px;
    transition: all 0.5s;
  }
  #left_menu #open_menu.active {
    transform: rotate(1.5turn) translate(0, 50%);
  }
  #left_menu.active {
    left: 0;
  }
}
@media (max-width: 330px) {
  #left_menu {
    transition: left 1s;
  }
  #left_menu:not(.active) {
    border: none;
  }
}

main {
  overflow-y: scroll;
  height: 90vh;
  padding-top: 10vh;
  flex: 1;
}
@media (max-width: 560px) {
  main {
    overflow-y: auto;
  }
}

.about {
  padding: 0 50px;
  padding-bottom: 20px;
}
.about header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px hsl(0, 0%, 0%) solid;
  padding: 10px 0;
}
.about header p {
  margin-bottom: 5px;
}
.about header .data p {
  font-size: 20px;
}
.about header .block_data .list_skill {
  margin: 10px 0;
  padding: 0;
}
.about header .block_data .list_skill li {
  display: inline-block;
  background-color: hsl(0, 0%, 0%);
  padding: 5px;
  margin: 5px;
  color: hsl(0, 0%, 100%);
}
.about header .block_data .list_skill li:first-child{
    margin-left: 0;
}
@media (max-width: 800px) {
  .about header {
    flex-direction: column;
    gap: 20px;
  }
}
.about article {
  margin-top: 25px;
}
.about article p {
  margin: 0 25px;
  margin-right: 50px;
}
@media (max-width: 330px) {
  .about article p {
    margin: 10px;
  }
}
.about article a {
  font-weight: bold;
}
@media (max-width: 330px) {
  .about {
    padding: 0 30px;
  }
}

.area_type {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  padding: 50px;
  padding-top: 0;
  gap: 50px;
}
.area_type header {
  grid-column: 1/5;
  justify-self: start;
}
.area_type header h2 {
  font-size: 30px;
}
@media (max-width: 1470px) {
  .area_type header {
    grid-column: 1/4;
  }
}
@media (max-width: 1190px) {
  .area_type header {
    grid-column: 1/3;
  }
}
@media (max-width: 910px) {
  .area_type header {
    grid-column: 1/1;
  }
}
.area_type .block {
  position: relative;
  width: 250px;
  background-color: hsl(0, 0%, 0%);
  box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.4);
}
.area_type .block .container img {
  width: 100%;
  background-color: hsl(0, 0%, 100%);
}
.area_type .block .container article {
  padding: 20px;
  color: hsl(0, 0%, 100%);
}
.area_type .block .container article header {
  font-weight: bold;
  font-size: 25px;
}
.area_type .block .container article p {
  margin: 2px 10px;
  color: hsl(0, 0%, 95%);
}
.area_type .block .blur {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  position: absolute;
  top: 0;
  transition: all 0.4s ease-in-out;
  height: 0;
  width: 100%;
  color: transparent;
  font-size: 25px;
  overflow: hidden;
}
.area_type .block .blur article header {
  font-weight: bold;
}
.area_type .block .blur article p {
  font-size: 15px;
  margin: 2px 10px;
  color: hsl(0, 0%, 95%);
}
.area_type .block .container:hover + .blur, .area_type .block .blur:hover {
  width: 100%;
  height: 100%;
  color: hsl(0, 0%, 100%);
}
@media (max-width: 300px) {
  .area_type .block {
    width: 90%;
  }
}
@media (max-width: 1470px) {
  .area_type {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1190px) {
  .area_type {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 910px) {
  .area_type {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 330px) {
  .area_type {
    padding: 20px;
  }
}

.project {
  padding: 0 50px;
}
.project header {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}
.project header #gallery {
  position: relative;
  display: grid;
  align-items: center;
  flex: 4;
  max-width: 1800px;
  box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.4);
  border-radius: 5px;
  overflow: hidden;
}
.project header #gallery img {
  grid-column: 1/3;
  transition: all 2.5s;
  opacity: 0;
  width: 100%;
  height: 0;
}
.project header #gallery img.active {
  width: 100%;
  height: auto;
  opacity: 1;
}
@media (max-width: 900px) {
  .project header #gallery img.active {
    grid-column: 1/3;
  }
}
.project header #gallery button {
  position: absolute;
  color: hsl(0, 0%, 0%);
  background-color: transparent;
  border: none;
  margin: 5px;
  font-size: 40px;
  transition: all 0.5s ease-in-out;
}
.project header #gallery button:hover {
  color: gray;
}
@media (max-width: 900px) {
  .project header #gallery button {
    position: static;
    margin: 0;
    padding: 5px;
    background-color: hsl(0, 0%, 0%);
    color: #e6e6e6;
    border: 1px hsl(0, 0%, 0%) solid;
  }
  .project header #gallery button:hover {
    background-color: gray;
    color: hsl(0, 0%, 100%);
  }
}
.project header #gallery #pre {
  left: 0;
  text-align: left;
}
.project header #gallery #next {
  right: 0;
  text-align: right;
}
.project header .block_data {
  flex: 50px;
}
.project header .block_data .list_skill {
  margin: 10px;
  margin-left: 0;
  padding: 0;
  text-transform: uppercase;
}
.project header .block_data .list_skill li {
  display: inline-block;
  background-color: hsl(0, 0%, 0%);
  padding: 5px;
  margin: 5px;
  color: hsl(0, 0%, 100%);
}

.project header .block_data .list_skill li:first-child {
    margin-left: 0;
}

@media (max-width: 900px) {
  .project header {
    flex-direction: column;
    gap: 0;
  }
}
.project .description {
  margin: 20px 0;
}
.project .description header {
  font-size: 25px;
  margin-bottom: 5px;
  font-weight: bold;
}
.project .description p {
  font-size: 15px;
  margin-left: 10px;
}
.project aside {
  text-align: right;
  margin-bottom: 20px;
}
.project aside a {
  background-color: hsl(0, 0%, 0%);
  padding: 10px 20px;
  color: hsl(0, 0%, 100%);
  transition: all 1s;
}
.project aside a:hover {
  background-color: gray;
}
@media (max-width: 330px) {
  .project {
    padding: 25px;
  }
}

.contact {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 0 30px;
}
.contact form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.contact form input {
  border: none;
  border-bottom: rgba(0, 0, 0, 0.5) 2px solid;
  outline: 0;
  color: rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease-in-out;
}
.contact form input:focus, .contact form input:hover {
  color: hsl(0, 0%, 0%);
  border-bottom: hsl(0, 0%, 0%) 2px solid;
}
.contact form input:focus::-moz-placeholder, .contact form input:hover::-moz-placeholder {
  color: hsl(0, 0%, 0%);
}
.contact form input:focus::placeholder, .contact form input:hover::placeholder {
  color: hsl(0, 0%, 0%);
}
.contact form input[type=email], .contact form textarea {
  grid-column: 1/3;
}
.contact form textarea {
  resize: none;
  height: 250px;
  color: rgba(0, 0, 0, 0.5);
  padding: 7px;
  border: rgba(0, 0, 0, 0.5) 2px solid;
  outline: 0;
  transition: all 0.5s ease-in-out;
}
.contact form textarea:focus, .contact form textarea:hover {
  border: hsl(0, 0%, 0%) 3px solid;
  color: hsl(0, 0%, 0%);
}
.contact form textarea:focus::-moz-placeholder, .contact form textarea:hover::-moz-placeholder {
  color: hsl(0, 0%, 0%);
}
.contact form textarea:focus::placeholder, .contact form textarea:hover::placeholder {
  color: hsl(0, 0%, 0%);
}
.contact form * {
  padding: 4px;
}
.contact form button {
  padding: 5px;
  grid-column: 2/3;
  border: hsl(0, 0%, 0%) 2px solid;
  background-color: hsl(0, 0%, 0%);
  color: hsl(0, 0%, 100%);
  transition: all 0.5s ease-in-out;
}
.contact form button:hover {
  background-color: gray;
}
@media (max-width: 720px) {
  .contact form {
    width: 100%;
    max-width: 400px;
    padding-left: 20px;
  }
  .contact form * {
    grid-column: 1/3;
  }
}
         
