/* CSS Variables */
:root {
  --default-font: "Helvetica Neue", "Helvetica", "Roboto", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --darkest-background: rgba(0, 0, 0, 1);
  --darkest-color: rgb(0, 0, 0);
  --main-color: rgba(255, 117, 24, 1);
  --whitest: #ffffff;
  --grayest: #eeeeee;
  --blackest: #000000;
  --gold: #b39b6d;
  --meta: #A1D000;
  --ponti: #192852;
}

/* Base Styles */
html,
body {
  overflow-y: auto;
  font-family: var(--default-font);
  font-weight: 400;
  font-size: 16px;
}

body {
  overflow: hidden;
}

.h4 {
  font-weight: 300;
}

strong {
  font-weight: 700;
}

/* Header */
header {
  position: relative;
  z-index: 3000;
  background-color: var(--whitest);
  border-radius: 0 0 1rem 1rem;
}

header h1 span,
header .links span span {
  color: var(--main-color);
}

/* Container Breakpoints */
@media (min-width: 576px) {

  .container,
  .container-sm {
    max-width: 540px;
  }
}

@media (min-width: 768px) {

  .container,
  .container-md,
  .container-sm {
    max-width: 100%;
  }
}

@media (min-width: 992px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1140px;
  }
}

/* Guide Lines */
.guide-h-double-100 {
  border-top: 1px solid var(--main-color);
  border-bottom: 1px solid var(--main-color);
  width: 200vw;
  height: 100%;
  position: absolute;
  left: -100%;
  top: 0;
}

.guide-v-double-100 {
  border-right: 1px solid var(--main-color);
  border-left: 1px solid var(--main-color);
  height: 130vh;
  width: calc(100% - 1.5rem);
  position: absolute;
  top: -5%;
}

.guide-v-double-100-short {
  border-right: 1px solid var(--main-color);
  border-left: 1px solid var(--main-color);
  height: 80vh;
  width: calc(100% - 1.5rem);
  position: absolute;
  top: -200%;
}

.guide-v-short {
  border-right: 1px solid var(--main-color);
  border-left: 1px solid var(--main-color);
  height: 200%;
  width: calc(100% - 1.5rem);
  position: absolute;
  top: -50%;
  z-index: 2000;
}

/* Tiles */
.tile {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
  position: relative;
  border-radius: 1rem;
}

.tile-xl {
  height: calc(400px + 1.5rem);
  border-radius: 2rem;
  padding: 1px;
}

.tile img {
  max-height: 60%;
  max-width: 60%;
  height: auto;
  display: block;
}

.tile-xl img {
  max-height: 70%;
  max-width: 70%;
}

img.full {
  max-height: 100%;
  max-width: 100%;
}

/* Tile Panels */
.tile:not(.carousel):not(.tile-xl) {
  position: relative;
  overflow: hidden;
}

.tile-panel {
  position: absolute;
  bottom: -100%;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 117, 24, 0.95);
  color: white;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
  font-weight: 300;
}

.tile-panel h3 {
  font-size: 1.6rem;
}

.tile-panel p,
.tile-end p {
  margin: 0;
  font-size: 1.1rem;
  line-height: normal;
}

.tile-end .option::after {
  background-color: var(--blackest);
}

.tile-end img {
  max-height: 100%;
  max-width: none;
}

/* Logo */
.logo img {
  height: 40px;
}

/* Links */
.links>div {
  height: 40px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 2;
}

/* Colors */
.color-whitest {
  color: var(--whitest);
  fill: var(--whitest);
}

.color-blackest {
  color: var(--blackest);
  fill: var(--blackest);
}

.color-meta {
  color: var(--meta);
  fill: var(--meta);
}

.color-ponti {
  color: var(--ponti);
  fill: var(--ponti);
}

/* Background Colors */
.bg-main {
  background-color: var(--main-color);
}

.bg-blackest {
  background-color: var(--blackest);
}

.bg-grayest {
  background-color: var(--grayest);
}

.bg-whitest {
  background-color: var(--whitest);
}

.bg-gold {
  background-color: var(--gold);
}

.border-blackest {
  border-color: var(--blackest);
}

/* Project Backgrounds */
.flittz-bg {
  background: linear-gradient(to right, #ff0c01, #ffb041);
}

.flittz-bg-dark {
  background: linear-gradient(to right, #243c55, #348c94);
}

.flittz-bg-light {
  background: linear-gradient(45deg, #d0d0d0, #f0f0f0);
}

.meta-bg-green {
  background: url(../img/visuals/meta/meta-bg-green.svg);
  background-size: auto 100%;
  background-position: left center;
}

.meta-bg-blue {
  background: url(../img/visuals/meta/meta-bg-blue.svg);
  background-size: 100%;
}

.meta-bg-mix {
  background: url(../img/visuals/meta/meta-bg-mix.svg);
  background-size: auto 100%;
  background-position: center;
}

.meta-bg-uru {
  background: url(../img/visuals/meta/uru.webp);
  background-size: auto 100%;
  background-position: center left;
}

.meta-bg-1 {
  background: url(../img/visuals/meta/meta-congreso-1.webp);
  background-size: 100%;
  background-position: left -60px;
}

.meta-bg-2 {
  background: url(../img/visuals/meta/meta-congreso-2.webp);
  background-size: 100%;
  background-position: 0 -100px;
}

.meta-bg-3 {
  background: url(../img/visuals/meta/meta-congreso-3.webp);
  background-size: 100%;
  background-position: left -70px;
}

.meta-bg-4 {
  background: url(../img/visuals/meta/meta-congreso-4.webp);
  background-size: 100%;
  background-position: left center;
}

.ponti-bg {
  background: url(../img/visuals/ponti-tosi/ponti.webp);
  background-size: cover;
}

.ponti-bg-inverted {
  background: url(../img/visuals/ponti-tosi/ponti.webp);
  background-size: 130%;
  background-position: bottom;
}

.eg-bg {
  background: url(../img/visuals/eg/bg-lines-opa10.svg);
  background-size: 150%;
  background-color: rgb(0, 81, 95);
}

.eg-bg-inverted {
  background: url(../img/visuals/eg/bg-lines-opa10.svg);
  background-size: 150%;
  background-color: var(--grayest);
  background-position: right;
}

.eg-bg-mobile {
  background: url(../img/visuals/eg/mobile.webp);
  background-size: 200%;
  background-color: var(--grayest);
  background-position: center;
}

.nestseekers-bg-1 {
  background: url(../img/visuals/nestseekers/print-poster-99-john-deco-lofts-condominium-ad-subway-new-york-ny-couple.jpg);
  background-size: cover;
  background-color: rgb(0, 81, 95);
}

.nestseekers-bg-2 {
  background: url(../img/visuals/nestseekers/blurred-city-lights.webp);
  background-size: cover;
}

.nestseekers-bg-3 {
  background: url(../img/visuals/nestseekers/defocused-city.webp);
  background-size: cover;
}

.nestseekers-bg-4 {
  background: url(../img/visuals/nestseekers/defocused-city-2.webp);
  background-size: cover;
}

.farolatino-bg {
  background-color: #f06435;
}

.virtualmind-bg {
  background-color: #2FB4E9;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  margin-left: auto;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--main-color);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

.hamburger.open span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

}

/* Carousel */
.carousel-indicators {
  bottom: 20px;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  padding: 15px;
  width: 50px;
  height: 50px;
  background-size: 50%;
}

#carouselPontiTosi .carousel-control-next-icon,
#carouselPontiTosi .carousel-control-prev-icon {
  background-color: initial;
  border-radius: 50%;
  padding: 15px;
  width: 50px;
  height: 50px;
  background-size: 50%;
}

.carousel-control-next,
.carousel-control-prev {
  margin: 10px;
}

/* Language & Options */
#lang-en.active,
#lang-es.active {
  border-bottom: 4px solid var(--main-color);
  padding-bottom: 3px;
  color: var(--main-color);
  cursor: default;
}

.option {
  z-index: 2001;
  position: relative;
  cursor: pointer;
  padding-bottom: 3px;
}

.option::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 4px;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.option:hover::after {
  width: 100%;
  transform: translateX(-0%) scale(1);
}

/* Links */
.tile-xl a {
  text-decoration: none;
  position: relative;
  font-weight: 300;
  transition: all 0.3s ease-in-out;
  opacity: 0.75;
}

.tile a:hover {
  opacity: 1;
}

.tile-xl a::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: translateX(-50%) scale(1);
}

/* SVG Icons */
.svg-link-icon {
  width: 22px;
  vertical-align: middle;
  margin-bottom: 2px;
}

.svg-link-icon-xl {
  width: 50px;
}

.link {
  color: inherit;
  text-decoration: none;
}

.link.main-color {
  color: var(--main-color);
}

/* Mobile Tile Pulse Dots */
@media (max-width: 767px) {
  .tile:not(.carousel):not(.tile-xl):not(.tile-end):not(.tile-message)::before {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 8px;
    aspect-ratio: 1;
    background-color: var(--main-color);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 2s infinite;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .tile:not(.carousel):not(.tile-end):not(.tile-message).active::before {
    width: 600px;
    bottom: -150px;
    right: -150px;
    background-color: rgba(255, 117, 24, 0.95);
    animation: none;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.75);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Styles */

@media (max-width: 768px) {
  .bg-h-100 {
    background-size: auto 100%;
    background-position: center;
  }

  .bg-right {
    background-position: 25% center;
  }

}

@media (max-width: 767px) {
  header {
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 135px;
    background-color: rgba(356, 356, 356, 0.9);
  }

  body {
    padding-top: 140px;
  }

  .col-4,
  .col-8 {
    width: 100%;
  }

  .tile {
    height: 200px;
  }

  .tile-xl {
    height: 400px;
  }

  .hamburger {
    display: block;
  }

  header .links {
    width: 100%;
    z-index: 2500;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 0;
    transition: max-height 0.3s ease;
    opacity: 0;
  }

  header .links.open {
    max-height: 300px;
    opacity: 1;
  }

  header .links .row {
    justify-content: flex-start;
  }

  header .links .fa-brands {
    font-size: 1rem;
    vertical-align: text-bottom;
  }

  .carousel-indicators {
    bottom: 10px;
  }

  .carousel-indicators button {
    width: 8px;
    height: 8px;
  }

  .tile-panel {
    background-color: transparent;
  }

  .tile:not(.carousel):not(.tile-xl).active .tile-panel {
    bottom: 0;
    opacity: 1;
  }

  .tile:not(.carousel):not(.tile-xl) .tile-panel {
    opacity: 0;
    transition: opacity 0.2s ease 0.2s;
  }

  .bg-left {
    background-position: left center;
  }

  .tile-message {
    max-height: 250px;
    height: auto;
  }

}

/* Desktop Styles */
@media (min-width: 768px) {
  .tile:not(.carousel):not(.tile-end):not(.tile-message):hover .tile-panel {
    bottom: 0;
  }
}

.border-blackest {
  /* NOT THAT BLACKEST */
  border-color: rgba(213, 85, 0, 0.9);

}