/*
 * Theme Name: Rescue
 * Description: A theme designed for the Firefighter Combat Challenge 2022
 * Made with love by Andres Holts
 * Powered by the wonderful Timber template engine by Upstatement
 */

 @font-face {
  font-family: 'Bebas-Neue';
  src: url(/wp-content/themes/rescue/fonts/BebasNeue-Regular.ttf);
  font-weight: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url(/wp-content/themes/rescue/fonts/Montserrat.ttf);
  font-weight: normal;
}

:root {
  /* colors */
	--black: #181818;
	--white: #ecf0f1;
  --red: #d10f33;
  --green: rgb(0, 125, 0);

  /* transparent colors */
	--black-t: #181818ee;
  --black-t-2: rgba(0, 0, 0, .58);
	--white-t: #ecf0f1ee;
  --red-t: #d10f33cc;
	
	/* shadow */
	--shadow-color: #00000029;
	--box-shadow: 0 3px 6px var(--shadow-color);
	--text-shadow: var(--box-shadow);

	/* font weights */
	--font-weight-light: 300;
	--font-weight-regular: 400;
	--font-weight-semi-semibold: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	/* border radius */
	--border-radius: 2px;
}

html {
  box-sizing: border-box;
	line-height: 1.15;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
  font-family: 'Montserrat';
}
html *, html *:before, html *:after { box-sizing: inherit; }

body {
	margin: 0 !important;
	font-weight: var(--font-weight-regular);
	color: var(--black);
	font-size: 15px;
	line-height: 1.5;

  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url(/wp-content/themes/rescue/images/background-2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

p { margin: 0; }
a { text-decoration: none; }

img { image-rendering: -webkit-optimize-contrast !important; }

input,
textarea,
button {
  font-family: 'Montserrat';
  border: none;
  outline: none;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  font-size: 1.2em;
}
input,
textarea { background-color: var(--white-t); }
input { padding: .6em 1em; }
textarea {
  height: 14em;
  padding: 1em;
  resize: none;
  white-space: pre-wrap;
}
button {
  color: var(--white);
  background-color: var(--red-t);
  padding: .8em 2em;
  cursor: pointer;
  transition: .1s ease-in-out;
}
button:hover { opacity: .8; }
input:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--black-t-2);
}
input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  perspective: 10px;
  position: relative;
  scroll-behavior: smooth;
  /*background-color: #000;*/
}

.background {
  position: absolute;
  /*height: 2880px;
  max-height: 100%;
  width: 100%;
  z-index: -1;
  transform: translateZ(-160px) scale(18);
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url(/wp-content/themes/rescue/images/background-2.jpg);
  background-repeat: no-repeat;
  background-size: cover;*/
}

/* Header */

header {
  padding: 6em 4em;
}
.hdr-wrap {
  max-width: 1480px;
  margin: 0 auto;
}

.hdr-top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hdr-wrap .hdr-logo {
  font-family: 'Bebas-Neue';
  font-size: 5.2em;
  margin: 0;
  text-shadow: var(--text-shadow);
  line-height: 1;
}
.hdr-wrap a {
  color: var(--white);
}

/* nav */
.navigation { position: relative; }
.navigation ul {
  display: flex;
  align-items: center;
  list-style-type: none;
  gap: 2em;
  margin: 0;
  padding: 0;
}
.navigation ul li {
  position: relative;
  margin: 0;
  padding: 0;
}
.navigation ul li a {
  color: var(--white);
  font-size: 1.2em;
  transition: .1s ease-in-out;
}
.navigation ul li a:hover { opacity: .8; }
.navigation ul li a img {
  height: 2em;
  width: 2em;
}
.navigation ul li a span { display: none; }
.navigation .nav-dropdown {
  position: absolute;
  display: none;
  padding-top: 1em;
}
/*.nav-dropdown-trigger:hover .nav-dropdown {
  display: block;
}*/
.nav-dropdown.nav-visible {
  display: block;
}
.navigation .nav-dropdown ul {
  display: block;
  padding: .4em 2.4em;
  background-color: var(--black-t-2);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.navigation .nav-dropdown li {
  margin: .8em 0;
}
.navigation .header-mobile-toggle {
  display: none;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 3.4em;
  margin: 0;
  padding: 0;
  line-height: 1;
}

@media only screen and (max-width: 1520px) {
  /*hdr-wrap .hdr-logo { font-size: 4em; }*/
  
  .navigation ul li a img { display: none; }
  .navigation ul li a span { display: inline; }
  .navigation .header-mobile-toggle { display: block; }
  .navigation nav > ul { display: none; }
  .navigation nav > ul.visible {
    display: block;
    position: absolute;
    top: -1.2em;
    right: -1.2em;
    width: 18em;
    padding: 5.4em 1.8em .8em 1.8em;
    text-align: right;
    background-color: var(--black-t-2);
    border-radius: var(--border-radius);
  }
  .navigation nav > ul.visible > li {
    margin: .6em 0;
  }
  .navigation .nav-dropdown {
    position: relative;
    padding-top: 0;
  }
  .navigation .nav-dropdown ul {
    display: block;
    padding: 0 .8em 0 0;
    background-color: transparent;
    box-shadow: none;
  }
  .navigation .nav-dropdown li {
    margin: .4em 0;
  }
  .navigation .nav-dropdown li a {
    color: var(--red);
  }
}
/*@media only screen and (max-width: 1260px) {
  .navigation .header-mobile-toggle { display: block; }
  .navigation nav > ul { display: none; }
}*/
@media only screen and (max-width: 896px) {
  .hdr-wrap .hdr-logo { font-size: 5em; }
}
@media only screen and (max-width: 767px) {
  header { padding: 2.4em 1.8em; }
  .home .hdr-top-container { justify-content: center; }
  .hdr-wrap .hdr-logo { font-size: 3.4em; margin-top: .08em; text-align: center; }
  .navigation .header-mobile-toggle { font-size: 2.2em; }
  .navigation nav > ul.visible { padding: 4.2em 1.8em .8em 1.8em; }

  .home .header-mobile-toggle { display: none; }
  .navigation-homepage-mobile { padding-top: 1.4em; }
  .navigation-homepage-mobile nav > ul { display: flex; flex-direction: column; gap: 1.2em; }
  .navigation-homepage-mobile nav > ul li { margin: 0; max-width: 144px; text-align: center; }
  .navigation-homepage-mobile nav > ul li a { font-size: 1.2em; }
  .navigation-homepage-mobile .nav-dropdown ul { padding: 0; gap: .1em; display: flex; flex-direction: column; align-items: center; }
  .navigation-homepage-mobile .nav-dropdown ul li a { font-size: 1em; line-height: 1; }
  .navigation-homepage-mobile .nav-dropdown-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
@media only screen and (max-width: 340px) {
  .hdr-wrap .hdr-logo { font-size: 3em; }
}

/* Header end */

/* Content */
/* ======= */

#content {
  flex: 1;
}
.content-wrapper {
  padding: 0 4em 8em 4em;
}
.home .content-wrapper {
  padding: 0 4em 2em 4em;
}
.content-main-wrapper {
  max-width: 1480px;
  margin: 0 auto;
}
.homepage.content-main-wrapper {
  display: flex;
  gap: 4em;
}
@media only screen and (max-width: 1520px) {
  .homepage.content-main-wrapper {
    display: block;
  }
}
h1 {
  color: var(--red);
  font-size: 4em;
  margin: 0;
  font-family: 'Bebas-Neue';
}
p.tagline {
  margin: 0;
  font-size: 1.4em;
  color: var(--white); 
}
@media only screen and (max-width: 767px) {
  .content-wrapper { padding: 0 2.4em 6em 2.4em; }
  .home .content-wrapper { padding: 0 2.4em 2em 2.4em; }
  h1 { line-height: 1.1; font-size: 3.8em; }
  p.tagline {
    margin: .8em 0 0 0;
    font-size: 1.2em;
  }
}

/* Home */

.homepage .intro-container {
  max-width: 60em;
}

.homepage-nav { display: none; }

.intro-video {
  flex-shrink: 0;
  margin-top: 6em;
  border-radius: 5px;
}
@media only screen and (max-width: 1520px) {
  .intro-video {
    display: none;
  }
}

/* countdown */
.event-countdown-block {
  display: flex;
  flex-direction: column;
  margin-top: 4.4em;
  width: 60%;
  min-width: 32em;
}
.event-countdown-block > p {
  color: var(--white);
  font-size: 2.8em;
  text-shadow: var(--text-shadow);
  font-family: 'Bebas-Neue';
  margin-left: 1em;
  margin-top: .2em;
}
.event-countdown-block .countdown-cards {
  display: flex;
}
.event-countdown-block .countdown-cards div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 8em;
  flex: 1;
  margin-right: 1.2em;
  background-color: var(--red-t);
  border-radius: var(--border-radius);
}
.event-countdown-block .countdown-cards p {
  color: var(--white);
  line-height: 1;
  font-size: 2em;
  font-family: 'Bebas-Neue';
}
.event-countdown-block .countdown-cards p:first-child {
  font-size: 3em;
  font-family: 'Bebas-Neue';
}

@media only screen and (max-width: 767px) {
  .homepage .intro-container {
    margin-top: 6.2em;
  }
  .homepage-nav { display: flex; justify-content: space-between; margin-top: 1.4em; }
  .intro-container .event-countdown-block { display: none; }
  .event-countdown-block .countdown-cards { flex-direction: column; align-items: center; }
  .event-countdown-block > p { font-size: 1.6em; margin-left: 0; text-align: center; }
  .event-countdown-block .countdown-cards p { font-size: 1.2em; }
  .event-countdown-block .countdown-cards p:first-child { font-size: 2em; }
  .event-countdown-block {
    margin-top: 1.2em;
    width: auto;
    min-width: unset;
  }
  .event-countdown-block .countdown-cards div {
    flex: unset;
    height: 4em;
    width: 5em;
    margin-top: .6em;
    margin-right: 0;
  }
}

/* sponsors carousel */
.sponsors-carousel {
  width: 100%;
  margin-top: 10em;
  /*overflow: hidden;*/
}
.sponsors-carousel a {
  display: flex;
  align-items: center;
  margin: 0 1.2em;
  font-size: 3em;
  font-family: 'Bebas-Neue';
  color: var(--white);
}
.sponsors-carousel a img {
  height: 74px;
}
.sponsors-carousel a img.large {
  height: 54px;
}
.sponsors-carousel .js-marquee {
  display: flex;
  align-items: center;
}
@media only screen and (max-width: 767px) {
  .sponsors-carousel a {
    margin: 0 .6em;
  }
}

/* Home end */

/* Card */

.card {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: .1s ease-in-out;
  height: 360px;
  width: 280px;
  padding: 0.8em;
  outline: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 2em;
  word-break: break-word;
  text-transform: uppercase;
  hyphens: auto;
  font-weight: var(--font-weight-bold);
  background-position: center;
  background-repeat: no-repeat;
}
.card:hover { opacity: .8; }
.card:first-child { background-image: url(/wp-content/themes/rescue/images/torva-challenge-1.jpg); }
.card:nth-child(2) { background-image: url(/wp-content/themes/rescue/images/torva-challenge-2.jpg); }
.card:nth-child(3) { background-image: url(/wp-content/themes/rescue/images/torva-challenge-3.jpg); }

/* Card end */

/* =========== */
/* Content end */

/* Footer */

footer {
  width: 100%;
  padding: 4em;
  background-color: var(--black-t-2);
  font-size: 12px;
}
.footer-wrap {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1480px;
  margin: 0 auto;
}
footer p {
  text-align: center;
  font-size: 1em;
  color: var(--white);
}
footer p:first-child {
  font-size: 1.4em;
}
footer a {
  color: var(--white);
  text-decoration: underline;
  transition: .1s ease-in-out;
}
footer a:hover { opacity: .8; }
footer .footer-left a {
  font-size: 3.2em;
  text-decoration: none;
  font-family: 'Bebas-Neue';
}
footer .footer-right {
  display: flex;
  justify-content: flex-end;
  gap: 2.8em;
}
footer .footer-right a {
  text-decoration: none;
}
footer .footer-right svg {
  height: 2.4em;
  width: 2.4em;
}
@media only screen and (max-width: 1042px) {
  footer .footer-left a { font-size: 2.8em; }
  footer p:first-child { font-size: 1.2em; }
}
@media only screen and (max-width: 767px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  footer .footer-left,
  footer .footer-right {
    justify-content: center;
    text-align: center;
  }
  footer .footer-left a { font-size: 3.2em; }
  footer .footer-right { margin-top: 2em; }
}

/* Footer end */

/* Fancy Scroll */

.fancy-scroll {
  transition: .4s ease-in-out;
}
.fancy-scroll.swipe-left {
  transform: translateX(-50vw);
  opacity: 0;
}
.fancy-scroll.swipe-right {
  transform: translateX(50vw);
  opacity: 0;
}
.fancy-scroll.fancy-scroll-active {
  transform: translateX(0);
  opacity: 1;
}

/* Fancy Scroll end */

/* Loader */

.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid var(--red);
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--red) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Loader end */

/* Utilities */

.hide { display: none !important; }
.form-feedback { display: none; font-weight: bold; font-size: 1.4em; }
.feedback-success { color: var(--white) !important; }
.feedback-failure { color: var(--red) !important; }
.invalid-input { border: 2px solid var(--red) !important; background-color: rgb(255, 220, 220); }

/* Utilities end */