﻿::selection {
  background-color: #1d3562;
  color: #ffff;
}

::-moz-selection {
  background-color: #1d3562;
  color: #ffff;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

html.sr .load-hidden {
  visibility: hidden;
}

footer {
  background-color: #ededed;
}

.img-logo {
  max-width: 300px;
  max-height: 86px;
}

.nav-item {
  position: relative;
  white-space: nowrap;
}

.nav-link {
  width: min-content;
  border-bottom: transparent 4px solid;
  text-transform: capitalize;
  letter-spacing: 1px;
  font-size: large
}

.nav-link:hover {
  border-bottom: #1d3562 4px solid;
}

.dropdown {
  padding-top: 0;
  display: grid;
  grid-template-columns: min-content min-content;
  gap: 1px;
  align-items: center;
  justify-content: space-between;
}

.dropdown-menu li {
  background-color: #1d3562;
}

.dropdown-menu {
  padding: 0;
  border: none;
  overflow: hidden;
  display: block;
  perspective: 200px;
  max-height: 0px;
  flex-direction: column;
  grid-column: -1 / 1;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: transparent;
  width: 100%;
  transition: all 0.3s;
}

.dropdown-menu .links-area:hover {
  background-color: #0b5ed7;
}

.links-area:hover {
  background-color: #4E6693;
}

.text-blue {
  color: #1d3562 !important;
}

.bg-primary {
  background-color: #ededed!important;
}

.fixed-icon {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fixed-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.svg-arrow {
  cursor: pointer;
  fill: #1d3562;
  height: 15px;
  width: 15px;
  transition: transform 0.3s;
}

.svg-arrow.active {
  transform: rotate(180deg);
}

.svg-arrow.active + .dropdown-menu {
  max-height: 200px;
}

.dropdown-item:hover {
  background-color: transparent;
}

@media (min-width: 992px) {
  .nav-item {
    position: relative;
  }

  .dropdown {
    justify-content: space-between;
  }

  .dropdown:hover .svg-arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    overflow: unset;
    display: none;
    max-height: 150px;
    padding: 12px 0 0 0;
    margin-top: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    border: none;
  }

  .dropdown-menu li {
    opacity: 0;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown-menu:hover {
    display: block;
  }

  .dropdown:hover li {
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.03, 0.76, 0.61, 1.15);
  }

  .enter-from-left:hover li {
    animation-name: enterFromLeft;
  }

  .x-rotation:hover li {
    animation-name: xRotation;
  }

  .z-translate:hover li {
    animation-name: zTranslate;
  }

  .weir-enter-from-left:hover li {
    animation-name: weirEnterFromLeft;
  }

  .dropdown:hover li:nth-child(2) {
    animation-delay: 0.1s;
  }

  .dropdown:hover li:nth-child(3) {
    animation-delay: 0.2s;
  }

  .dropdown:hover li:nth-child(4) {
    animation-delay: 0.3s;
  }

  .dropdown-menu li:nth-child(1) ::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #1d3562 transparent;
  }
}

@media (max-width: 1020px) {
  .nav-link {
    letter-spacing: 0.5px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 1087px) {
  .nav-link {
    font-size: medium;
  }
}

@media (max-width: 426px) {
  .img-logo {
    max-width: 200px;
    max-height: 55px;
  }
}

@keyframes enterFromLeft {
  0% {
    display: block;
    opacity: 0;
    transform: translateX(-200%);
  }

  100% {
    display: block;
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes xRotation {
  0% {
    display: block;
    opacity: 0;
    transform: rotateX(180deg);
  }

  100% {
    display: block;
    opacity: 1;
    transform: rotateX(0);
  }
}

@keyframes zTranslate {
  0% {
    display: block;
    opacity: 0;
    transform: translateZ(75px) translateY(50%);
  }

  100% {
    display: block;
    opacity: 1;
    transform: translateZ(0) translateY(0);
  }
}

@keyframes weirEnterFromLeft {
  0% {
    display: block;
    opacity: 0;
    transform: rotateY(90deg) translateX(-50%);
  }

  25% {
    opacity: 1;
  }

  100% {
    display: block;
    opacity: 1;
    transform: rotateY(0) translateX(0);
  }
}




/* switch settings 👇 */
.ui-switch {
    /* switch */
    --switch-bg: rgb(135, 150, 165);
    --switch-width: 48px;
    --switch-height: 20px;
    /* circle */
    --circle-diameter: 30px;
    --circle-bg: rgb(0, 56, 146);
    --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
}

.ui-switch input {
    display: none;
}

.slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--switch-width);
    height: var(--switch-height);
    background: var(--switch-bg);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}

    .slider .circle {
        top: calc(var(--circle-inset) * -1);
        left: 0;
        width: var(--circle-diameter);
        height: var(--circle-diameter);
        position: absolute;
        background: var(--circle-bg);
        border-radius: inherit;
        background-image: url("../images/uk-icon.png");
        background-repeat: no-repeat;
        background-position: center center;
        -webkit-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
        -o-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
        transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
    }

        .slider .circle::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.75);
            border-radius: inherit;
            -webkit-transition: all 500ms;
            -o-transition: all 500ms;
            transition: all 500ms;
            opacity: 0;
        }

/* actions */

.ui-switch input:checked + .slider .circle {
    left: calc(100% - var(--circle-diameter));
    background-image: url("../images/spain-icon.png");
}

.ui-switch input:active + .slider .circle::before {
    -webkit-transition: 0s;
    -o-transition: 0s;
    transition: 0s;
    opacity: 1;
    width: 0;
    height: 0;
}

