html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: Procrastinating Pixie;
  src: url(/ProcrastinatingPixie-WyVOO.ttf);
}
body {
  background-image: url("/Home%20Images/background.jpg");
  background-color: #000;
  background-attachment: fixed;
  background-repeat: no-repeat;
  margin-right: 0;
  font-size: 1rem;
  margin-left: 0;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  color: #fff;
  font-family: "Kanit", sans-serif;
}
.divider {
  background-color: white;
  width: 100%;
  height: 0.1rem;
}

h3 {
  font-family: "Procrastinating Pixie", sans-serif;
}

.introtext b {
  font-family: "Procrastinating Pixie", sans-serif;
}

a {
  color: cyan;
  text-decoration: none;
}

.arrow {
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  width: 5rem;
}
.arrow1 {
  position: absolute;
  background-color: white;
  width: 3rem;
  bottom: 7rem;
  height: 0.5rem;
  border-radius: 10px;
  transform: rotate(45deg);
}
.arrow2 {
  position: absolute;
  background-color: white;
  width: 3rem;
  bottom: 7rem;
  height: 0.5rem;
  margin-left: 1.75rem;
  border-radius: 10px;
  transform: rotate(-45deg);
}
mark {
  color: black;
  background-color: cyan;
  border-radius: 20px;
  padding-right: 5px;
  padding-left: 5px;
}
#container1 {
  width: 100%;
  height: 100vh;
  max-height: 100%;
  background-color: #151e30;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 2vw;
  display: block;
  overflow: scroll;
}

.right2 {
  float: right;
  margin-right: 2rem;
  margin-top: -4rem;
}

h2 a {
  color: white;
  text-decoration: none;
}
h1 a {
  color: white;
  text-decoration: none;
}

#submitbutton {
  height: 3rem;
  width: fit-content;
  border: 0.1rem solid white;
  position: relative;
  color: white;
  margin-top: 1rem;
  font-family: "Kanit", sans-serif;
  font-weight: bold;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 20px;
  background-color: transparent;
}
#submitbutton:hover {
  background-color: cyan;
  color: black;
  border: 2px solid cyan;
}

#name {
  border-radius: 10px;
  color: white;
  height: 2rem;
  width: 100%;
  border: 0.1rem solid white;
  background-color: rgba(0, 0, 0, 0);
  font-family: "Kanit", sans-serif;
}
#email {
  border-radius: 10px;
  color: white;
  height: 2rem;
  width: 100%;
  border: 0.1rem solid white;
  background-color: rgba(0, 0, 0, 0);
  font-family: "Kanit", sans-serif;
}
#subject {
  border-radius: 10px;
  color: white;
  height: 8rem;
  width: 100%;
  border: 0.1rem solid white;
  background-color: rgba(0, 0, 0, 0);
  font-family: "Kanit", sans-serif;
}
h1 {
  margin-right: 70%;
  font-family: "Procrastinating Pixie", sans-serif;
}
#scrollable {
  height: 50vh;
  margin-top: 100%;
  width: 200px;
  background-color: transparent;
}
.column1 {
  background-color: rgba(0, 0, 0, 0.5);
  float: left;
  border: 0.1rem solid white;
  width: 50%;
  flex: 1;
  padding: 2vw;
  border-left: 0.1rem solid white;
  border-right: 0.05rem solid white;
  border-bottom: 0.1rem solid white;
  border-top: 0.1rem solid white;
  overflow: scroll;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.introtext {
  padding: 2vw;
}
.column2 {
  background-color: rgba(0, 0, 0, 0.5);
  float: right;
  flex: 1;

  border-right: 0.1rem solid white;
  border-left: 0.05rem solid white;
  border-bottom: 0.1rem solid white;
  border-top: 0.1rem solid white;

  width: 50%;
  overflow: scroll;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
#intro-block {
  height: fit-content;
  width: 100%;
  max-width: 100%;
  display: none;
  flex-direction: row;
  position: relative;
  margin-bottom: 10rem;
}
h4 {
  font-size: 3rem;
  padding: 10px;
  position: absolute;
  top: 50%;
  font-family: "Procrastinating Pixie", sans-serif;

  left: 50%;
  transform: translate(-50%, -50%);
}
.square {
  text-align: center;
  border: 0.05rem solid white;
  color: rgba(0, 0, 0, 0);
  display: flex;
  height: 11em;
  background-position: center;
  justify-content: center;
  align-items: center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
.projecth3 {
  color: rgba(0, 0, 0, 0);
  height: 11rem;
  width: 33vw;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.projecth3:hover {
  color: black;
}
.square:hover {
  color: black;
  background-color: cyan;
  border: 0.05rem solid cyan;
  background-image: none;
}

#p1 {
  background-image: url("/Home%20Images/ml.jpg");
}
#p1:hover {
  background-image: none;
}

#p2 {
  background-image: url("/Home%20Images/sunrise.png");
}
#p2:hover {
  background-image: none;
}
#p3 {
  background-image: url("/Home%20Images/portfolio.png");
}
#p3:hover {
  background-image: none;
}
#p4 {
  background-image: url("/Home%20Images/drumm.png");
}
#p4:hover {
  background-image: none;
}

#p5 {
  background-image: url("/Home%20Images/airr.png");
}
#p5:hover {
  background-image: none;
}

#p6 {
  background-image: url("/Home%20Images/yap.png");
}
#p6:hover {
  background-image: none;
}
#projects {
  display: none;
  font-family: "Procrastinating Pixie", sans-serif;
  grid-template-columns: 33.3333% 33.3333% 33.3333%;
  grid-template-rows: 11em 11em 11em;
  margin-bottom: 10rem;
  margin-top: 15rem;
  border: 0.05rem solid white;
}

form {
  margin: auto;
  width: 45vw;
  text-align: center;
}
h2 {
  font-family: "Procrastinating Pixie", sans-serif;
  text-align: center;
  font-size: 1.5rem;
}

#projects h2 {
  margin: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border: 0.05rem solid white;
  grid-column-start: 1;
  grid-column-end: span 3;
  grid-row-start: 2;
  grid-row-end: span 1;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
}
@media only screen and (orientation: portrait) {
  .introtext {
    font-size: 2rem;
  }
  #contact {
    margin-top: 2rem;
  }

  #projects {
    grid-template-columns: 100%;
    grid-template-rows: 11em 11em 11em 11em 11em 11em 11em;
  }

  #projects h2 {
    grid-column-start: 1;
    grid-column-end: span 1;
    grid-row-start: 4;
    grid-row-end: span 1;
  }

  .column1 {
    float: none;
    border-top: 0.1rem solid white;
    border-right: 0.1rem solid white;
    border-left: 0.1rem solid white;
    border-bottom: 0.05rem solid white;

    width: 100%;
    flex: none;
    height: fit-content;
  }

  #projects h2 {
    font-size: 3rem;
  }
  #projects h3 {
    font-size: 2rem;
  }
  .column2 {
    float: none;
    flex: none;

    border-bottom: 0.1rem solid white;
    border-right: 0.1rem solid white;
    border-left: 0.1rem solid white;
    border-top: 0.05rem solid white;
    width: 100%;
  }
  #intro-block {
    height: fit-content;
    width: 100%;
    flex-direction: column;

    max-width: 100%;
  }

  .arrow {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    width: 10rem;
  }
  .arrow1 {
    position: absolute;
    background-color: white;
    width: 6rem;
    bottom: 7rem;
    height: 1rem;
    border-radius: 10px;
    transform: rotate(45deg);
  }
  .arrow2 {
    position: absolute;
    background-color: white;
    width: 6rem;
    bottom: 7rem;
    height: 1rem;
    margin-left: 3.5rem;
    border-radius: 10px;
    transform: rotate(-45deg);
  }
}
