body {
  padding: 20px;
  color: white;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

#results,
#monthSheetResults {
  margin-top: 30px;
  padding: 30px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  display: none;
  text-align: left;
}

#monthSheetResults {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  max-height: 100vh;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 50px;
  border-radius: 10px;
  text-align: center;
  right: 100px;
  margin-top: -1px;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  justify-content: center;
  margin-top: 30px;
  margin-right: 30px;
}

.form-group label {

  width: 300px;
  text-align: right;
  margin-right: 20px;
}

.form-control {
  text-align: center;
  font-weight: bold;
  flex-grow: 1;
  max-width: 300px;
}

.btn-primary,
.btn-secondary {
  width: 150px;
  display: block;
  margin: 10px auto;
  margin-top: 30px;
}

@keyframes typing {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

.typing-line {
  font-family: monospace;
  overflow: hidden;
  white-space: nowrap;
  margin: 5px 0;
  animation: typing 3s steps(40, end) forwards;
  border-right: 2px solid white;
  color: #fff;
  padding: 2px 0;
  text-align: center;
  display: block;
  width: 0;
  opacity: 0;
}

h2 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin-bottom: 30px;
}

.button-container {
  text-align: center;
  margin-top: 10px;
}

.button-align {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.button-align .btn {
  margin: 0 5px;
}

#results p {
  display: flex;
  justify-content: space-between;
}

#results p strong {
  text-align: right;
  width: 250px;
  margin-right: 10px;
}

#imahansa-bg-5000 {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  z-index: -1;
}

#leftImage {
  width: 300px;
  height: auto;
  margin-left: 200px;
  animation: bounceWave 3s infinite ease-in-out;
}

@keyframes bounceWave {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(2deg);
  }
  50% {
    transform: translateY(0) rotate(-2deg);
  }
  75% {
    transform: translateY(10px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  text-align: center;
  padding: 1px;
  font-size: 12px;
  z-index: 1000;
  letter-spacing: 2px;
}

#phoneLink,
a {
  text-decoration: none;
  color: inherit;
}


@media (min-width: 360px) and (max-width: 767px) {
  body {
    padding: 5px;

  }

  .container {
    padding: 10px;
    max-width: 100%;
    max-height: 100%;
  
  }

  h2 {
    font-size: 20px;
    margin-top: 20px;
  }

  #monthSheetResults {
    width: 100%;
    left: 0;
    padding: 30px;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding-left: 20px;
    padding-right: 20px;
  }

  .typing-line {
    margin: -10px;
  }

  .form-group {
    flex-direction: row;
    align-items: center;
    margin-right: 0;
    justify-content: flex-end;
  }

  .form-group label {
    width: auto;
    text-align: left;
    font-size: 15px;
    margin-bottom: 0;
    margin-right: 20px;
    padding: 1px;
  }

  .form-control {
    max-width: 50%;
    flex-grow: 0;
    text-align: center;
    margin-right: 20px;
    padding: 1px;
  }

  .btn-primary,
  .btn-secondary {
    width: 90%;
  }

  #results {
    font-size: 12px;
    padding: 10px;
  }

  #results p {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    margin: 10px;
  }

  #results p strong {
    width: 100%;
    text-align: left;
    margin-right: 0;
    margin-bottom: 5px;
  }

  #leftImage {
    width: 200px;
    margin-left: 50px;
  }

  #results p span:first-child {
    padding-right: 5px;
  }

  #rateResult {
    width: auto;
    margin-right: -5px;
  }

.button-align .btn {
  font-size: 10px;
  padding: 10px;
  margin-right: 10px; 
  margin-top: -20px;
}
}