/******************************************************/
/* FONTS */
/******************************************************/

/* FontAwesome Icons
  More info: https: //fontawesome.com
  If there is an error, change your href with the main url:
  https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css
*/
@import './font-awesome.min.css';
@import './font-styles.css';

/******************************************************/
/* THEME VARIABLES */
/******************************************************/

:root {
  /* COLOR SCHEME: Light & Dark */
  color-scheme: light dark;

  /* COLORS */
  --color-white: 255, 255, 255;
  --color-black: 0, 0, 0;
  --color-dark: 17, 16, 13;
  --color-grey: 35, 35, 35;
  --color-grey-dark: 44, 47, 51;
  --color-creme: 227, 220, 209;
  --color-beige: 247, 243, 238;
  --color-gold: 212, 175, 55;
  --color-gold-brown: 186, 151, 88;
  --color-red: 255, 0, 0;
  --color-red-dark: 200, 0, 0;
  --color-orange: 236, 106, 30;
  --color-orange-light: 245, 190, 73;
  --color-blue: 50, 100, 200;
  --color-blue-light: 76, 150, 179;
  --color-blue-dark: 44, 62, 80;
  --color-green-light: 110, 168, 150;
  --color-green-olive: 161, 182, 123;
  --color-green-dark: 101, 121, 60;

  --color-info: rgb(50, 100, 200);
  --color-error: rgb(200, 20, 20);
  --color-success: rgb(20, 200, 20);
  --color-alert: rgb(250, 250, 100);

  --color-primary: var(--color-dark);
  --color-secondary: var(--color-beige);
  --color-accent: var(--color-gold-brown);
  --color-hover: var(--color-gold-brown);

  --color-primary-rgb: rgb(var(--color-primary));
  --color-secondary-rgb: rgb(var(--color-secondary));
  --color-accent-rgb: rgb(var(--color-accent));
  --color-hover-rgb: rgb(var(--color-hover));

  --color-label: var(--color-secondary);
  --color-input: var(--color-primary);

  /* OTHER PROPERTIES */
  --font-family: 'Open Sans', 'Calibri', 'Arial', sans-serif;
  --scrollbar-size: 10px;
  --viewport-width: 1200px;

  --header-max-height: 6rem;
  --header-max-font-size: 1.5rem;
  --header-footer-border: .25rem solid var(--color-accent-rgb);

  --footer-max-height: calc(var(--header-max-height) * 3);

  --font-size: 15px;
  --logo-size: calc(var(--header-max-height) + 2rem);
  --logo-size-reduced: var(--header-max-height);
  --card-size: 250px;
  --max-icon-size: 1.5rem;
}

/******************************************************/
/* GLOBAL: LIGHT THEME */
/******************************************************/

* {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: var(--font-size);
  outline: none;
  text-align: left;
  letter-spacing: 0.15rem;
  line-height: 1.8;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-size: var(--font-size);
  letter-spacing: 0.15rem;
  user-select: none;
  color: var(--color-primary);
  background: rgb(var(--color-secondary));
  scroll-behavior: smooth;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

.spacer {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.8;
  white-space: normal;
  word-break: break-word;
  color: var(--color-accent-rgb);
}

h1 {
  text-align: center;
  font-size: 2.1rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1rem;
}

/* DISPLAY */

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-start {
  align-items: flex-start;
}

.h-end {
  align-items: flex-end;
}

.row-mobile,
.row {
  flex-direction: row;
}

.col-mobile,
.col {
  flex-direction: column;
}

/* WIDTH */

.w-full {
  width: 100%;

  &.m,
  &.m-half {
    width: calc(100% - 2rem);
  }
}

.w-half {
  width: 50%;
}

.w-75 {
  width: 75%;
}

/* MARGIN */

.m,
.margin {
  margin: 1rem;
}

.m-half,
.margin-half {
  margin: .5rem 1rem;
}

/* PADDING */

.p,
.padding {
  padding: 1rem;
}

.p-half,
.padding-half {
  padding: .5rem 1rem;
}

/* TEXT */

.t-center {
  text-align: center;
}

.t-left {
  text-align: left;
}

.t-right {
  text-align: right;
}

/* BORDER */

.b,
.border {

  &.w-light {
    --border-width: 1px;
  }

  &.w-normal {
    --border-width: 2px;
  }

  &.w-strong {
    --border-width: 4px;
  }

  &.w-bold {
    --border-width: 5px;
  }

  &.top {
    border-top: var(--border-width) solid var(--color-accent-rgb);
  }

  &.bottom {
    border-bottom: var(--border-width) solid var(--color-accent-rgb);
  }

  &.left {
    border-left: var(--border-width) solid var(--color-accent-rgb);
  }

  &.right {
    border-right: var(--border-width) solid var(--color-accent-rgb);
  }

  &.all {
    border: var(--border-width) solid var(--color-accent-rgb);
  }
}

/* VISIBILITY */

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

.no-mobile {
  @media (max-width: 768px) {
    display: none !important;
  }
}

/******************************************************/
/* GLOBAL: DARK THEME */
/******************************************************/

@media (prefers-color-scheme: dark) {
  body {
    color: var(--color-secondary-rgb);
    background: var(--color-primary-rgb);
  }
}

/******************************************************/
/* INPUTS */
/******************************************************/

.input-field {
  --icon-size: 1.5rem;
  --label-size: calc(var(--font-size));

  position: relative;
  display: block;
  width: 100%;

  label {
    display: block;
    width: 100%;
    margin: .25rem 0;
    font-size: var(--label-size);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .25rem;
    font-weight: bold;
    color: rgba(var(--color-input), 1);
  }

  input {
    width: calc(100% - 2rem);
    margin: .5rem 0;
    padding: .75rem;
    font-size: var(--font-size);
    font-weight: normal;
    letter-spacing: .25rem;
    color: rgba(var(--color-label), 1);
    background: rgba(var(--color-input), 0.9);
    box-shadow: 0 0 .5rem rgba(var(--color-input), 0.5);
    border: .25rem solid rgba(var(--color-input), 0.5);
    border-radius: .5rem;
    outline: none;

    &:focus,
    &:active {
      border-color: rgba(var(--color-accent), 0.9);
      box-shadow: 0 0 1rem rgba(var(--color-accent), 0.9);

      &:required:invalid {
        border-color: var(--color-error);
        box-shadow: 0px 0px 1rem var(--color-error) !important;
      }

      &:required:valid {
        border-color: var(--color-success);
        box-shadow: 0px 0px 1rem var(--color-success) !important;
      }
    }

    &::placeholder {
      color: rgba(var(--color-label), 0.75);
      font-size: calc(var(--font-size) - .15rem);
      font-style: italic;
      opacity: 1;
    }

    &.touppercase {
      text-transform: uppercase;
    }
  }

  textarea {
    width: calc(100% - 2rem);
    min-height: 10rem;
    margin: 1rem 0;
    padding: .75rem;
    font-size: var(--font-size);
    font-weight: normal;
    letter-spacing: .25rem;
    color: rgba(var(--color-label), 1);
    background: rgba(var(--color-input), 0.9);
    box-shadow: 0 0 .5rem rgba(var(--color-input), 0.5);
    border: .25rem solid rgba(var(--color-input), 0.5);
    border-radius: .5rem;
    outline: none;
    resize: vertical;

    &:focus {
      border-color: rgba(var(--color-accent), 0.9);
      box-shadow: 0 0 1rem rgba(var(--color-accent), 0.9);
    }

    &::placeholder {
      color: rgba(var(--color-label), 0.75);
      font-size: calc(var(--font-size) - .15rem);
      font-style: italic;
      opacity: 1;
    }
  }

  .icon {
    --top-margin: calc(var(--label-size) + 2.5rem);

    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: var(--top-margin);
    right: 1rem;
    width: var(--icon-size);
    height: var(--icon-size);
    padding: var(--icon-size);
    font-size: var(--icon-size);
    cursor: pointer;

    &:hover {
      color: rgba(var(--color-accent), 0.9);
    }
  }

  .special-message {
    text-align: center;
    color: var(--color-accent-rgb);
    font-size: calc(var(--font-size) - .1rem);
    letter-spacing: .25rem;
    line-height: 1.5rem;
  }
}

/******************************************************/
/* LINKS */
/******************************************************/

.link {
  cursor: pointer;

  &:hover {
    color: var(--color-hover-rgb);

    &.underline {
      text-decoration: underline;
      text-decoration-color: var(--color-hover-rgb);
      text-underline-offset: 0.4em;
    }

    &.shadow {
      text-shadow: 0 0 10px var(--color-hover-rgb);
    }
  }
}

a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: rgba(var(--color-secondary), 1);
  text-decoration: none;
  transition: all .5s ease-in-out;

  &[target=_blank]:not(.btn, .icon) {
    border-bottom: .1rem solid transparent;
    text-shadow: 0 0 5px rgba(var(--color-accent), .5);
    transition: all .5s ease-in-out;

    &:hover {
      color: rgba(var(--color-accent), 1);
      border-color: rgba(var(--color-accent), .5);
    }
  }

  &.icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: var(--max-icon-size);
    height: var(--max-icon-size);
    gap: .25rem;
    margin: .5rem .25rem;
    padding: .5rem;
    color: rgba(var(--color-secondary), 1);
    background: rgba(var(--color-primary), 1);
    border-radius: 1rem;
    transition: all .5s ease-in-out;

    &:hover {
      text-decoration: none;

      i,
      span {
        color: rgba(var(--color-accent), 1);
      }
    }

    i {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      min-width: 20px;
      height: 100%;
      min-height: 20px;
      color: var(--color-secondary-rgb);
      font-size: var(--max-icon-size);
      text-decoration: none;
    }

    img {
      width: var(--max-icon-size);
      height: var(--max-icon-size);
    }

    span {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      max-width: 50px;
      margin: 0 .5rem;
      padding: 0;
      margin: 0;
      color: var(--color-secondary-rgb);
      font-size: var(--header-max-font-size);
      font-weight: bold;
    }
  }
}

.socialMediaContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: auto;
  gap: .5rem;
  margin: .5rem;
  padding: 0;

  &.dark .social-link {
    color: var(--color-primary-rgb);
  }

  .social-link {
    min-width: calc(var(--max-icon-size) * 2);
    min-height: calc(var(--max-icon-size) * 2);
    margin: 0;
    padding: 0;
    background: transparent;
    border: .25rem solid transparent;
    border-radius: 1rem;
    aspect-ratio: 1/1;
    transition: all 0.5s ease-in-out;

    &:hover {
      color: rgb(var(--color-primary));
      background: rgba(var(--color-accent), .85) !important;
      border-color: var(--color-accent-rgb);
    }

    .social-icon {
      color: inherit;
      font-size: calc(var(--max-icon-size) + .5rem);
    }
  }
}

/******************************************************/
/* IMAGE */
/******************************************************/

.img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;

  &.right {
    float: right;
  }

  &.left {
    float: left;
  }

  &.wide {
    aspect-ratio: 16/9;
  }

  &.max-size {
    max-width: 500px;
    max-height: 800px;
  }
}

.back-shadow::after {
  background: inherit;
  position: absolute;
  content: '';
  filter: blur(25px) saturate(1.5);
  width: 100%;
  height: 100%;
  scale: 1.05;
  z-index: -1;
}

.icon {
  margin: .5rem;
  font-size: var(--max-icon-size);
  transition: all 0.5s ease-in-out;

  &:hover {
    color: var(--color-accent-rgb);
    transition: all 0.5s ease-in-out;
  }
}

/******************************************************/
/* VIDEO */
/******************************************************/

.video-player {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  aspect-ratio: 16/9;
  box-shadow: 0 0 .5rem .5rem rgba(var(--color-black), .5);
  transition: all 0.5s ease-in-out;
  cursor: pointer;

  &:hover {
    box-shadow: 0 0 .5rem .5rem rgba(var(--color-accent), .7);
    transition: all 0.5s ease-in-out;
  }
}

/******************************************************/
/* BUTTON */
/******************************************************/

.btn {
  box-sizing: border-box;
  --color-label: var(--color-primary);
  --color-background: var(--color-secondary);

  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 25rem;
  min-height: 2.5rem;
  margin: .5rem 0;
  padding: .75rem 1rem;
  letter-spacing: .12rem;
  font-weight: bold;
  color: rgb(var(--color-label));
  background: rgba(var(--color-background), .95);
  box-shadow: 0 0 .25rem rgba(var(--color-label), .12);
  border: none;
  border-radius: .5rem;
  text-decoration: none;
  text-transform: uppercase;
  transform: none;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  white-space: normal;
  /* allow wrap */
  word-break: break-word;
  text-align: center;

  &:is([type="submit"]) {
    border: .25rem solid rgba(var(--color-label), .12);
  }

  &:hover {
    transform: translateY(0);
    text-decoration: none !important;
    color: rgb(var(--color-black)) !important;
    background: rgb(var(--color-accent));
  }

  .icon {
    position: relative;
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;

    &:hover {
      color: rgb(var(--color-black)) !important;
    }
  }

  span {
    display: inline-block;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    font-size: 0.95rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    width: auto;
  }
}

#scrollToTopBtn {
  --scroll-btn-size: 3rem;

  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 1.5rem;
  right: 0;
  width: var(--scroll-btn-size);
  height: var(--scroll-btn-size);
  font-size: 1rem;
  padding: 1rem;
  font-weight: bold;
  background-color: var(--color-accent-rgb);
  color: var(--color-primary-rgb);
  border-radius: 50% 0 0 50%;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 99999;
  opacity: 0;

  animation: hide-seek linear both;
  animation-timeline: scroll();
  animation-range: 0 100vh;

  i {
    width: 100%;
    height: 100%;
    font-size: 2rem;
    padding-bottom: .5rem;
    color: var(--color-primary-rgb);
  }
}

/******************************************************/
/* MESSAGE */
/******************************************************/

.msg {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--color-primary-rgb);

  &.absolute {
    position: absolute;
    text-align: right;
  }

  &.fixed {
    position: fixed;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1;
    width: calc(100% - 2rem);
    height: 5rem;
    min-height: 50px;
    padding: 1rem;
    color: var(--color-primary-rgb);
    font-size: 1rem;
    letter-spacing: .15rem;
    font-weight: 700;
    z-index: 999999;
  }

  &.back-info {
    background: var(--color-info);
  }

  &.back-success {
    background: var(--color-success);
  }

  &.back-error {
    background: var(--color-error);
  }

  &.back-alert {
    background: var(--color-alert);
  }

  &.left {
    left: 0;
  }

  &.top {
    top: 0;
  }

  &.right {
    right: 0;
  }

  &.bottom {
    bottom: 0;
  }

  &.border-radius {
    border-radius: 2rem;
  }

  a {
    display: contents;
    color: var(--color-primary-rgb);
    text-decoration: underline !important;
  }

  .icon {
    --icon-size: 3rem;

    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--icon-size);
    height: var(--icon-size);
    margin: .5rem;
    margin-left: 1.5rem;
    font-size: var(--icon-size);
    color: var(--color-primary-rgb);
  }
}

/******************************************************/
/* MAIN SECTIONS */
/******************************************************/

main {
  --main-padding: 4rem;

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  width: calc(100% - var(--main-padding));
  max-width: var(--viewport-width);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--main-padding) * 2) 0 var(--main-padding);

  .main-text,
  .main-text p {
    width: calc(100% - 2rem);
    margin: 1rem auto;
    padding: 0;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    letter-spacing: .1rem;

    b {
      text-transform: uppercase;
    }
  }
}

#modal-chat {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(var(--color-black), .75);
  overflow: hidden;
  z-index: 99999;

  .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: nowrap;
    width: 90dvw;
    max-width: var(--viewport-width);
    height: 90dvh;
    background: rgba(var(--color-label), 1);
    box-shadow: 0 0 1rem 1rem rgba(var(--color-input), .5);
    border: .25rem solid rgba(var(--color-label), .5);
    border-radius: 1rem;
    overflow: auto;

    .close {
      --close-size: 4rem;

      position: absolute;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: row;
      flex-wrap: nowrap;
      width: calc(var(--close-size) / 2);
      height: calc(var(--close-size) / 2);
      top: 1rem;
      right: 1rem;
      padding: 0;
      margin: 0;
      font-size: var(--close-size);
      font-weight: bold;
      color: rgb(var(--color-red-dark));
      text-shadow: 0 0 .5rem rgb(var(--color-black));
      opacity: .9;
      cursor: pointer;
      aspect-ratio: 1 / 1;

      &:hover {
        opacity: 1;
        text-shadow: 0 0 .5rem rgb(var(--color-red-dark));
      }
    }

    #form-chat {
      width: 90%;
      text-align: center;
    }
  }
}

#policy-container {
  --policy-font-size: 1rem;

  display: block;
  font-size: var(--policy-font-size);
  text-align: left !important;
  line-height: 1.5;
  letter-spacing: .1rem;

  a,
  b,
  i,
  u {
    display: inline;
    font-size: var(--policy-font-size);
    letter-spacing: .1rem;
  }

  b,
  strong {
    font-weight: bold;
    text-transform: uppercase;
  }

  a {
    color: var(--color-accent-rgb);
    font-weight: bold;
    text-decoration: none !important;
    border-bottom: 1px solid var(--color-accent-rgb);
  }

  ul {
    list-style: disc;
    padding: 0 1rem;

    li {
      margin: 1rem auto;
    }

    &.checklist {
      list-style: none;

      li::before {
        content: "✔";
        color: #2ecc71;
        font-weight: bold;
        margin-right: 8px;
      }
    }
  }
}

/******************************************************/
/* CLASS COLORS */
/******************************************************/

.red {
  color: rgb(var(--color-red));
}

small {
  width: calc(100% - 2rem);
  margin: .5rem auto;
  padding: .5rem;
  text-align: center;
  font-size: 1rem;
  cursor: default;
  user-select: none;
  border-top: 1px dashed transparent;
  border-bottom: 1px dashed transparent;

  &:not(.error, .success, .alert) {
    font-weight: bold;

    &:hover {
      border-color: var(--color-accent-rgb);
    }
  }

  &.error,
  &.success,
  &.alert {
    text-transform: uppercase;
    font-weight: 700;
  }

  &.large,
  &.large span,
  &.large a,
  &.large i,
  &.large u,
  &.large b {
    font-size: 1.1rem;
    line-height: 2;
  }

  a {
    display: inline-block;
    color: var(--color-accent-rgb);
    text-decoration: none !important;
    border-bottom: 1px solid var(--color-accent-rgb);
  }

  i,
  u,
  b {
    padding: .15rem .5rem;
    color: var(--color-accent-rgb);
  }
}

.error {
  color: var(--color-error);
}

.success {
  color: var(--color-success);
}

.alert {
  color: var(--color-alert);
}

.shadow {
  box-shadow: 0px 0px 10px var(--color-secondary-rgb);
}

/******************************************************/
/* SCROLLBAR */
/******************************************************/

::-webkit-scrollbar {
  -webkit-appearance: none;
}

::-webkit-scrollbar:vertical {
  width: var(--scrollbar-size);
}

::-webkit-scrollbar:horizontal {
  height: var(--scrollbar-size);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-accent-rgb);
  border-radius: 0;
}

::-webkit-scrollbar-track {
  border-radius: 0px;
  background-color: var(--color-secondary-rgb);
}

/******************************************************/
/* SELECTION */
/******************************************************/

::selection {
  color: var(--color-secondary-rgb);
  background: var(--color-accent-rgb);
}

pre ::selection {
  color: var(--color-primary-rgb);
}

/******************************************************/
/* ANIMATIONS */
/******************************************************/

@keyframes hide-seek {
  to {
    opacity: 1;
  }
}

/*****************************************************/
/* MEDIA QUERIES */
/*****************************************************/

/* Antoher option: @media (width <= 1200px) */
@media screen and (max-width: 1200px) {

  :root {
    --max-icon-size: 1.5rem;
  }

  main {

    .main-text,
    .main-text p {
      text-align: center !important;
    }
  }
}

@media (hover: none) {

  :root {
    --max-icon-size: 1.2rem;
    --font-size: 14px;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-align: center;
  }

  main {
    --main-padding: 1rem;
  }

  .btn {
    font-size: 0.9rem;
    min-height: auto;
    gap: 0.5rem;

    .icon {
      width: 1.2rem;
      height: 1.2rem;
      font-size: 1rem;
    }

    span {
      font-size: 0.9rem;
      letter-spacing: 0.08rem;
    }
  }
}