@import url("https://use.typekit.net/mwd7los.css");

:root {
    --white: #e8edee;
    --background: #181a1a;
    --gray: #576b69;
    --gradient: linear-gradient(120deg,#8fb9c1,#415c61);
    --white-gradient: linear-gradient(180deg,#e8e8ee,#b9b3b4);
    --temp: linear-gradient(60deg,hsla(189, 89%, 64%, 0.18),hsla(189, 89%, 79%, 0.18));
    --main-color: #8fb9c1;
}

* {
    box-sizing: border-box;
    user-select: none;
}

img {
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    cursor: default;
}

body {
    font-family: 'acumin-pro-wide', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    color: var(--white);
    background-color: var(--background);
    overflow: hidden;
}

.gradient-background {
    height: 100%;
    width: 100%;
    position: fixed;
    background: radial-gradient(60vw 60vw at 10vw top,hsla(189, 77%, 74%, 0.1),hsla(189, 26%, 60%, 0.1),var(--background));
    z-index: -2;
}

/* SCANLINES
.gradient-background:before,
.gradient-background:after {
    display: block;
    pointer-events: none;
    content: "";
    position: absolute;
}
.gradient-background:before {
    width: 100%;
    height: 2px;
    z-index: 2147483649;
    background: rgba(148, 52, 49, 0.3);
    opacity: 0.75;
    animation: scanline 6s linear infinite;
}
.gradient-background:after {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483648;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 5s steps(60) infinite;
}

/* ANIMATE UNIQUE SCANLINE
@keyframes scanline {
    0% {
        transform: translateY(-200px);
    }
    100% {
        transform: translateY(200vh);
    }
}
@keyframes scanlines {
    0% {
        background-position: 0 200%;
    }
} */

.scroll-container, #loader {
    display: flex;
    height: 100%;
    width: 100%;
    position: absolute;
    align-items: flex-end;
    justify-content: center;
}

#loader {
    align-items: center;
    z-index: 4;
    transition: opacity .5s;
}

#loader.done {
    opacity: 0;
}

.header {
    display: flex;
    align-items: center;
    opacity: 0;
}

.header.slide-in-bottom {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    animation-delay: .5s;
}

.header h1 {
    text-align: center;
    line-height: .5em;
    padding-top: 6px;
    font-size: 3em;
    font-weight: 800;
    cursor: default;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: transparent;
    color: var(--background-color);
}

h1 > span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: transparent;
    color: var(--background-color);
    font-size: .4em;
    letter-spacing: .5em;
}

/* Loading text with stroke
.header h1 {
    color: transparent;
    text-align: center;
    line-height: .5em;
    padding-top: 6px;
    font-size: 3em;
    font-weight: 800;
    cursor: default;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 3px transparent;
    color: var(--background);
}

h1 > span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: transparent;
    color: var(--background-color);
    font-size: .4em;
    letter-spacing: .5em;
}*/

.logo {
    margin: 30px 20px 40px 0;
    height: 120px;
    fill: var(--main-color);
}

.mouse-icon {
    background-clip: padding-box, border-box;
    background-origin: border-box;
    background-image: linear-gradient(var(--background),#181a1a),var(--gradient);
    border: 3px double transparent;
    border-radius: 20px;
    display: block;
    height: 50px;
    position: relative;
    width: 31px;
    z-index: 3;
    cursor: pointer;
    margin-bottom: 2%;
    transition: opacity .25s;
    opacity: 0;
}

.wheel {
    animation-delay: 0s;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-name: mouseWheel;
    animation-play-state: running;
    animation-timing-function: linear;
    background: var(--gradient);
    border-radius: 10px;
    height: 10px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 4px;
    width: 3px;
}

.mouse-icon.waiting {
    opacity: 1;
}

.container {
    width: 100%;
    opacity: 0;
    transition: opacity .5s;
}

.container.done {
    opacity: 1;
}

.sidebar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    z-index: 3;
    padding: 2em;
}

.sidebar .text {
    -webkit-text-fill-color: transparent;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--white);
    font-size: 1.25em;
    font-size: clamp(.3rem, 1.5vw + .25rem, 1.25rem);
}

.sidebar div:last-child {
    margin-top: auto;
}

.clm-logo-box {
    background: var(--gradient);
    border-radius: 4px;
    padding: .25em
}

.clm-logo {
    width: 2.5em;
}

.cls-clm-logo {
    fill: var(--white);
}

.article-link {
    display: flex;
    align-self: end;
    margin: -2em 10% 2% 0;
}

.article-link-text {
    font-size: clamp(.3rem, 1.5vw + .25rem, 1.25rem);
    font-weight: 300;
    padding-right: 0.5em;
}

.cls-right {
    fill: none;
    stroke: var(--white);
    stroke-miterlimit: 10;
}

.right-arrow {
    width: 0.5em;
    padding-left: .1em;
    margin-left: .4em;
}

.pr-title {
    padding-top: 1.25em;
}

.content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.left-view {
    height: 100%;
    width: 50%;
    grid-area: 1 / 1 / 2 / 2;
    position: fixed;
}

.right-top {
    height: 100vh;
    grid-area: 1 / 2 / 2 / 3;
    position: fixed;
    width: 50%;
    right: 0;
    justify-self: flex-end;
    z-index: 2;
    margin-top: 0vh;
    transition: margin-top .4s ease-in-out;
}

.right-bottom {
    height: 100vh;
    grid-area: 2 / 2 / 3 / 3;
    position: fixed;
    width: 50%;
    right: 0;
    justify-self: flex-end;
    margin-top: 100vh;
    transition: margin-top .4s ease-in-out;
    z-index: 2;
}

.right-top.scrolled-down {
    margin-top: -100vh;
}

.right-bottom.scrolled-down {
    margin-top: 0vh;
}

/* LEFT SIDE LAYOUT */
.player-preview-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: 80%;
    margin-top: 10%;
    line-height: 1;
    text-align: end;
}

.player-name {
    font-size: clamp(.5rem, 2vw + .25rem, 1.6rem);
    padding-left: 6rem;
    transform-origin: right;
    text-transform: uppercase;
    position: absolute;
    white-space: nowrap;
}

.player-tag {
    font-size: 6rem;
    font-size: clamp(1rem, 7vw + 1rem, 6rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-transform: uppercase;
    transform-origin: right;
    margin-top: -0.1em;
    padding-left: 6rem;
    position: absolute;
    margin-top: .2em;
    letter-spacing: -.05em;
    padding-right: 0.1em;
    white-space: nowrap;
}

.player-twitter {
    font-family: 'acumin-pro', sans-serif;
    font-size: 1.25rem;
    font-size: clamp(.3rem, 1.5vw + .25rem, 1.25rem);
    font-weight: 300;
    text-transform: uppercase;
    position: absolute;
    margin-top: 5.8em;
    z-index: 3;
}

#twitter-logo {
    color: var(--white);
    height: .675em;
}

#twitter-link {
    display: flex;
    align-items: baseline;
    gap: .25ch;
}

a {
    text-decoration: none;
    color: unset;
    transition: .15s;
}

a:hover {
    opacity: .8;
}

a#logo-link:hover {
    opacity: unset;
    transform: scale(.95);
}

.cls-twit {
    fill: var(--white);
}

.player-rank {
    font-style: italic;
    font-weight: 900;
    font-size: clamp(10rem, 20vw + 6rem, 20rem);
    letter-spacing: -.1em;
    position: absolute;
    margin-top: calc(0.2em + 10%);
}

.number-sign {
    font-size: .5em;
    padding-right: 0.16em;
    font-style: normal;
    -webkit-text-fill-color: var(--background);
    -webkit-text-stroke: 4px transparent;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.player-number {
    background: var(--gradient);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.player-number::after {
    content: '';
    padding-right: 36px;
}

.player-statue {    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90%;
    position: absolute;
    z-index: 1;
}

.player-statue-image {
    max-height: 100%;
    max-width: 150%;
}

.background-logo-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    justify-content: center;
    align-items: flex-end;
    z-index: -1;
}

.background-logo-container svg {
    fill: none;
    stroke: var(--main-color);
    stroke-miterlimit: 10;
    stroke-width: .25px;
}

.background-logo {
    position: absolute;
    max-height: 134%;
    max-width: 70%;
    margin-top: 5%;
    margin-right: -7%;
}

/* RIGHT SIDE LAYOUT */

.player-selector-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.player-selection {
    width: 100%;
    padding: 0 10%;
    display: flex;
    align-items: center;
}

.player-selector {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 20%);
    column-gap: 1em;
    row-gap: 1em;
    justify-content: center;
    transform: skew(-4deg);
    padding: 0 10%;
}

.player-select-container {
    aspect-ratio: 9/16;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: flex-end;
    outline: 2px solid hsla(0,0%,100%, 0.6);
    outline-offset: 1px;
    border-radius: 4px;
    background: hsla(0,0%,100%,.1);
    overflow: clip;
    transition: .15s;
}

.player-select-container:hover {
    background: hsla(0, 0%, 100%, 0.2);
    outline: 4px solid hsla(0,0%,100%,.6);
    outline-offset: 3px;
}

.player-select-container.active {
    background: linear-gradient(60deg,rgba(137, 237, 240, 0.33),rgba(126, 178, 180, 0.33));
}

.player-select-statue {
    position: absolute;
}

.player-select-statue img {
    max-width: 210%;
    height: auto;
    margin-left: -60%;
    transform: skew(4deg);
}

.player-select-info {
    display: flex;
    align-items: center;
    width: 100%;
    line-height: 1;
    font-family: 'acumin-pro-extra-condensed', sans-serif;
    background: linear-gradient(hsla(0,0%,100%,0),#161717);
    z-index: 1;
}

.player-select-rank {
    font-size: clamp(1.5rem, 2vw + .75rem, 2.4rem);
    padding: .2em;
    line-height: .9;
}

.player-select-tag {
    font-size: clamp(1.2rem, 2vw + .5rem, 1.8rem);
    transform-origin: left;
    text-transform: uppercase;
    padding: 0 2px 0 0;
    white-space: nowrap;
}

/* PLAYER BLURB CONTAINER */
.player-summary-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'acumin-pro', sans-serif;
    padding: 10% 10% 10% 15%;
}

.player-data {
    display: flex;
    justify-content: space-evenly;
    gap: 1em;
    flex-wrap: wrap;
    margin-bottom: 3em;
}

.player-data > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.data-header {
    text-transform: uppercase;
    font-size: 1rem;
}

.data-value {
    font-family: 'acumin-pro-wide' ,sans-serif;
    font-size: 5rem;
    font-size: clamp(1rem, 5vw + 1rem, 6rem);
    font-weight: 700;
    line-height: .8;
}

.blurb-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.blurb-container::-webkit-scrollbar{ 
    width: 4px;
    height: 4px;
    background-color: #7b8197;
    border-radius: 100px;
  }

.blurb-container::-webkit-scrollbar-thumb {
    background-clip: padding-box;
    border-radius: 100px;
    background-color: var(--white);
  }

.player-results {
    display: flex;
    flex-direction: column;
    font-size: clamp(1.5rem, 2vw + .75rem, 2rem);
    font-weight: 300;
    line-height: 1.4em;
    margin-bottom: 1rem;
}

.result {
    display: flex;
    align-items: baseline;
    text-transform: uppercase;
}

.placement {
    font-feature-settings: "ordn";
    font-variant-numeric: ordinal;
    font-weight: 700;
}

.placement-suffix {
    font-size: .5em;
}

.result-separator {
    padding: 0 .2em;
}

.event {
    line-height: 1em;
}

.blurb-author {
    color: var(--gray);
    font-style: italic;
}

.blurb-paragraph, .blurb-author {
    font-family: acumin-pro-wide,sans-serif;
    font-size: clamp(1.2rem, 2vw + .5rem, 1.5rem);
    font-weight: 300;
    line-height: 1.4;
}

.blurb-paragraph {
    padding-right: 2ch;
    margin-bottom: 1em;
}

.blurb-paragraph:last-of-type {
    margin-bottom: unset;
}

.blurb-paragraph a {
    text-decoration: underline;
}

/* ANIMATION DATA */
.fade-out {
    animation-name: fadeOut;
    animation-duration: .6s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.fade-in {
    animation-name: fadeIn;
    animation-duration: .6s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.slide-out-left {
    animation-name: slideOutLeft;
    animation-duration: .6s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

@keyframes slideOutLeft {
    from { opacity: 1; translate: unset; }
    to   { opacity: 0; translate: -150%; }
}

.slide-in-left {
    animation-name: slideInLeft;
    animation-duration: .6s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

@keyframes slideInLeft {
    from { opacity: 0; translate: 150%; }
    to   { opacity: 1; translate: unset; }
}

.slide-in-bottom {
    animation-name: slideInBottom;
    animation-duration: .6s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

@keyframes slideInBottom {
    from { opacity: 0; translate: 0 100%; }
    to   { opacity: 1; translate: unset; }
}

@keyframes mouseWheel {
    0% {
      opacity: 0;
      top: 5px;
    }
  
    50% {
      opacity: 1;
      top: 11px;
    }
  
    to {
      opacity: 0;
      top: 18px;
    }
  }

/* BREAKPOINTS */
@media screen and (max-width: 768px) {
    body {
        overflow: unset;
        overflow-x: hidden;
    }
    .logo {
        height: 90px;
        margin-right: 15px;
    }
    .header h1 {
        font-size: 2.25em;
    }
    .content {
        grid-template-columns: 1fr;
    }
    .left-view {
        grid-area: 2 / 1 / 3 / 2;
        position: unset;
        width: 100%;
    }
    .right-top {
        grid-area: 1 / 1 / 2 / 2;
        position: unset;
        width: 100%;
        height: unset;
        max-width: 100vw;
    }
    .right-bottom {
        grid-area: 3 / 1 / 4 / 2;
        position: unset;
        margin: unset;
        width: 100%;
        margin-top: 10vh;
    }
    .right-top.scrolled-down {
        margin-top: unset;
    }
    
    .right-bottom.scrolled-down {
        margin-top: unset;
    }
    .sidebar {
        width: 100%;
        writing-mode: unset;
        align-items: center;
        height: unset;
        padding: .5em;
        position: fixed;
    }
    .sidebar div:last-child {
        margin-top: unset;
        margin-left: auto;
    }
    .pr-title {
        padding-top: unset;
        padding-left: .5em;
    }
    .clm-logo {
        width: 1.5em;
        height: 1.8em;
    }
    .content {
        flex-direction: column-reverse;
        justify-content: center;
        margin-top: 5em;
    }
    .right-view {
        max-width: 100%;
    }
    .player-preview-container {
        max-width: 100%;
        flex-grow: unset;
        min-height: 50%;
        justify-content: center;
    }
    .player-statue {
        height: 50%;
        width: 100%;
        align-items: flex-start;
        overflow: clip;
        margin-top: 6rem;
        margin-left: -20vw;
    }
    .player-info {
        height: 100%;
        width: 80%;
    }
    
    .player-number::after {
        padding-right: 36px;
    }
    .player-name{padding-left: none;}
    .player-tag{padding-left: none;}
    .player-rank{padding-right: 0.2em;}
    .background-logo-container {
        align-items: flex-start;
    }
    .player-selector-container {
        height: unset;
    }
    .player-summary-container {
        height: unset;
        padding: 5%;
        margin-top: 4em;
    }
    .player-data {
        margin-bottom: 2em;
        justify-content: space-around;
    }
    .player-select-rank {
        font-size: clamp(1.2rem, 2vw + .5rem, 2.4rem);
        padding: 0.15em;
    }
    .player-select-tag {
        font-size: clamp(1rem, 2vw + .25rem, 1.8rem);
    }
    .blurb-paragraph {
     padding-right: unset;
    }
    .article-link {
        margin-right: 5%;
    }
    .scroll-container {
        display: none;
    }
}

@media (min-aspect-ratio: 1/2) {
    .gradient-background {
        height: 100%;
        width: 100%;
        position: fixed;
    }
}

@media (max-height: 600px) {
    .sidebar {
        height: 100dvh;
        position: fixed;
    }
    .player-selector-container {
        height: 100dvh;
        padding-top: 5%;
    }
    .player-summary-container {
        height: 100dvh;
        padding: 8% 8% 2% 12%;
    }
    .sidebar .text {
        font-size: .8rem;
    }
    .player-rank {
        font-size: 10rem;
    }
    .player-data {
        margin-bottom: 1em;
    }
    .data-value {
        font-size: 3rem;
    }
    .player-results {
        font-size: 1.5rem;
    }
    .blurb-paragraph, .blurb-author {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    .player-statue {
        height: 150%;
    }
    .sidebar {
        height: unset;
    }
    .player-selection {
        width: unset;
    }
}