:root {
  --tempBorder: solid red;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 600px;

  height: 600px;
  background-color: azure;
  border-radius: 5%;
  margin-bottom: 30px;
}

.namer {
  margin-top: 20px;
  margin-bottom: 15%;
  font-size: large;
}

.banner {
  text-align: center;
  font-size: 60px;
  color: white;
  width: 100%;
  padding: 40px;
  padding-bottom: 90px;
}

body {
  display: flex;
  align-items: center;

  flex-direction: column;
  z-index: 1;
}

::-webkit-scrollbar {
  width: 0px;
}

html {
  overflow: auto;
  overflow-x: hidden;
}

/* Hide scrollbar for chrome */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* adds sticky bg */
.background {
  z-index: -1;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  background: linear-gradient(rgba(153, 1, 172, 1), rgba(0, 212, 255, 1));
}

.buttonspace {
  display: flex;
  position: relative;
  width: 200px;
  height: 200px;
}

#menubutton {
  width: 200px;
  height: 200px;
  position: absolute;

  top: 0px;
  left: 0px;
  opacity: 0;
  /*
    hidden maakes it unclickable opacity 0 enusres clickability
    visibility: hidden;
    */
}

.menubuttonlabel {
  margin: 10px;
  width: 200px;
  height: 160px;
  position: absolute;
  top: 0px;
  left: 0px;

  display: block;

  cursor: pointer;

  transition: all 0.3s;
  border-top: solid red 5px;
  border-bottom: solid red 5px;
  justify-content: center;
}

#menubutton:checked + .menubuttonlabel {
  height: 0px;
  top: 80px;
  transform: rotate(45deg);
}

.menubuttonlabel::after {
  /* content olmadan göremezsin */
  content: "";
  height: 5px;
  width: 160px;
  position: absolute;
  display: block;
  background-color: red;
  top: 80px;
  left: 20px;
  transition: all 0.5s;
}

#menubutton:checked + .menubuttonlabel::after {
  transform: rotate(90deg);
  top: 0px;
  left: 0px;
  width: 200px;
  height: 10px;
}
/* Pyramidddddddd*/
.pyraContain {
  display: flex;
  flex-direction: column;
  height: 300px;
  width: 300px;
  transition: all 1.2s;

  position: relative; /* allows childs be a relative to this parent*/
}
.pyraContain:hover {
  box-shadow: 0px 0px 10px 10px rgb(167, 1, 1);
}

.pyraBase {
  height: 60px;
  width: 140px;
  background-color: brown;
  clip-path: polygon(0 100%, 100% 100%, 75% 0, 25% 0);
  /* it gives x y points   (50% 0%): Top vertex of the diamond, 
    positioned at 50% of the width and 0% of the height of the clipping box. */
  z-index: 3;
  position: absolute;
  bottom: 20px;
  right: 30px;
  border-top: 1px brown solid;
}
.pyraTop {
  width: 72px;
  height: 60px;
  background-color: brown;
  z-index: 3;
  position: absolute;
  bottom: 80px;
  right: 64px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.pyraEye {
  background: white;
  z-index: 1;
  position: absolute;
  bottom: 40px;
  right: 70px;
  width: 60px;
  height: 30px;
  border-radius: 50% / 50%;
  overflow: hidden; /* to hide pupil made with after element*/
}
.pyraEye::after {
  display: inline-block; /* to show after*/
  content: ""; /* to show after*/
  background-color: black;
  width: 10px;
  height: 10px;
  transform: translate(45px, 5px);
  border-radius: 50%;
}

.sun {
  position: absolute;
  height: 30px;
  width: 30px;
  border-right: 20px solid yellow;
  border-bottom: 20px solid yellow;
  background-color: white;
  border-bottom-right-radius: 100%;
}
.sky {
  height: 250px;
  width: 300px;
  background-color: skyblue;
}
.sands {
  height: 50px;
  width: 300px;
  background-color: sandybrown;
}

.pyraContain > * {
  transition: all 1s; /* Apply a 1.2-second transition to all children */
}

.pyraContain:hover .sun {
  height: 0px;
  width: 0px;
  border-right: 0px solid yellow;
  border-bottom: 0px solid yellow;
}
.pyraContain:hover .sky {
  background-color: rgb(25, 71, 90);
}

.pyraContain:hover .pyraTop {
  bottom: 120px;
}
.pyraContain:hover .pyraEye {
  bottom: 85px;
  box-shadow: 0px 0px 55px 25px rgba(171, 255, 45, 0.9);
}

.pyraContain:hover .pyraEye::after {
  animation: eyeLeftRight 5s ease-in-out infinite alternate;
}

@keyframes eyeLeftRight {
  from {
    transform: translate(45px, 5px); /* Initial scale */
  }
  to {
    transform: translate(5px, 5px); /* Final scale */
  }
}
