:root {
  --ratio: 1.3;
  --s-7: calc(var(--s-6) / var(--ratio));
  --s-6: calc(var(--s-5) / var(--ratio));
  --s-5: calc(var(--s-4) / var(--ratio));
  --s-4: calc(var(--s-3) / var(--ratio));
  --s-3: calc(var(--s-2) / var(--ratio));
  --s-2: calc(var(--s-1) / var(--ratio));
  --s-1: calc(var(--s0) / var(--ratio));
  --s0: 1rem;
  --s1: calc(var(--s0) * var(--ratio));
  --s2: calc(var(--s1) * var(--ratio));
  --s3: calc(var(--s2) * var(--ratio));
  --s4: calc(var(--s3) * var(--ratio));
  --s5: calc(var(--s4) * var(--ratio));
  --s6: calc(var(--s5) * var(--ratio));
  --s7: calc(var(--s6) * var(--ratio));

  /** ==== VARIABLES ==== */
  --color-1: #f04e23;
  --color-2: #16836b;
  --color-3: #fcb900;
  --font-text: "Open Sans", sans-serif;
}

/* FONTS */
@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./fonts/OpenSans-ExtraBold.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* RESET */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: var(--font-text);
  margin: 0;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  font-weight: 600;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

h1 {
  font-size: var(--s4);
}
h2 {
  font-size: var(--s3);
}
h3 {
  font-size: var(--s2);
}
h4 {
  font-size: var(--s1);
}
h5 {
  font-size: var(--s0);
}
h6 {
  font-size: var(--s0);
}

/* UTYLS */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.max-w-prose {
  max-width: 65ch !important;
}

.max-w-prose-xl {
  max-width: 80ch !important;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.object-contain {
  object-fit: contain;
}

.object-cover {
  object-fit: cover;
}

/* TEXT */
.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.bold {
  font-weight: 600;
}

.black {
  font-weight: 900 !important;
}

.text-white {
  color: white !important;
}

.styled-h1 {
  margin-inline: auto;
  font-size: 100px;
  color: rgb(241, 241, 241);
  text-align: center;
}

/* PADDING */
.p-0 {
  padding: 0;
}

.p-1 {
  padding: 0.5rem;
}

.p-2 {
  padding: 1rem;
}

.p-3 {
  padding: 1.5rem;
}

.px-0 {
  padding-inline: 0;
}

.py-0 {
  padding-block: 0;
}

.px-1 {
  padding-inline: 0.5rem;
}

.py-1 {
  padding-block: 0.5rem;
}

.px-2 {
  padding-inline: 1rem;
}

.py-2 {
  padding-block: 1rem;
}

.pb-2 {
  padding-bottom: 1rem;
}

.pb-4 {
  padding-bottom: 2rem;
}

/* CENTER */
.center {
  box-sizing: content-box;
  margin-inline: auto;
  max-inline-size: 100%;
}

/* SWITCHER */
.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.switcher > * {
  flex-grow: 1;
  flex-basis: calc((30rem - 100%) * 999);
}

.switcher > :nth-last-child(n + 5),
.switcher > :nth-last-child(n + 5) ~ * {
  flex-basis: 100%;
}

/* STACK */
.stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stack > * {
  margin-block: 0;
}

.stack > * + * {
  margin-block-start: var(--space, 1.5rem);
}

/* WRAPPER */
.wrapper {
  width: 90vw;
  width: clamp(16rem, 90vw, 80rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
}

.content-wrapper {
  width: 70vw;
  width: clamp(16rem, 70vw, 60rem);
}

/* REGION */
.region {
  padding-bottom: 4rem;
  padding-top: 4rem;
  padding-top: clamp(2.67rem, 2.07rem + 3vw, 4.21rem);
  padding-bottom: clamp(2.67rem, 2.07rem + 3vw, 4.21rem);
}

/* HEADER */
.site-header {
  background: var(--color-1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s2);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo img {
  max-width: 200px;
}

.nav {
  text-transform: uppercase;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
}

/* HAMBURGER */
#hamburger {
  display: none;
  background: none;
  border: none;
  z-index: 10;
}

#hamburger svg {
  fill: #fff;
  transform: rotate(0);
  transition: transform 0.4s ease;
}

.menu-open #hamburger svg {
  transform: rotateZ(225deg);
}

#hamburger line {
  transition: transform 0.6s ease-in-out;
}

#hamburger line:nth-child(1) {
  transform: rotate(0deg);
}

.menu-open #hamburger line:nth-child(1) {
  transform: rotate(-90deg) translate(-29px, 7px);
}

#hamburger line:nth-child(2) {
  transform: rotate(0deg);
}

.menu-open #hamburger line:nth-child(2) {
  transform: rotate(0deg) translate(0, -9px);
}

/* FOOTER */
.site-footer {
  background-color: #000525;
}

.site-footer img {
  max-width: 150px;
}

/* BUTTONS */

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  max-width: max-content;
  border: 1px solid transparent;
  transition: filter 0.2s ease;
  will-change: filter;
}

a.btn {
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn.primary {
  background-color: var(--color-2);
  color: white;
}

.btn.secondary {
  background-color: var(--color-3);
  color: white;
}

/* CARD */
.card {
  border-radius: 10px;
  box-shadow: 1px 1px 2px rgba(79, 80, 82, 0.05),
    2px 3px 10px rgba(79, 80, 82, 0.06), 2px 3px 15px rgba(79, 80, 82, 0.1);
}

.card img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* TOP BANNER & MAX BUTTON */
.c-site-wrapper {
  margin-bottom: 4rem;
}

.custom-global-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-width: 100%;
  padding: 1rem 0.5rem;
  background: var(--wp--preset--color--dark-grey);
  background-image: url("/img/promobetboo/betboo-hero-mobile-70-resized.webp");
  background-size: cover;
  background-position: 50% 95%;
}

.mb-center {
  text-align: center;
}

.custom-global-banner a:first-child {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* .custom-global-banner .top-btn:hover,
.max-button-button:hover {
  background-color: var(--wp--preset--color--luminous-vivid-amber);
  color: black;
} */

@media (max-width: 1050px) {
  .styled-h1 {
    font-size: 60px;
  }
}

@media (max-width: 950px) {
  #hamburger {
    display: block;
  }

  .nav {
    height: 100%;
    width: 250px;
    background-color: var(--color-1);
    position: fixed;
    top: 0;
    right: -250px;
    transition: 0.3s;
    overflow-y: auto;
    color: white;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: white solid 1px;
  }
  .menu-open .nav {
    right: 0;
  }
  .logo img {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  main {
    margin-top: var(--s2);
  }
  body {
    margin-bottom: var(--s4);
  }
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }
  .header-container {
    flex-wrap: wrap;
    gap: var(--s-1);
    padding-block: var(--s-1);
  }
  .cta-buttons {
    flex-basis: 100%;
    order: 3;
    margin-inline: auto;
    justify-content: center;
  }
  h1 {
    font-size: var(--s2);
  }
  h2 {
    font-size: var(--s2);
  }
  h3 {
    font-size: var(--s1);
  }
  h4 {
    font-size: var(--s0);
  }
  h5 {
    font-size: var(--s0);
  }
  h6 {
    font-size: var(--s0);
  }
  body {
    font-size: 15px;
  }
  .styled-h1 {
    margin-inline: auto;
    font-size: 35px;
    color: rgb(241, 241, 241);
    text-align: center;
  }
  .content-wrapper {
    width: revert;
  }
  .wrapper {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .custom-global-banner {
    flex-direction: column;
    top: revert;
    bottom: 0;
    border-top: 1px solid var(--wp--preset--color--primary);
    gap: 0.5rem;
    padding: 0.7rem 0.7rem;
  }
  .custom-global-banner a {
    text-align: center;
    font-size: 15px;
  }

  .top-btn {
    font-size: 15px;
  }
}
