@font-face {
    font-family: 'Roboto';
    src: url("/img_vid/Roboto/Roboto-Variable.ttf");
    font-display: swap;
}
 
@font-face {
    font-family: 'Roboto';
    src: url("/img_vid/Roboto/Roboto-Italic-Variable.ttf");
    font-style: italic;
    font-display: swap;
}

/* #region GŁÓWNE */

* {
    box-sizing: border-box;
}

:root {
    font-family: Roboto, sans-serif;
    --zolty: #be8c02;
    --zoltyciemniejszy:#8f6900;
    --cardblack: #1a1919;
    --black: #0e0d0d;
    --tlo: rgb(20, 20, 20);
    --gradient-zolty: radial-gradient(closest-side at 20% 20%, rgba(58, 58, 24, 0.7) 60%, rgba(0,0,0,0.9) 900%);
    --szary: #8b8b8b;
    --bialy: #FFFFFF;
    scroll-behavior: smooth;
    color: white;
}
    
body {
    margin: 0;
    background-color: var(--tlo);
}

.scroll-to-top {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--zolty);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: var(--zoltyciemniejszy);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

hr{
    width: 90%;
    border-color: rgb(77, 79, 82);
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* #endregion GŁÓWNE */

/* #region NAVBAR */

nav {
    display: flex;
    position: sticky;
    top: 0;
    height: 5rem;
    background-color: rgba(14, 13, 13, 0.9);
    z-index: 100;
    font-weight: 500;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

nav > div:nth-child(2) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    height: 100%;
}

#logo {
    width: 4.7rem;
    height: 4.7rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;

}
#logo > img{
    height: 80%;
}

#logo:hover {
    transform: scale(1.1);
} 

nav > div {
    display: flex;
    align-items: center;
}

.navbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-wrap: nowrap;
}

.navbutton-active{
    border-bottom: 0.2rem solid var(--zolty);
    border-top: 0.2rem solid transparent;
}

.navbutton:hover {
    background-color: #312f2f60;
    color: var(--zolty);
}

.navbutton-notactive::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--zolty);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbutton-notactive:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
}

.dropdown:hover .dropdown-content { /* animacja ze spiewnikiem */
    animation: slideInFromTop 0.5s ease;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50%);
        opacity: 0;
        user-select: none;
    }
    to {
        transform: translateY(0%);
        opacity: 1;
        user-select: text;
    }
}

@keyframes slideInFromTop2 {
    from {
        transform: translateY(-25%);
        opacity: 0;
        user-select: none;
    }
    to {
        transform: translateY(0%);
        opacity: 1;
        user-select: text;
    }
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--cardblack);
    width: 100%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0 0 0.5rem 0.5rem;
    overflow: hidden;
}

.dropdown-content a {
    color: white;
    padding: 20px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: var(--black);
    color: var(--zolty);
}

.dropdown:hover .dropdown-content {
    display: block;
}

#socials {
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

#ig, #twitch, #discord {
    filter: brightness(1000%);
    transition: 0.2s;
    width: 3.25rem;
}

#ig:hover, #twitch:hover, #discord:hover {
    filter: brightness(120%);
    transition: 0.2s;
    transform: scale(1.1);
}

.twitchparent {
    background-color: rgba(255, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: 0.2s;
}

.twitchparent:hover {
    filter: brightness(120%);
    transition: 0.2s;
    transform: scale(1.1);
    box-shadow: red 0 0 4rem -1rem;
}

.twitchparent:hover > #twitch:hover {
    filter: hue-rotate(87deg);
}

#menu{
    display: none;
    height: 100%;
    width: 20rem;
    z-index: 2;
    flex-direction: row-reverse;
}

#menu > .phone > div > img{
    width: 3rem;
    height: 3rem;
    filter: invert(100%);
}

#menu > div{
    position: sticky;
    top: 5rem;
    left: -10rem;
    display: flex;
    flex-direction: column;
}

.phone {
    height: 100%;
}

.phonemenu{
    display: none;
    animation: slideInFromRight 0.5s ease;
    flex-direction: column;
    align-items: flex-end;
}

@media only screen and (max-height: 660px) {
    .phonemenu {
        height: calc(100dvh - 5rem);
        width: 100vw;
        flex-wrap: wrap;
        flex-direction: row-reverse;
    }

    .phonemenu > .navbutton {
        width: 50%;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(50%);
        opacity: 0;
    }
    to {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(0%);
        opacity: 1;
    }
    to {
        transform: translateX(50%);
        opacity: 0;
    }
}

#photo{
    display: flex;
    min-height: 5rem;
    flex-direction: row-reverse;
    align-items: center;
    padding: 1rem;
}

.phone-content {
    display: flex;
    flex-direction: column;
    background-color: #1a1919F0;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0 , 0, 0.2);
    z-index: 1;
}

.phone-content a {
    color: white;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    text-align: center;
}

.phone-content a:hover {
    background-color: var(--black);
    color: var(--zolty);
}

@media only screen and (max-width: 700px) {
    nav > div:nth-child(2) {
        display: none;
    }

    #ig, #discord {
        display: none;
    }
    
    #menu{
        display: flex;
    }

    .navbutton {
        height: 5rem;
    }
}

/* #endregion NAVBAR */

/* #region fota duża */

.video-container {
    position: relative;
    width: 100%;
    height: calc(100svh - 5rem);
    overflow: hidden;
}

#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

main > video {
    width: 100%;
    height: auto;
    z-index: -1;
    position: relative;
}

article {
    display: flex;
    flex-direction: column;
    background-color: var(--black);
}

/* #endregion fota duża */

/* #region blok srodkowy */
.block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background: var(--gradient-zolty);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    z-index: 1;
}

.block > h1{
    color: rgb(214, 211, 211);
    font-size: 7rem;
}

.block > h2{
    color: rgb(255, 255, 255);
    font-weight: lighter;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
    padding: 0.5rem;
    animation: slideInFromBottom 1.5s ease-out;
    margin-top: 7rem;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom2 {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-25%);
        opacity: 0;
    }
}

.block > a{
    display: block;
    height: 5rem;
    width: 5rem;
    margin-bottom: 3rem;
    position: relative;
    transition: transform 0.3s ease;
    animation: updown 2s ease -1.1s infinite alternate-reverse, slideInFromBottom 1.5s ease-out;
}

@keyframes updown {
    from {
        transform: translateY(-4%);
    }
    to {
        transform: translateY(4%);
    }
}

.block > a::before,
.block > a::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 3px;
    height: 25px;
    background-color: var(--zolty);
    transition: all 0.3s ease;
}

.block > a::before {
    transform: translateX(-50%) rotate(45deg);
    transform-origin: bottom;
}

.block > a::after {
    transform: translateX(-50%) rotate(-45deg);
    transform-origin: bottom;
}

.block > a:hover {
    transform: translateY(10px);
}

.block > a:hover::before,
.block > a:hover::after {
    height: 30px;
    background-color: white;
}

/* #endregion blok srodkowy */

/* #region odliczanie */

#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--zolty);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out forwards 1s;
}

#countdown-text {
    text-align: center;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

#countdown-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--zolty);
    animation: lineGrow 1s ease-out forwards 0.5s;
}

/* @media only screen and (max-width: 600px) {
    #countdown-text, #countdown, #countdown-text::after {
        animation: unset;
    }
} */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#countdown > div {
    display: flex;
    gap: 1rem;
}

#countdown > div > div {
    background-color: var(--cardblack);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

@keyframes scrolldown{
    0% {
        transform: translateY(-0.5rem);
     }
    100%{
        transform: translateY(0.5rem);
    }
}

/* #endregion odliczanie */

/* #region sekcja zespołu */

.card-list{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.card-info .title {
    all: unset;
    display: block;
    margin-top: 1.33em;
    margin-bottom: 1.33em;
    font-weight: bold;
    unicode-bidi: isolate;
    position: relative;
    transition: all 0.3s ease;
}

.card {
    margin: 20px 15px;
    display: flex;
    width: 15rem;
    height: 22rem;
    background-color: var(--cardblack);
    border-radius: 1rem;
    flex-direction: column;
    padding: 0.5rem;
    transition: 0.4s;
    z-index: 1;
    user-select: none;
}

.section-title{
    text-align: center;
    color: white;
    z-index: 2;
    font-size: 2rem;
}

.team-roster{
    background-color: var(--black);
    scroll-margin-top: 5rem;
}

.card-info{
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    flex: 1;
    transition: color 0.3s ease;
}

.card-info:hover .title {
    transform: scale(1.1);
    color: var(--zolty);
}

.card-info .subtitle {
    transition: all 0.3s ease;
}

.card-info:hover .subtitle {
    transform: scale(1.2);
    color: var(--zolty);
    font-weight: bold;
}

.card-info .title a {
    color: inherit;
    text-decoration: none;
}

.card-info .title a:hover {
    color: var(--zolty);
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--zolty);
    margin: 0 auto;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

.card-photo>img{
    object-fit: cover;
    width: 100%;
    border-radius: 0.8rem;
    height: 100%;
}

.card-photo{
    background-size: cover;
    border-radius: 0.8rem;
    height: 65%;
}

.card:hover{
    transform: scale(1.05);
    transition: 0.4s;
    box-shadow: 0 0 5rem -0.5rem var(--zoltyciemniejszy);
    z-index: 0;
}

.role{
    background-color: var(--zolty);
    padding: 0.25rem;
    z-index: 2;
    margin-top: -1.75rem;
    border-radius: 0.5rem;
    opacity: 0.9;
}

a{
    text-decoration: none;
    color: white;
}

.role > img{
    width: 2.5rem;
    height: 2.5rem;
    filter: brightness(100);
    object-fit: contain;
    aspect-ratio: 1/1;
}

/* #endregion sekcja zespołu */

/* #region stopka */

footer {
    background-color: var(--cardblack);
    padding: 4rem 2rem;
    margin-top: 4rem;
    color: white;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section p {
    margin: 0;
}

.footer-section h1 {
    color: var(--zolty);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--zolty);
}

.footer-logo {
    width: 150px;
    height: 150px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a > img, .footer-contact p > img {
    height: 1rem;
    width: 1rem;
    object-fit: contain;
    object-position: center;
}

.footer-contact a:hover {
    color: var(--zolty);
}

#sponsors-layout{
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.sponsors{
    height: 5rem;
    
}

@media only screen and (max-width: 1080px) {
    #sponsors-layout{
        flex-direction: column;
    }
}

@media only screen and (max-width: 820px) {
    footer{
        flex-direction: column;
    }

    #sponsors-layout{
        flex-direction: column;
    }

    #countdown-text{
        font-size: 2.125rem;
    }

    #countdown{
        font-size: 1.25rem;        
    }

    #countdown > div{
        flex-wrap: wrap;     
    }

    #footer-maupka{
        align-items: center;
    }
}

@media only screen and (max-height: 860px) {
    .block > h2 {
        margin-top: 3rem;
    }

    .block > a {
        margin-bottom: 0;
    }
}

/* #endregion stopka */