
:root {
    --color-teal: #3F8E92;
    --color-orange:#E28A00;
    --color-mediumpurple:#8E75A3;
    --color-darkpurple:#905A94;
    --color-lighttan:#FFF8F5;
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-paleyellow: #fff294;
}

* {
  box-sizing: border-box;
  font-family: "Quicksand";
}

body {
  margin: 0;
  padding: 20px;
  background: var(--color-lighttan);
}

.container, footer {
  max-width: 420px;
  margin: auto;
  background: var(--color-white);
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

footer {
    background: none;
    box-shadow: none;
    text-align: center;
}

.logo {
  width: 300px;
  display:block;
  margin:0px auto 20px;
}

h1 {
    color:transparent;
    display:block;
    width:1px;
    height:1px;
    margin:0;
    font-size:1px;
}
h2 {
    color:var(--color-teal);
    text-align: center;
}
h3 {
    color:var(--color-darkpurple);
    font-weight: 400;
    font-size: 2rem;
    text-align:center;
}
ul li {
    text-align: left;
    line-height:1.6rem; 
}
p {
  font-size: 1.1rem;
  color: var(--color-black);
  margin-bottom: 24px;
  line-height:1.6rem;
}

.callout {
  font-size:1.2rem;
  font-weight:500;
  color: var(--color-teal);
  padding:1rem 2rem;
  position:relative;
  text-align: center;
}
.callout:before, .callout:after {
  background-color: var(--color-mediumpurple);
  height: 1px;
  content: "";
  display: block;
  width: 50%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  position:absolute;
}
.callout:after {
  top: 100%;
}

.eventcards {
  display: grid;
  position: relative;
  width: 100%;
  column-gap: 1rem;
  row-gap: 1rem;
  grid-template-columns: 45% 45%;
  justify-content: center;
  margin:2rem 0;
}

.eventcards div {
  padding: 90px .5rem .5rem;
  background-color: var(--color-lighttan);
  border-radius: 16px;
  border: 4px solid var(--color-darkpurple);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: center 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
}

form {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 14px;
  max-width:420px;
  margin:0 auto;
}

.checkboxes {
    flex-wrap: nowrap;
    column-gap: 1rem;
}

.checkboxes div {
    padding: .75rem .75rem .75rem 4.8rem;
    border: solid 1px #c1c1c1;
    border-radius: 16px;
    cursor: pointer;
    background-image: url(../images/checkbox-unchecked.svg);
    background-repeat: no-repeat;
    background-size: 40px;
    background-position: 5% 50%;
    margin: 1rem 0;
}
.checkboxes div.active {
    background-color: var(--color-paleyellow);
    border:solid 1px var(--color-orange);
    background-image: url(../images/checkbox-checked.svg);
}

.pleasewait {
    background:rgba(255,255,255,0.9);
    font-size:1.8rem;
    font-weight:700;
    text-align: center;
    position:absolute;
    top:0px;
    left:0px;
    width:100%;
    height:100%;
    display:none;
}
.pleasewait p {
    position: relative;
    top: 48%;
    color: var(--color-darkpurple);
}
.pleasewait img {
    position:relative;
    top:-22px;
    width:100px;
    animation: spin 1s linear infinite;
    /* Optional: Ensure the image displays correctly */
    display: block; 
    margin: auto;
}
input {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

input[type=checkbox] {
    visibility: hidden;
    margin:0;
    padding:0;
    height:0px;
}

.disclaimer {
  font-size:.8rem;
  line-height:1rem;
  padding:1rem 0;
}

button {
  padding: 14px;
  font-size: 1.2rem;
  font-weight:700;
  border: none;
  border-radius: 8px;
  background: var(--color-teal);
  color: var(--color-white);
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#message {
  margin-top: 24px;
  font-size: 1.8rem;
  line-height: 2.2rem;
  font-weight:400;
  text-align: center;
}

/* Desktop enhancement */
@media (min-width: 768px) {
    .container, footer {
        max-width: 800px;
    }
    .eventcards {
      grid-template-columns: 30% 30% 30%;
    }
}

/* Define the animation keyframes */
@keyframes spin {
  0% {
    transform: rotate(0deg); /* Start at 0 degrees */
  }
  100% {
    transform: rotate(360deg); /* End at 360 degrees (one full turn) */
  }
}
