body {
  text-align:center;
  font-family:"Rubik";
  -webkit-font-smoothing: antialiased;
  justify-content: center;
  align-content: center;
  align-items: center;

}

@media (width >= 64rem) {
  body {
    padding: 0 20rem;
  }
}

@media (width >= 96rem) {
  body {
    padding: 0 40rem;
  }
}

.logo {
  height: 60px;
  margin-top: 10px;
}

.container {
  height:700px;
  display: flex;
  justify-content: flex-start;
  text-align: center;
  width:100%;
}

.tip_tag {
  content: "Most Tipped";
  position: relative;
  background-color: #ffc727; /* Set the background color of your button */
  font-family: 'Rubik';
  padding: 5px;
  border-radius: 0 0 12px 12px;
  font-size: 9px;
  font-weight: 700;
  color: white;
  overflow: hidden;
  display:block;
  z-index: 1;
  cursor: pointer;
}

.tip_buttons {
  display: flex;
  justify-content: space-around;
  height: 40px;
  margin-bottom: 35px;
}

.tip_button1 {
  background-color: white;
  // // position: absolute;
  width:64.34px;
  height: 100%;
  display: block;
  padding: 10px 20px;
  border:2px solid #f6f6f6;
  border-radius: 10px 10px 0 0;
  font-size: 17px;
  cursor: pointer;
  font-family: 'Rubik';
  color: #007aff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

.tip_button2 {
  // position: relative;
  background-color: white;
  width: 64.34px;
  display: block;
  padding: 10px 20px;
  border:2px solid #f6f6f6;
  border-radius: 10px;
  font-size: 17px;
  cursor: pointer;
  font-family: 'Rubik';
  color: #007aff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tip_button3 {
  background-color: white;
  // // position: absolute;
  display: block;
  padding: 10px 20px;
  border:2px solid #f6f6f6;
  border-radius: 10px;
  font-size: 17px;
  cursor: pointer;
  font-family: 'Rubik';
  width: 64.34px;
  color: #007aff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

p {
  font-family:'Rubik';
  font-size: 36px;
  font-weight: 600;
  margin-top:1px;
  margin-bottom:5px;
}

label {
  font-family:'Rubik';
  font-size: 18px;
  font-weight: 400;
  color: #837E7E;
  display:block;
  margin-bottom: 10px;
}

#defaultText {
  margin-bottom: 0px;
}

.leave_tip {
  font-family:'Rubik';
  font-size: 19px;
  font-weight: 600;
  display:block;
  margin-bottom: 10px;
  color: black;
}

.tip {
  font-family:'Rubik';
  font-size: 14px;
  font-weight: 400;
  color: #837E7E;
  display:block;
  margin-bottom: 25px;

}

fieldset {
  margin: 0 auto;
  max-width: 500px;
  max-height: 600px;
}

/*Feedback form*/
.form {
  /* width: 1vw;
  min-width: 380px; */
  margin: 0 auto;
  width: 100%;
  padding-top: 10px;
  padding-left: 20px;
  padding-right: 20px;
  // position: relative;
}

textarea {
  font-family: 'Rubik';
  margin-top: 25px;
  border-radius: 8px;
  border: 1px solid #837E7E;
  height: 50px;
  max-height: 200px;
  font-size:17px;
  width: 100%;
  padding-left:6px;
  padding-right:6px;
  resize: none;
  overflow-y: auto;
}

/*Custom tip amount text box outline*/
.captcha {
  display: none;
  flex-direction: row;
  align-items: center;
  padding: 0.4em 0.5em;
  background-color: white;
  border: 1px solid #A9A9A9;
  margin: 0 auto;
  width:70%;
  margin-top:15px;
  border-radius: 10px;
  margin-bottom:19px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*Pound sign as an always-visible placeholder*/
.placeholder {
  color: #A9A9A9;
  margin-left: 4px;
  margin-right: 3px;
  font-size: 20px;
  flex-shrink: 0;
}

/*Tip input*/
.tip_input{
  padding: 0;
  background-color: transparent;
  border: none;
  outline: none;
  font-size:18px;
  font-family:"Rubik";
  flex-grow: 1;
  width: 100%;
}

/*Submit form*/
.submit{
  margin:0 auto;
  left:0;
  right:0;
  // // position: absolute;
  font-family:'Rubik';
  font-size:18px;
  font-weight:600;
  color:#000000;
  background-color: #ffc727;
  border-radius: 10px;
  height:44.4px;
  width: 157.14px;
  border:none;
  cursor: pointer;
}

h1{
  font-size:12px;
  font-family:'Rubik';
  color: #FFA000;
  line-height: 1px;
  padding-top: 10px;
  margin-bottom: 6px;
}

h2{
  font-family:'Rubik';
  font-size: 18px;
  font-weight: 400;
  color: #797778;
  margin-top: 0;
}

.h6{
    font-size: 52px;
    margin-top: 200px;
    margin-bottom: 15px
}

h3{
  font-family:'Rubik';
  font-size: 28px;
  font-weight: 600;
  margin-left:30px;
  margin-right:30px;
  margin-top:47px;
  margin-bottom:0;
  line-height: 40px;
  width:330px;
  margin:0 auto;
  transform:translate(0%, 193%);
}

h4{
  font-family: 'Rubik';
  font-size: 14px;
  color: #797778;
  font-weight:400;
  margin-left:50px;
  margin-right:50px;
  line-height:20px;
  transform:translate(0%, 437%);
  width:300px;
  margin:0 auto;
}

h5{
  width:175px;
  font-size:12px;
  font-family:'Rubik';
  color: #3E8EF1;
  line-height: 1px;
  margin: 0 auto;
  cursor:pointer;
  padding-top:13px;
  padding-bottom:10px;
  margin-bottom:16px;
}

/* Background circles of the "Thank you" page */
.ellipseBlue{
  position: absolute;
  z-index: -1;
  width:134px;
  height:134px;
  left:50%;
  top:66px;
  background:#3E8EF1;
  border-radius:50%;
  border:2px solid transparent;
  box-sizing:border-box;
  transform:translate(-133%, -21%)
}
.ellipseYellow{
  position: absolute;
  border-radius:50%;
  width: 89px;
  height: 89px;
  left: 287px;
  top: 275px;
  background: #FFC727;
  left:50%;
  transform: translate(87%, -5%);
}

.stars {
  position: relative;
}

#starImage{
  max-width:100%;
}

.touchArea, .touchAreaD {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#touchArea1D{
  width: 57px;
  height: 47px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color:transparent;
  // position: absolute;
  top: 199px;
  left: 50%;
  transform: translate(-252%, 130%);
  cursor: pointer;
}
#touchArea2D{
  width: 58.2px;
  height: 47px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color:transparent;
  // position: absolute;
  top: 263px;
  left: 50%;
  transform: translate(-149%, 0%);
  cursor: pointer;
}
#touchArea3D{
  width: 58.2px;
  height: 47px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color:transparent;
  // position: absolute;
  top: 263px;
  left: 50%;
  transform: translate(-49%, 0%);
  cursor: pointer;
}
#touchArea4D{
  width: 58.2px;
  height: 47px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color:transparent;
  // position: absolute;
  top: 263px;
  left: 50%;
  transform: translate(51%, 0%);
  cursor: pointer;
}
#touchArea5D{
  width: 57px;
  height: 47px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: transparent;
  // position: absolute;
  top: 263px;
  left: 50%;
  transform: translate(154%, 0%);
  cursor: pointer;
}

/* Hitboxes of stars */
#touchArea1 {
  width: 72px;
  height: 77px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color:transparent;
  // position: absolute;
  top: 284px;
  left: 41px;
  cursor: pointer;
}
#touchArea2 {
  width: 59px;
  height: 77px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color:transparent;
  // position: absolute;
  top: 284px;
  left: 114px;
  cursor: pointer;
}
#touchArea3 {
  width: 59px;
  height: 77px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: transparent;
  // position: absolute;
  top: 284px;
  left: 174px;
  cursor: pointer;
}
#touchArea4 {
  width: 59px;
  height: 77px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: transparent;
  // position: absolute;
  top: 284px;
  left: 234px;
  cursor: pointer;
}
#touchArea5 {
  width: 72px;
  height: 77px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: transparent;
  // position: absolute;
  top: 284px;
  left: 294px;
  cursor: pointer;
}

img.no-context-menu {
pointer-events: none;
}

* {
  box-sizing: border-box;
}

/*Pay button*/
.Pay {
  margin: 0 auto;
  background-color: #ffc727;
  display: block;
  padding: 9px 24px;
  border:2px solid #f6f6f6;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Rubik';
  display: none;
  color:#000000;
}

.payment_form {
  position: relative;
  width: 25vw;
  align-self: center;
  box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
    0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
  border-radius: 7px;
  padding: 40px;
  display: none;
  width: 100%;
}


#payment-element {
  margin-bottom: 24px;
}

.hidden {
  display: none;
}

#payment-message {
  color: rgb(105, 115, 134);
  font-size: 16px;
  line-height: 20px;
  padding-top: 12px;
  text-align: center;
}

.close_pay {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  height:0px;
  display: none;
  right: 10px;
  top: 10px;
  z-index: 10;
}

#newPage{
  display:none;
}

#payment-element {
  margin-bottom: 24px;
}

/* Buttons and links */
.button {
  background: #ffc727;
  font-family: 'Rubik';
  color: #000000;
  border-radius: 4px;
  border: 0;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: block;
  transition: all 0.2s ease;
  box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
  width: 100%;
}
.button:hover {
  filter: contrast(115%);
}
.button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* spinner/processing state, errors */

.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}
.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  // position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.spinner:before,
.spinner:after {
  // position: absolute;
  content: "";
}
.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #5469d4;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #5469d4;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}

@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 600px) {
  form {
    width: 80vw;
    min-width: initial;
  }
}

/* Payment Loading Overlay Styles */
.payment-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.payment-loading-overlay.hidden {
  display: none;
}

.payment-loading-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #ffffff;
  padding: 45px 60px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  min-width: 320px;
  gap: 25px;
}

.payment-loading-content * {
  position: static !important;
  float: none !important;
}

.payment-loading-content h3 {
  font-size: 22px !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  color: #333333 !important;
  font-weight: 600 !important;
  font-family: 'Rubik', sans-serif !important;
  width: auto !important;
  max-width: 100% !important;
  line-height: 1.4 !important;
  padding: 0 !important;
  flex-shrink: 0;
  display: block !important;
  transform: none !important;
}

/* Payment Spinner Animation */
.payment-spinner {
  width: 60px;
  height: 60px;
  margin: 0;
  border: 5px solid #f0f0f0;
  border-top-color: #FFD83D;
  border-radius: 50%;
  animation: payment-spin 0.8s linear infinite;
  flex-shrink: 0;
  display: block;
}

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