/* http://meyerweb.com/eric/tools/css/reset/
   v5.0.2 | 20191019
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
main,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}

/* HTML5 hidden-attribute fix for newer browsers */
*[hidden] {
  display: none;
}

body {
  line-height: 1;
}

menu,
ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  all: unset;

  /* colors */
  --main-clr: hsl(351, 56%, 45%);
  --main-hue: 351;
  --main-sat: 56%;
  --main-lig: 45%;
  --main-clr: hsl(var(--main-hue), var(--main-sat), var(--main-lig));

  --dark-clr: #1f1f1f;
  --dark-hue: 0;
  --dark-sat: 0%;
  --dark-lig: 12%;
  --dark-clr: hsl(var(--dark-hue), var(--dark-sat), var(--dark-lig));

  --light-clr: #fcfefb;
  --light-hue: 96;
  --light-sat: 71%;
  --light-lig: 99%;
  --light-clr: hsl(var(--light-hue), var(--light-sat), var(--light-lig));

  --bg-clr: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05));
  --shadow-clr: rgba(0, 0, 0, 0.25) 0px 2px 1px -1px, rgba(0, 0, 0, 0.20) 0px 1px 1px 0px, rgba(0, 0, 0, 0.15) 0px 1px 3px 0px;
  /* colors ENDs */

  --default-transition: 0.2s ease-in-out;

  /* Spaceing */
  --space-inside: calc(1em / 1.15);
  --space-between: calc(1em * 1.75);
  /* Spacing END */

  /* font family */
  --font-family: 'Open Sans', sans-serif;
  font-family: var(--font-family);
  /* font */

  --min-font-size: 15px;
  --max-font-size: 36px;
  --scaler-size: 0.9vw;
  font-size: clamp(15px, 0.9vw, 26px);
  font-size: clamp(var(--min-font-size), var(--scaler-size), var(--max-font-size));

  --max-page-width: 2000px;

}

body {
  color: hsla(var(--light-hue), var(--light-sat), var(--light-lig), 0.85);
  background-color: var(--dark-clr) !important;
  line-height: 1.7;
}

a {
  color: hsla(var(--light-hue), var(--light-sat), var(--light-lig), 0.85);

  &:is(:hover, :active, :focus) {
    color: hsla(var(--light-hue), var(--light-sat), var(--light-lig), 1);
  }
}

.ft-material-icon {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.ft-app {
  max-width: var(--max-page-width);
  margin: auto;

  & :is(h1, h2, h3, h4, h5, h6) {
    font-weight: 500;
  }

  & h1 {
    font-size: 2.5rem;
  }
  & h2 {
    font-size: 2.15rem;
  }
  & h3 {
    font-size: 2.85rem;
  }
  & h4 {
    font-size: 1.55rem;
  }
  & h5 {
    font-size: 1.35rem;
  }
  & h6 {
    font-size: 1.15rem;
  }

  /*--- navg ---*/
  .ft-navg {
    background-color: var(--dark-clr);
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    box-shadow: var(--shadow-clr);
    background-image: var(--bg-clr);
    overflow: hidden;
    margin-bottom: 32px;
    border-radius: 0px !important;

    /*--- navg log ---*/
    .ft-navg-top--logo {
      box-sizing: border-box;
      display: flex;
      flex-flow: wrap;
      width: 100%;
      margin: 0px;
      align-items: center;
      height: 120px;

      .ft-navg-top--logo-line {
        box-sizing: border-box;
        margin: 0px;
        flex-direction: row;
        background-color: var(--main-clr);
        height: 1px;
        width: 75px;
        flex: 1 1 0%;
      }

      .ft-navg-top--logo-text {
        margin: 0px;
        font-weight: 400;
        font-size: 3rem;
        padding: 0px 40px;
      }
    }
    /*--- navg log END ---*/

    .ft-navg-bottom {
      overflow: hidden;
      min-height: 48px;
      display: flex;
      flex-grow: 1;

      .ft-navg-links {
        flex: 0 0 calc(100% - (30px + var(--space-inside)));
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        position: relative;
        white-space: nowrap;
        height: 55px;

        @media screen and (max-width: 750px) {
          justify-content: flex-start;
        }

        &:has(.ft-menu-list--open:checked) {
          height: auto;
        }

        .ft-navg-links--item {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          box-sizing: border-box;
          background-color: transparent;
          text-transform: uppercase;
          max-width: 360px;
          min-width: 90px;
          position: relative;
          flex-shrink: 0;
          overflow: hidden;
          white-space: normal;
          text-align: center;
          flex-direction: column;
          color: inherit;
          opacity: 0.6;

          &[data-ham] {
            position: absolute;
            right: calc(var(--space-inside)*-2.5);
            top: 0;
            transform: translateY(50%);
            width: 30px;
            min-width: 0;

            @media screen and (min-width: 750px) {
              display: none;
            }
          }

          .ft-navg-links--item-link {
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            padding: var(--space-inside) calc(var(--space-inside) * 1.5);

            &:hover {
              background-color: var(--main-clr);
              transition: all 0.35s;
            }
          }
        }
      }
    }
  }
  /*--- navg END ---*/

  .ft-page-wrapper {
    display: grid;
    grid-gap: var(--space-between);
    grid-template-columns: 9fr clamp(200px, 25%, calc(var(--max-page-width) / 4));
    margin: var(--space-between) calc(var(--space-between) / 2);
    padding-left: var(--space-inside);
    padding-right: var(--space-inside);

    .ft-page-text {
      grid-column: 1 / span 2;
      grid-row: 2;
    }

    .ft-main {
      grid-column: 1;
      grid-row: 1;

      @media screen and (max-width: 800px) {
        grid-column: 1 / span 2;
      }
    }

    .ft-asidebar {
      grid-column: 2;

      @media screen and (max-width: 800px) {
        grid-column: 1 / span 2;
      }
    }

    .ft-box {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-between);
      padding: var(--space-inside);
      box-sizing: border-box;
      box-shadow: var(--shadow-clr);
      background-image: var(--bg-clr);
      border-radius: 15px;

      .ft-box-head {
        flex: 0 0 100%;
        font-size: 1.5rem;

        .ft-box-head--title {
          color: hsla(var(--light-hue), var(--light-sat), var(--light-lig), 0.85);
          text-decoration: none;
          font-size: 1.25em;
        }
      }

      .ft-box-body {
        width: 100%;
        flex: 0 0 100%;
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-between);

        .ft-box-body-item {
          flex: 0 0 100%;
          display: flex;
          flex-wrap: wrap;
          gap: var(--space-inside);
        }
      }
    }

    .ft-sch {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: var(--space-between);

      .ft-sch-game {
        display: flex;
        gap: var(--space-inside);
        flex-wrap: wrap;

        .ft-sch-game-item {
          text-decoration: none;
          align-items: center;

          &:hover {
            color: var(--main-clr);
          }

          .ft-sch-game--status {
            line-height: 1;
          }

          .ft-sch-game--name {
            flex: 1 1 0px;
          }

          .ft-sch-game--time {
            flex: 0 0 125px;
            text-align: right;
          }
        }
      }
    }

    .ft-asidebar {
      .ft-blog {
        width: auto;

        .ft-blog-item {
          text-decoration: none;

          .ft-blog-item--img {
            & img {
              max-width: 100%;
              height: auto;
            }
          }
        }
      }
    }

  }

  &[data-page="home"] {

    .ft-main {

      .home-navg {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-between);

        .home-navg-item {
          flex: 0 0 100%;

          &>a {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            gap: var(--space-inside);
            text-decoration: none;

            & img {
              width: 36px;
            }
          }
        }
      }
    }
  }

  &[data-page="game"] {

    .ft-main {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      justify-content: center;
      gap: var(--space-between);
      align-content: flex-start;

      &[data-status="true"] {
        .ft-links {
          display: block;
        }
      }

      .ft-game {

        .ft-game-body {
          align-items: center;

          @media screen and (max-width: 800px) {
            flex: 0 0 100%;
            justify-content: center;
            text-align: center;
          }

          .ft-game--team {
            flex: 1 1;
            font-size: 1.1rem;

            @media screen and (max-width: 800px) {
              flex: 0 0 100%;
            }

            &[data-team="2"] {
              text-align: right;

              @media screen and (max-width: 800px) {
                text-align: center;
              }
            }
          }

          .ft-game--sch {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: var(--space-inside);
            text-align: center;

            .ft-game--time {
              flex: 0 0 100%;
            }
          }
        }
      }

      .ft-links {
        display: none;

        .ft-links-body {
          display: flex;
          flex-wrap: wrap;

          .ft-links--item {
            flex: 0 0 100%;
            display: flex;
            gap: var(--space-between);

            & [data-type="link"] {
              flex: 0 0 200px;
              display: flex;
              align-items: center;
              gap: var(--space-inside);
              text-decoration: none;

              .ft-material-icon {
                font-size: 1.25rem;
              }
            }
          }
        }
      }
    }
  }
}

.ft-footer {
  padding-left: var(--space-inside);
  padding-right: var(--space-inside);
}