/* ------------------------ DIALOG AND SIMPLE BUTTON ------------------------ */

.veryBoldFont {
  font-weight: 900 !important;
}

.uppercase {
  text-transform: uppercase;
}

/* Experiment to try to prevent clipping */
svg {
  overflow: visible !important;
}

/* -------------------------------------------------------------------------- */
/*                                   DIALOG                                   */
/* -------------------------------------------------------------------------- */

.custom-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1999;
}

.custom-dialog {
  background-color: var(--light-colour);
  padding: 4vmin;
  border-radius: 1vmin;
  max-width: 90%;
  min-width: 500px;
  max-height: 95%;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.75vmin;
  color: var(--dark-colour);
  text-align: center;
  line-height: 2;
  text-wrap: balance;
  transition: background-color 0.25s ease-in;
}

.with-footer {
  padding: 4vmin 4vmin 0 4vmin !important;
}

.dialog-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.custom-dialog .simpleButton {
  transition: background-color 0.25s ease-in;
}

.custom-dialog p {
  transition: color 0.25s ease-in;
  font-weight: 100;
}

.custom-dialog p:first-of-type {
  font-weight: 500;
  font-size: 2vmin;
  margin-bottom: 1.5vmin;
}

.custom-dialog p:last-of-type {
  margin-bottom: 2vmin;
  font-size: 1.75vmin;
}

.dialogDivider {
  width: 50%;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 1);
  margin: auto;
  margin-top: 3vmin;
  margin-bottom: 3vmin;
}

.overlayTwoButtons {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-evenly;
  margin-top: 3vmin;
  column-gap: 3vmin;
}

.overlayTwoButtons .simpleButton {
  width: fit-content;
  min-width: 10vw;
  font-weight: 500;
}

.dialogGreenButton {
  background-color: var(--green-colour) !important;
}

.dialogRedButton {
  background-color: var(--red-colour) !important;
}

.dialogBlueButton {
  background-color: var(--blue-colour) !important;
}

.dialogLink {
  color: var(--dark-colour);
  text-decoration: none;
  background-color: var(--white-colour);
  padding: 1vmin 2vmin;
  border-radius: 1vmin;
  box-shadow: rgba(0, 0, 0, 0.2) 0px -0.25vmin 0px inset;
}

/* -------------------------------------------------------------------------- */
/*                                SIMPLE BUTTON                               */
/* -------------------------------------------------------------------------- */

.simpleButton {
  background-color: var(--dark-colour);
  color: var(--white-colour);
  text-transform: uppercase;
  font-size: 1.5vmin;
  font-weight: 600;
  width: fit-content;
  height: auto;
  border: none;
  padding: 1vmin 2vmin;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: rgba(0, 0, 0, 0.2) 0px -0.25vmin 0px inset;
  cursor: pointer;
  border-radius: 0.5vmin;
}

.dummyBtn {
  opacity: 0 !important; /* Used for spacing */
}

.simpleButton p {
  color: var(--white-colour);
  font-size: 1.5vmin;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.simpleButton p span {
  font-weight: 200;
}

.simpleButton:hover {
  filter: brightness(1.2);
}

.simpleButton svg {
  width: 6vmin;
  height: auto;
  fill: var(--dark-colour);
}

.whiteButton {
  background-color: var(--white-colour);
}

.blueButton {
  background-color: var(--blue-colour);
}

.whiteButton p {
  color: var(--dark-colour);
}

.smallPrint {
  color: var(--black-colour);
  font-size: 1.25vmin !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/*                                DIALOG FOOTER                               */
/* -------------------------------------------------------------------------- */

.dialog-footer {
  width: calc(100% + 8vmin);
  margin-left: -4vmin;
  margin-right: -4vmin;
  margin-bottom: -4vmin;
  margin-top: 4vmin;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2vmin 4vmin;
  border-top: 1px solid #fff;
  border-radius: 0 0 1vmin 1vmin;
  box-sizing: border-box;
}

/* -------------------------------------------------------------------------- */
/*                                DIALOG IMAGE                                */
/* -------------------------------------------------------------------------- */

.dialog-image {
  width: 12vmin;
  height: auto;
  display: block;
  margin: 1vmin auto 1.5vmin auto;
  animation: trophyPop 0.4s ease;
}

/* -------------------------------------------------------------------------- */
/*                                   DIVIDER                                  */
/* -------------------------------------------------------------------------- */

.horizontalDivider {
  width: 100%;
  height: 2px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid white;
}

.addSpaceAboveBelow {
  margin-top: 2vmin;
  margin-bottom: 2vmin;
}

/* -------------------------------------------------------------------------- */
/*                         SHARE CODE ACTIVITY FORM                          */
/* -------------------------------------------------------------------------- */

.form-group {
  margin-bottom: 2vmin;
  text-align: left;
  width: 100%;
}

.form-label {
  display: block;
  margin-bottom: 0.5vmin;
  font-weight: 700;
  font-size: 1.5vmin;
}

.form-select {
  width: 100%;
  padding: 1vmin;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5vmin;
  font-size: 1.5vmin;
  background-color: var(--white-colour);
  color: var(--dark-colour);
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--dark-colour);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.helper-text {
  font-size: 1.25vmin;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 0.5vmin;
  margin-bottom: 0;
}

.confirmation-text {
  font-size: 1.5vmin;
  padding: 1vmin;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 0.5vmin;
  margin-bottom: 1vmin;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/*                              SETTINGS TABS                                */
/* -------------------------------------------------------------------------- */

.settings-tabs {
  display: flex;
  width: 100%;
}

.settings-tab {
  flex: 1;
  padding: 1.5vmin 2vmin;
  border: none;
  background-color: rgba(0, 0, 0, 0.1);
  font-size: 1.5vmin;
  font-weight: 600;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.6);
  border-radius: 1vmin 1vmin 0 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  text-transform: uppercase;
}

.settings-tab:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.8);
}

.settings-tab[aria-selected='true'] {
  color: var(--dark-colour);
  background-color: var(--white-colour);
  border-bottom: none;
  border-left: 2px solid rgba(0, 0, 0, 0.05);
  border-right: 2px solid rgba(0, 0, 0, 0.05);
  border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.settings-tab:focus {
  outline: none;
  outline-offset: -2px;
}

.custom-dialog .settings-panel {
  display: none;
  width: 100%;
  min-height: 35vh;
  min-height: 35svh;
  text-align: left;
  background-color: var(--white-colour);
  padding: 2vmin;
  border-radius: 0 0 1vmin 1vmin;
  border-left: 2px solid rgba(0, 0, 0, 0.05);
  border-right: 2px solid rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.custom-dialog .settings-panel[aria-hidden='false'] {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-around;
}

.custom-dialog .settings-panel .simpleButton {
  width: 100%;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1vmin 0;
}

.settings-row-centre-content {
  justify-content: center;
}

.settings-label {
  font-weight: 600;
  font-size: 1.5vmin;
  color: var(--dark-colour);
  margin-right: 2vmin;
  flex: 1;
}

.settings-control {
  flex-shrink: 0;
}

.settings-control select,
.settings-control input {
  padding: 0.75vmin 1vmin;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5vmin;
  font-size: 1.4vmin;
  background-color: white;
  color: var(--dark-colour);
}

.settings-control select:focus,
.settings-control input[type='checkbox']:focus {
  outline: 2px solid var(--dark-colour);
  outline-offset: 1px;
}

/* Custom styling for reduce-motion checkbox */
#reduce-motion-check {
  width: 3.5vmin;
  height: 3.5vmin;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--dark-colour);
  border-radius: 0.5vmin;
  background-color: var(--white-colour);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

#reduce-motion-check:hover {
  background-color: rgba(232, 51, 44, 0.05);
  border-color: var(--dark-colour);
}

#reduce-motion-check:checked {
  background-color: var(--dark-colour);
  border-color: var(--dark-colour);
}

#reduce-motion-check:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.4vmin;
  height: 2.4vmin;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#reduce-motion-check:focus {
  outline: 2px solid var(--dark-colour);
  outline-offset: 2px;
}

/* Special styling for users who prefer reduced motion */
html[data-reduce-motion='true'] #reduce-motion-check {
  transition: none;
}

html[data-reduce-motion='true'] #reduce-motion-check:hover {
  transition: none;
}

/* -------------------------------------------------------------------------- */
/*                              STATUS FEEDBACK                              */
/* -------------------------------------------------------------------------- */

.settings-status {
  position: absolute;
  bottom: 3.25vmin;
  right: 5vmin;
  font-size: 1.5vmin;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  color: var(--dark-colour);
}

.settings-status.show {
  opacity: 1;
  transform: translateY(0);
}

.settings-status.error {
  color: var(--red-colour);
}

.account-hint {
  font-size: 1.25vmin;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 1vmin;
}

/* -------------------------------------------------------------------------- */
/*                              REDUCED MOTION                               */
/* -------------------------------------------------------------------------- */

/* Respect reduce motion preference */
html[data-reduce-motion='true'] *,
html[data-reduce-motion='true'] *::before,
html[data-reduce-motion='true'] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
