/* Style Settings */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap");

body {
  background-color: rgba(255, 255, 255, 1);
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
}

/* Locks background scroll when modal is open (cross-browser + iOS Safari fix) */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

#userPhoto {
  width: 200px;
  height: 200px;
  display: block;
  margin: 10px auto;
  border-radius: 20%;
}

#userName {
  color: rgba(28, 87, 252, 1);
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: bolder;
}

#userName h1 {
  font-size: 2rem;
  letter-spacing: 0.2rem;
  margin: 0 auto;
}

#userName h2 {
  margin-top: 5px;
  text-transform: none;
  color: rgba(252, 41, 133, 0.4);
}

i.fa {
  margin-right: 0.3rem;
}

#links {
  max-width: 500px;
  width: auto;
  display: block;
  margin: 20px auto;
}

.link {
  display: block;
  background-color: rgba(28, 87, 252, 1);
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  padding: 17px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 300;
  transition: all 0.25s cubic-bezier(0.08, 0.59, 0.29, 0.99);
  border-radius: 10px;
}

.link:hover {
  background-color: rgba(252, 41, 133, 0.3);
  color: #000000;
  border: none;
}

/* Keyframes for slight rotation shaking */
@keyframes slightRotate {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(2.5deg); }
  50%  { transform: rotate(-2.5deg); }
  75%  { transform: rotate(2.5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes Buzz_animation {
  0%    { transform: translateX(3px) rotate(1deg); }
  2.5%  { transform: translateX(-3px) rotate(-1deg); }
  5%    { transform: translateX(3px) rotate(1deg); }
  7.5%  { transform: translateX(-3px) rotate(-1deg); }
  10%   { transform: translateX(2px) rotate(1deg); }
  12.5% { transform: translateX(-2px) rotate(-1deg); }
  15%   { transform: translateX(2px) rotate(1deg); }
  17.5% { transform: translateX(-2px) rotate(-1deg); }
  20%   { transform: translateX(1px) rotate(1deg); }
  22.5% { transform: translateX(-1px) rotate(-1deg); }
  25%   { transform: translateX(0) rotate(0); }
}

.rotate {
  animation: slightRotate 0.5s ease-in-out 0s 2 forwards,
    slightRotate 0.5s ease-in-out 3s 2 forwards;
}

.Buzz_animation {
  animation: Buzz_animation 3s linear infinite;
}

.Buzz_animation:active {
  animation: unset;
}

/* --- Desktop & General Styles --- */
[data-weavely-form="6daea6a7-9fe9-4328-8b2b-5ed9e3197012"] {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 9999 !important;
  width: 500px !important;
  height: auto !important;
  max-height: 80vh !important;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  pointer-events: auto !important;
}

/* --- Mobile Portrait Optimization --- */
@media screen and (max-width: 600px) and (orientation: portrait) {
  [data-weavely-form="6daea6a7-9fe9-4328-8b2b-5ed9e3197012"] {
    width: 90% !important;
    height: auto !important;
    max-height: 85vh !important;
    border-radius: 16px;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Modal overlay */
#modalOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

/* Popup wrapper — stripped down, weavely handles its own styling */
#popupForm {
  display: none;
}
