*{
    margin:0;
    padding: 0;
    font-family: "Press Start 2P", system-ui;
    font-weight: 100;
    font-style: normal;
}

.press-start-2p-regular {
  font-family: "Press Start 2P", system-ui;
  font-weight: 100;
  font-style: normal;
}


html{
    background-image:url('assets/bggrid.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}


body{
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.title{
  padding-top: 50px;
  padding-bottom: 50px;
  color: aliceblue;
  font-size: x-large;
  z-index: 1;

}

.imgs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
  z-index: 0; 
}

.chickwrap {
  position: fixed;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#chickmsg {
  margin-bottom: -7vh;
  transform: translateX(-9vw);
  width: clamp(100px, 15vw, 180px);
}


#chick {
  width: clamp(100px, 15vw, 200px); 
}

#ghost {
  position: absolute;
  top: 0;
  left: -1vw;
  transform: rotate(-20deg);
  width: clamp(100px, 16vw, 200px);
}


.app-container{
  height: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.btntimers{
  
  display: flex;
  justify-content: space-evenly; 
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px; 
  padding-right: 40px;
  
}

.btntimers button{
  flex:1;
  height: 50px;
  padding: 0 20px;
  background: transparent;
  color: aliceblue;
  border: 1px solid aliceblue;
  border-radius: 25px;
  text-align: center;
  transition: 0.3s;
  font-weight: 100;
  font-size: 10px;
  position: relative;
}

.btntimers button:hover{
  transform: scale(1.1);
  cursor: pointer;
}

.circle{
  border: 5px solid aliceblue;
  height: 200px;
  width: 200px;
  border-radius: 50%;
  padding: 40px;
  margin: 40px;
}

.timer-display{
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  color: aliceblue;
  font-size: 40px;
  position: relative;
  text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5); 
}

.timer-display span{
  transition: ease-in-out 0.2s;
}

.message{
  align-self: center;
  font-size: small;
  line-height: 20px;
  text-align: center;
  text-shadow: none;
  margin: 3px;
}

.controls{
  
  display: flex;
  justify-content: space-between; 
  width: 100%;
  max-width: 200px;
  gap: 10px; 
  padding-bottom: 15px;
  
}

.controls button{
  flex: 1;
  height: 40px;
  background: transparent;
  color: aliceblue;
  border: none;
  text-align: center;
  transition: 0.2s;
  font-weight: 500;
  font-size: 30px;
  position: relative;
}

.controls button:hover{
  transform: scale(1.2);
  cursor: pointer;
}

#openModalBtn {
  height: 40px;
  padding: 2vh;
  background: transparent;
  color: aliceblue;
  border: 1px solid aliceblue;
  border-radius: 25px;
  text-align: center;
  transition: 0.2s;
  font-weight: 100;
  font-size: 10px;
  margin-bottom: 2rem;
  z-index: 1;

}
#openModalBtn:hover {
  transform: scale(1.2);
  cursor: pointer;
}
#statsModal {
  display: none;
  position: fixed;
  z-index: 99;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #0b1215;
  border: 2px solid #cacacaa6;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: aliceblue;
  font-size: 16px;
  line-height: 2;
  max-width: 400px;
  box-shadow: 0 0 20px #000;
  animation: popup 0.3s ease-in-out;
}

.modal-content h2{
  font-size: large;
}

@keyframes popup {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
  }

  body {
    font-size: 12px;
    padding-top: 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .app-container {
    width: 100%;
    max-width: 90vw;
    align-items: center;
    justify-content: center;
  }

  .btntimers {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .btntimers button {
    flex: 0 0 auto;
    width: 100px;
    font-size: 9px;
    display: flex;               
    align-items: center;         
    justify-content: center;
  }

  .controls {
    justify-content: center;
    gap: 8px;
    padding-bottom: 5px;
  }

  .controls button {
    font-size: 22px;
  }

  .circle {
    width: 150px;
    height: 150px;
    margin: 10px auto;
  }

  .timer-display {
    font-size: 26px;
  }

  #ghost{
   left: -1vw;
  }

  .message{
  align-self: center;
  font-size: x-small;
  line-height: 2vh;
  text-align: center;
  text-shadow: none;
  margin: 3px;
}

  .title {
    padding: 20px 0;
    font-size: 20px;
    text-align: center;
  }

  .modal-content{
  font-size: 3.2vw;
}
}