/* You will write the CSS rules for your Cookie Clicker game here! */
* {
  margin: 0px;
  /* border: solid 1px black; */
  border-radius: 5px;
}

* button {
  color: inherit;
  border: none;
  padding: 0px;
  font-family: inherit;
  background-color: inherit;
  position: absolute;
  top: 1%;
  right: 1%;
}


#fullWindow {
  background-color: #8AA85B;
  max-height: 100vh;
  height: 100vh;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  padding: 0px;
  position: relative;
  overflow-y: auto;
  touch-action: manipulation;
}

#gamePage {
  flex-grow: 1;
  height: 100vh;
  min-height: 100vh;
  width: 100vw;
  display: grid;
  grid-template-columns: auto 300px;
  grid-template-rows: auto 1fr auto;
}

#gameHeader {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #F4B3A4;
  grid-row: 1;
  grid-column: 1 / 3;
}

#leftHeader {
  margin: 0px;
  padding: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#leftHeader img {
  width: 50px;
  cursor: pointer;
}

#leftHeader img:hover {
  animation-name: shake;
  animation-duration: 0.5s;
  animation-timing-function: linear;
}

#middleHeader {
  color:#526BA8;
  font-size: x-large;
}

#rightHeader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 15px;
  cursor: pointer;
  background-color: #526BA8;
  color: white;
}

#rightHeader:hover {
  animation-name: shake;
  animation-duration: 0.5s;
  animation-timing-function: linear;
}


#clickerScreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  grid-row: 2;
  grid-column: 1;
}

#score {
  background-color: #526BA8;
  color: white;
  padding: 10px;
  font-size: large;
}

#clicker {
  height: 15rem;
  cursor: pointer;
  animation-duration: 0.5s;
  animation-timing-function: linear;
}

#clicker:hover {
  animation-name: shake;
  animation-duration: 0.5s;
  animation-timing-function: linear;
}



#gameFooter {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items:flex-start;
  background-color: #F4B3A4;
  border-radius: 5px;
  padding: 10px;
  grid-row: 3;
  grid-column: 1 / 3;
}

#footerIconParent {
  display: flex;
  gap: 30px;
}

#footerIconParent a {
  display: flex;
  align-content: center;
  position: relative;
  text-decoration: none;
  color: inherit;
}

#footerIconParent a:hover {
  animation-name: shake;
  animation-duration: 0.5s;
  animation-timing-function: linear;
}


.footerIcon {
  width: 40px;
}


#sidebar {
  overflow-y: auto;
  position: relative;
  grid-row: 2;
  grid-column: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-start;
}


#sidebar h1 {
  background-color: #526BA8;
  color: white;
  padding: 20px 0px;
  font-size: medium;
  text-align: center;
}

.sidebarEntry {
  background-color: #526BA8;
  color: white;
  flex-basis: 50px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 5px;
  justify-content: flex-start;
  cursor: default;
}


.producerHidden {
  display: none;
}

.producerCanBuy {
  cursor: pointer;
  padding: 0px;
  border: solid 5px #90ADF5;
  animation-name: shake;
  animation-duration: 0.5s;
  animation-timing-function: linear;
}

@keyframes shake {
  0% {
    transform: rotate(2deg);
  }
  30% {
    transform: rotate(-2deg);
  }
  68% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}


.producerPicture {
  width: 60px;
}

.producerText {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content:space-around;
}

.producerScore {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: xx-large;
  padding: 0px 10px;
}

#aboutPage {
  position: absolute;
  height: 40%;
  width: 40%;
  top: 30%;
  left: 30%;
  z-index: 2;
  background-color: #526BA8;
  color: white;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: solid 3px #F4B3A4;
  box-shadow: 1px 2px 5px 1px black ;
}

#aboutText {
  display: flex;
  flex-direction: column;
  justify-content:flex-start;
  align-items: stretch;
  gap: 10px;
}

#aboutText h1 {
  text-align: center;
}

#aboutAtt {
  font-size: small;
}


#closeAbout {
  cursor: pointer;
}

#closeAbout img {
  display: block;
  width: 20px;
  padding: 0px;
}

@media (max-width: 600px) {
  #gameFooter {
    display: none;
  }

  #gamePage {
    height: 300px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr 300px;
  }
  
  #sidebar {
    grid-row: 3;
    grid-column: 1;
    background-color: #F4B3A4;
  }

  #clicker {
    height: 7rem;
  }


  #middleHeader {
    font-size: medium;
  }

  @keyframes example {
    from {translate: 0px 50vh}
    to {translate: 0px}
  }
}