@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #000;
}

section {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(#000000af, rgba(0, 255, 0, 0.692), #000000ab);
  animation: animate 2s linear infinite;
}

@keyframes animate {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

section span {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(6.25vw - 2px);
  height: calc(6.25vw - 2px);
  background: #18181898;
  z-index: 2;
  transition: 1.5s;
  overflow: hidden;
  text-align: center;
  padding: 10px;
  word-wrap: break-word;
}

section span:hover {
  background: #0f0;
  transition: 0s;
}

section .signin {
  position: absolute;
  width: 400px;
  background: transparent;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-radius: 4px;
  /* box-shadow: 0 15px 35px rgba(0,0,0,9); */
}

section .signin .content {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 40px;
}

section .signin .content h2 {
  font-size: 2em;
  color: #0f0;
  text-transform: uppercase;
}

section .signin .content .form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

section .signin .content .form .inputBox {
  position: relative;
  width: 100%;
}

section .signin .content .form .inputBox input {
  position: relative;
  width: 100%;
  background: #333;
  border: none;
  outline: none;
  padding: 25px 10px 7.5px;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
  font-size: 1em;
}

section .signin .content .form .inputBox i {
  position: absolute;
  left: 0;
  padding: 15px 10px;
  font-style: normal;
  color: #aaa;
  transition: 0.5s;
  pointer-events: none;
}

.signin .content .form .inputBox input:focus ~ i,
.signin .content .form .inputBox input:valid ~ i {
  transform: translateY(-7.5px);
  font-size: 0.8em;
  color: #fff;
}

.signin .content .form .links {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.signin .content .form .links a {
  color: #fff;
  text-decoration: none;
}

.signin .content .form .links a:nth-child(2) {
  color: #0f0;
  font-weight: 600;
}

.signin .content .form .inputBox input[type="submit"] {
  padding: 10px;
  background: #0f0;
  color: #000;
  font-weight: 600;
  font-size: 1.35em;
  letter-spacing: 0.05em;
  cursor: pointer;
}

input[type="submit"]:active {
  opacity: 0.6;
}

@media (max-width: 900px) {
  section span {
    width: calc(10vw - 2px);
    height: calc(10vw - 2px);
    padding: 5px;
  }

  section .signin {
    width: 80%;
    padding: 30px;
  }

  section .signin .content h2 {
    font-size: 1.5em;
  }

  section .signin .content .form .inputBox input {
    padding: 20px 10px 5px;
    font-size: 0.9em;
  }

  section .signin .content .form .inputBox i {
    padding: 10px;
  }
}

@media (max-width: 600px) {
  section span {
    width: calc(20vw - 2px);
    height: calc(20vw - 2px);
    padding: 5px;
  }

  section .signin {
    width: 90%;
    padding: 20px;
  }

  section .signin .content h2 {
    font-size: 1.2em;
  }

  section .signin .content .form .inputBox input {
    padding: 15px 10px 5px;
    font-size: 0.8em;
  }

  section .signin .content .form .inputBox i {
    padding: 8px;
  }
}



.scene {
    width: 450px;
    height: 450px;
    border: 1px solid rgb(26, 153, 0);
    margin: 1em;
    perspective: 500px;
}

.cube {
    width: 450px;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-100px);
    transition: transform 1s;
}

.cube.show-front {
    transform: translateZ(-100px) rotateY(0deg);
}

.cube.show-right {
    transform: translateZ(-100px) rotateY(-90deg);
}

.cube.show-back {
    transform: translateZ(-100px) rotateY(-180deg);
}

.cube.show-left {
    transform: translateZ(-100px) rotateY(90deg);
}

.cube.show-top {
    transform: translateZ(-100px) rotateX(-90deg);
}

.cube.show-bottom {
    transform: translateZ(-100px) rotateX(90deg);
}

.cube__face {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgb(20, 238, 0);
    line-height: 200px;
    opacity: 0.5;
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-align: center;
}

.cube__face--front {
    background: hsla(0, 100%, 50%, 0.7);
}

.cube__face--right {
    background: hsla(60, 100%, 50%, 0.7);
}

.cube__face--back {
    background: hsla(120, 100%, 50%, 0.7);
}

.cube__face--left {
    background: hsla(180, 100%, 50%, 0.7);
}

.cube__face--top {
    background: hsla(240, 100%, 50%, 0.7);
}

.cube__face--bottom {
    background: hsla(300, 100%, 50%, 0.7);
}

.cube__face--front {
    transform: rotateY(0deg) translateZ(100px);
}

.cube__face--right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube__face--back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube__face--left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube__face--top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube__face--bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.turkish-flag{
  background:url('./img/flag-of-turkey.png');
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center;
}

.turkish-flag:hover{
  background:url('./img/flag-of-turkey.png');
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center;
  filter:grayscale(0);
  transition:1s;
  animation:1s turkish-flag;
}

@keyframes turkish-flag{
  0%{
    transform:scale(1);
  }
  100%{
    transform:scale(1.1);
  }
}