* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Oswald", sans-serif;
  background-color: #171717;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  margin: 4rem 1rem;
}

.title {
  font-size: 5rem;
  line-height: 6.5rem;
  font-weight: bold;
  text-align: center;
  color: #fafafa;
  animation: titleAnimation 0.7s ease forwards;
}

.title:nth-child(2) {
  margin-bottom: 4rem;
}

.deviceContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 4rem;
  box-shadow: 0px 0px 17px 3px rgba(0, 0, 0, 0.15);
  border: 2px solid #fafafa;
  animation: appear 0.5s ease forwards;
}

.deviceBtn {
  color: #fafafa;
  border: none;
  outline: none;
  margin: 0.25rem 2rem;
  cursor: pointer;
}

.btn-active {
  color: #fac400;
}

.clipPathDiv {
  position: relative;
  width: 100%;
  height: 350px;
  border: 2px dashed#fafafaa4;
  border-radius: 0.125rem;
  background-color: transparent;
  margin-bottom: 2rem;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
}

.box {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #fac400;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: boxAnimation 0.7s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.handles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}

.handle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #171717;
  transform: translate(-50%, -50%);
  outline: none;
  cursor: move;
  border: 2px solid #fafafa;
}

.active {
  background-color: #ececec;
  border-color: #171717;
}

.buttonsContainer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 1rem 2rem;
}

.actionBtn {
  padding: 1rem 2rem;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 0.25rem;
  background-color: #fac400;
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 2rem;
  width: 100%;
  animation: appear 0.3s ease forwards;
}

.nodeBtn {
  padding: 0.75rem 1.25rem;
  outline: none;
  cursor: pointer;
  border-radius: 0.25rem;
  color: #fafafa;
  font-size: 1rem;
  font-weight: bold;
  background-color: transparent;
  border: 2px solid #fafafa;
  width: 100%;
  transition: all 0.5s ease;
  animation: appear 0.3s ease forwards;
}

.nodeBtn:hover {
  border-color: #fac400;
  color: #fac400;
}

.nodeBtn:nth-child(2) {
  margin-left: 1rem;
}

@keyframes titleAnimation {
  from {
    opacity: 0;
    clip-path: polygon(0% 0%, 0% 100%, 0% 100%, 0% 0%);
  }
  to {
    opacity: 1;
    clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
  }
}

@keyframes boxAnimation {
  from {
    opacity: 0;
    clip-path: polygon(48.9% 100%, 0% 100%, 100% 100%);
  }
  to {
    opacity: 1;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  }
}

@keyframes appear {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
