.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 30%;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .modal-content {
      width: 80%;
  }
}

@media (min-width: 768px) {
  .modal-content {
      width: 30%;
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.close-button {
  border: none;
  background: none;
  color: #646464;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  border: 1px solid #9e9e9e;
  padding: 5px 10px;
  border-radius: 4px;
}
.close-button:hover {
  color: #666;
  border-color: #666;
}

.payment-button {
  background-color: #49c5ff;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  margin-left:27%;
  padding-right: 35px;
  padding-left: 35px;
  justify-content: center;
  align-items: center;
}
@media screen and (min-width: 768px) and (max-width: 950px) {
  .payment-button {
    margin-left: 12px;
    padding-right: 30px;
    padding-left: 30px;
  }
}
@media screen and (min-width: 280px) and (max-width: 356px) {
  .payment-button {
    margin-left: 10px;
    padding-right: 25px;
    padding-left: 25px;
  }
}
@media screen and (min-width: 200px) and (max-width: 280px) {
  .payment-button {
    margin-left: 8px;
    padding-right: 20px;
    padding-left: 20px;
  }
}
.payment-button:hover {
  background-color: #38bdfa;
}

#pay-button-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hidden {
  display: none;
}

#spinner-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* dull background color */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
  