@import url("https://fonts.googleapis.com/css2?family=Nanum+Gothic&display=swap");

@font-face {
  font-family: "AppleSDGothicNeoR";
  src: url("../fonts/AppleSDGothicNeoR.ttf");
}

.title {
  text-align: center;
  pointer-events: none;
}

body {
  /* background-color: #f0f0f0; */
  /* background-color: red; */
  /* font-family: "Nanum Gothic", sans-serif; */
  font-family: "AppleSDGothicNeoR";
  width: 100%;
  height: 100%;
  margin: 0;
}

.header {
  position: relative;
  margin-bottom: 30px;
}

#wave {
  width: 100%;
  height: 10vw;
  background-image: url("../img/wavesOpacity.svg");
}

.main-body {
  /* background-color: antiquewhite; */
  padding: 10px;
  justify-items: center;
  max-width: 1024px;
  margin: 0 auto;
  background-color: white;
}

.content {
  /* border: 1px solid gray; */
  width: 75vw;
  /* padding: 15px; */
  margin: 0 auto;
  margin-bottom: 70px;
  border-radius: 20px;
  height: 70vw;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  background-color: white;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
  transition: 0.5s;
}

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

a:hover {
  color: #3c31dd;
  text-decoration: underline;
}

.content .img {
  border-radius: 20px;
  /* border: 1px solid gray; */
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
  position: absolute;
  width: 90%;
  height: 60%;
  top: -30px;
  transition: 0.5s;
  cursor: pointer;
  background-size: cover;
  text-align: center;
  background-position: center;
}

.content:hover .img {
  width: 102%;
  height: 67%;
}

.content:hover {
  transform: scale(105%);
}

.content:hover .preview {
  margin-top: 20%;
}

.content .preview {
  display: flex;
  height: 55%;
  text-align: center;
  padding: 0 30px 10px;
  /* top rightleft bottom */
  transition: 0.5s;
}

@media (min-width: 768px) {
  .main-body {
    display: grid;
    grid-template-columns: 50% 50%;
  }

  .content {
    width: 38vw;
    height: 36vw;
    max-width: 436px;
    max-height: 430px;
  }
}

footer {
  color: black;
  text-align: center;
  width: 100%;
}

footer a {
  color: black;
}

#home {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background-image: url("../img/icons/home.svg");
  background-size: cover;
  border: 0;
  background-color: transparent;
}

#home:hover {
  background-image: url("../img/icons/home_filled.svg");
}

section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 170px;
  padding-top: 100px;
  background: #3c31dd;
  color: white;
}

section h1 {
  font-size: 40px;
  position: fixed;
}

section h3 {
  top: 170px;
  position: fixed;
}

#polygon {
  height: 90%;
  position: absolute;
  top: 0;
  left: 0;
}
#description {
  width: 90vw;
  margin: 0 auto;
  max-width: 1024px;
}

.animateButton {
  background-color: #3c31dd;
  color: white;
  border: 0;
  border-radius: 10px;
  margin-left: 15px;
  width: auto;
  padding: 5px 10px;
  transform: scale(105%);
  transition: 0.3s;
  font-weight: bold;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.animateButton:hover {
  background-color: black;
  color: white;
  transform: scale(100%);
}

.animateButton:active {
  transform: scale(95%);
}

input {
  border-radius: 10px;
  width: 50px;
  height: 20px;
  text-align: right;
  margin-left: 5px;
  margin-right: 3px;
}

canvas {
  border: 2px solid black;
  width: 90vw;
  height: 50.625vw;
  margin: 0 auto;
  display: flex;
  max-width: 1024px;
  max-height: 576px;
  border-radius: 10px;
}

#calculatedText {
  font-weight: bold;
  font-size: 20px;
  height: 20px;
}
