* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", Helvetica, sans-serif;
  background-color: #1f2937;
}

main {
  flex: 1;
  max-width: 100%;
  padding: 0 15px;
}


header, .score-message-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(40, 88%, 68%);
  background-color: #2b313b;
  max-width: 900px;
  margin: 20px auto;
  border-radius: 15px;
  padding: 20px;
  border: #787a7f 1px solid;
  border-radius: 15px;
  box-shadow: rgb(28, 27, 28) 6px 6px 3px 3px;

}

.score-message-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  
}

.btn,
.reset-btn {
  width: 100px;
  height: 100px;
  background-color: #2b313b;
  border: #787a7f 1px solid;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: rgb(28, 27, 28) 6px 6px 3px 3px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, background-color 0.2s;
}

.btn:active,
.reset-btn:active {
  transform: translateY(3px) scale(0.95) !important;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  transition: transform 0s;
  background-color: #1f242d !important;
}


.reset-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.reset-btn {
  width: 250px;
  padding: 15px;
  font-size: 25px;
  color: #e5e7eb;;
}

.sign {
  font-size: 60px;
}

.score-info,
.score-message {
  color: #e5e7eb;
}

.score {
  color: #e5e7eb;
  font-weight: bold;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.score-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 400px;
  margin: 40px auto;
  padding: 10px;
  text-align: center;
}

.score-box {
  width: 150px;

}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  font-size: 20px;
  color: #e5e7eb;
}

footer a {
  color: #3882f6;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-bottom: 0;
}

footer a:hover {
  color: #21a1f1;
  text-decoration: underline;
}


@media (hover: hover) and (pointer: fine) {
  .btn, .reset-btn {
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  }
  .btn:hover,
  .reset-btn:hover {
    background-color: #353d4a;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
  }
}


@media (max-width: 768px) {
  
  body {
    padding: 5px;
  }
  
  main {
    padding: 0 10px;
  }
  
  
  header, .score-message-box {
    margin: 10px 15px;
    padding: 15px 10px;
    max-width: 100%;
  }
  
  header {
    margin-bottom: 50px;
  }
  .title {
    font-size: 28px;
    margin: 0;
  }
  
  .score-message-box {
    margin: 20px 15px; 
  }
  
  .score-info {
    font-size: 18px;
    margin: 5px 0;
  }
  
  .score-message {
    font-size: 16px;
    margin: 5px 0;
  }
  
  
  .score-container {
    margin: 30px auto; 
    gap: 30px;
    max-width: 100%;
  }
  
  .score-box {
    width: 120px;
  }
  
  .sign {
    font-size: 50px; 
  }
  
  .score {
    font-size: 18px;
    margin: 5px 0;
  }
  
  
  .buttons {
    gap: 15px;
    margin: 20px 0;
  }
  
  .btn {
    width: 85px;
    height: 85px;
  }
  
  .btn .sign {
    font-size: 45px;
  }
  
 
  .reset-container {
    margin-top: 20px;
  }
  
  .reset-btn {
    width: 200px;
    padding: 12px;
    font-size: 16px;
  }
  
  
  footer {
    font-size: 14px;
    padding: 10px 5px;
  }
}


@media (max-width: 400px) {
  
  .title {
    font-size: 24px;
  }
  
  .score-message-box {
    margin: 15px 10px;
    padding: 10px;
  }
  
  .score-info {
    font-size: 16px;
  }
  
  .score-message {
    font-size: 14px;
  }
  
  .score-container {
    margin: 20px auto;
  }
  
  .btn {
    width: 75px;
    height: 75px;
  }
  
  .btn .sign {
    font-size: 40px;
  }
  
  .sign {
    font-size: 40px;
  }
  
  .score {
    font-size: 16px;
  }
  
  .reset-btn{
    font-size: 16px;
    width: 150px;
  }

  footer {
    font-size: 12px;
  }
}