/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  background-image: url("../img/bg.webp");
  background-repeat: no-repeat;
  font-family: "Lexend", sans-serif;
  box-sizing: border-box;
  background-size: cover;
  width: 100%;
  height: 100%;
  background-attachment: fixed;
}

body {
  color: #fff;
  padding:0;
  margin:0;
  header {
    margin: 0 auto;
    width: auto;
    text-align: center;

    #logo {
      width: 300px;
      animation: 'intro_logo' 2s;
    }
  }
}

@keyframes intro_logo {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
#background{
  width: 100%;
  height: 100%;
  position: fixed;
  display: block;
  z-index: -2;
  mix-blend-mode: color-dodge;
}
/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}
footer{
  width: 100%;
  text-align: center;
  background: #0000008c;
  height: 80px;
  padding: 20px 0;
  margin-top: 50px;
  font-size: small;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

a{
  color : #FFE138;
  transition: all 0.2s;
}
a:hover{
  color : #FF1E56;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

.card-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;

  .card {
    width: calc(calc(100% - 50px) / 4);
    padding: 20px;
    box-sizing: border-box;

    .logo {
      transform: translateY(25%);
      padding: 3%;
      box-sizing: border-box;
      margin: 0 20%;
      width: 60%;
      aspect-ratio: 16/9;
      transition: all 0.5s;
      backdrop-filter: blur(30px);
      background: #ffffff36;
      display: block;
      box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;

      &:hover {
        transform: translateY(30%) scale(1.2);
      }

      img {
        filter: drop-shadow(0px 0px 4px #00000083);
        height: 100%;
        width: 100%;
        object-fit: contain;
      }

    }

    .content {
      background: rgba(0, 0, 0, 0.6);
      padding: 20px;
      padding-top: 50px;
      padding-bottom: 80px;
      box-sizing: border-box;
      color: #FFF;
      width: 100%;
      text-align: center;
      background-color: #47121d;
      box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
      background-size: cover;
      background-blend-mode: soft-light;
    }

    .title {
      font-size: 120%;
      font-weight: bold;
      position: relative;
      text-shadow: 4px 0px 5px rgba(0, 0, 0, 0.73);

    }

    .button {
      color: #FFF;
      font-weight: bold;
      text-decoration: none;
      border-radius: 3px;
      padding: 10px 20px;
      text-transform: uppercase;
      transition: all 0.5s;
      box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
      background-image: url('../img/bgbt.png');
      background-size: 200% 200%;
      background-position: 100% 0%;

      &:hover {
        color: #000;
        background-position: 0% 50%;
      }

      &.disabled {
        &:hover {
          color: #FFF;
        }

        background: linear-gradient(312deg, rgb(14, 137, 106) 0%, rgb(14, 239, 160) 98%);
      }
    }
  }
}

@media screen and (max-width: 1024px) {
  .card-list {
    .card {
      width: calc(calc(100% - 20px) / 2 );
      padding: 0px 10px;
      margin-bottom:50px;
      .logo {
        margin: 0 10%;
        width: 80%;
      }
    }
  }
}
@media screen and (max-width: 500px) {
  .card-list {
    .card {
      width: calc(calc(100% - 40px) / 1);
      padding: 0px;
      margin-bottom:50px;
      .logo {
        margin: 0 10%;
        width: 80%;
      }
    }
  }
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {

  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}