@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

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

body {
  font-family: 'Fredoka One', cursive;
  background: linear-gradient(135deg, #f0d9b8 0%, #f1a68d 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  width: 80vw;
  height: 90vh;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  border: 8px solid #f84b2d;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.timer {
  position: absolute;
  top: 15px;
  left: 20px;
  border: 3px solid #ffcc00;
  background-color: #f6e2a4;
  font-size: 40px;
  padding: 8px 16px;
  color: #f1420d;
  border-radius: 12px;
  box-shadow: 2px 2px 0 #d48600;
}

.score {
  position: absolute;
  bottom: 15px;
  right: 20px;
  border: 3px solid #4caf50;
  background-color: #d0f0c0;
  font-size: 36px;
  color: #2e7d32;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #2e7d32;
}

.btnContainer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.btn {
  padding: 14px 30px;
  background-color: #00a4ba;
  color: rgb(4, 27, 118);
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #016273;
  cursor: pointer;
  transition: transform 0.2s;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.btn:hover {
  transform: scale(1.1);
}

.box {
  width: 150px;
  height: 150px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btnContainer {
  display: flex;
  flex-direction: row;
}

#apple {
  width: 150px;
  height: 150px;
  z-index: 1;
}

#appleName {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 50px;
  font-weight: bold;
  text-shadow: 3px 3px 0 #000;
  z-index: 2;
  pointer-events: none;
}

#mobileInput {
  position: absolute;
  opacity: 0;
  height: 1px;
  width: 1px;
  border: none;
  z-index: -1;
}

@keyframes strikeEffect {
  0% {
    text-decoration: none;
  }

  50% {
    text-decoration: line-through;
    scale: 1.1;
  }

  100% {
    text-decoration: line-through;
  }
}

.strike {
  animation: strikeEffect 0.3s ease-in-out;
}

@media (orientation: portrait) {
  .container {
    height: 50vh;
    min-width: 360px;
    /* transform: scale(0.9);
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -o-transform: scale(0.9); */
}

  #score {
    right: 0;
    bottom: 0;
    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -o-transform: scale(0.5);
  }

  #timer {
    left: 0;
    top: 0;
    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -o-transform: scale(0.5);
  }

  #start {
    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -o-transform: scale(0.5);
}

  #reset {
    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -o-transform: scale(0.5);
}

  #apple {
    transform: scale(0.8);
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
}

  body {
    align-items: flex-start;
    padding-top: 20px;
  }
}