/* CSS nasze własne style*/
/*improt fontu z GOOGLE*/
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
/*
font-family: "Bebas Neue", sans-serif;
font-family: "Source Sans 3", sans-serif;
*/

/* zmienne koloru*/
:root{
    --kolor-glowny: rgb(255, 255, 255);
    --kolor-uzupelniajacy: #B11016;
    --kolor-jasny: #9D9D9D;
    --kolor-sredni: #404040;
    --kolor-ciemny: #141414;
    /*  wywolanie zmiennej poprzez: var(--nazwa) */
}
/*SELEKTORY GLOBALNE*/
*{
    box-sizing: border-box;
    /* aby paddingi nie zwiekszaly szerokosci boxu */
    transition: 1s;
}
html{
    scroll-behavior: smooth;
    /*plynne przewjanie*/
    font-size: 16px;
    font-size: 10px;
    /*
    rem = root emphasis = jednostka wielokrotnosci rozmiaru bazowego fontu
    1rem = 16px | 10px
    2rem = 32px | 20px
    1.7rem = ?? | 17px
    .3rem = ??  | 3px

    em = emphaiss = wielokrotnosc rozmiaru fontu w danym elemencie
    */
}
body{
    font-size: 1.6rem;
    font-family: "Source Sans 3", sans-serif;
}
h1, h2, h3, h4 ,h5, h6{
    font-family: "Bebas Neue", sans-serif;
}
h1{
    background-color: var(--kolor-sredni);
    color: var(--kolor-jasny);
    font-weight: 100;
    font-size: 16rem; /* 60px rozmair fontu w danym elemencie */
    padding: 2rem; /* 1em = 60px */
}
h2{
    color: #b5121b;
    font-size: 5.4rem;
    margin-bottom: 0rem;
}
h3{
    color: #333;
    font-size: 3rem;
    margin: 3rem 0;
    margin-top: 0.6rem;
}
p{
    
    font-size: 1.6rem;
    line-height: 150%;
}
img{
    max-width: 100%;
}

/*dotyczy wszytskich class zawartosc*/
.zawartosc{
    max-width: 1400px;
    width: 100%;
    /*padding: 2rem;*/


    display: flex;
    gap: 2rem;
    align-items: center;

    flex-wrap: wrap;
}


/*NAWIGACJA DESKTOP*/
nav{
    background-color: transparent;
    position: fixed;
    width: 100%;
    padding: 9rem 2rem 3rem;

    display: flex;
    align-items: center;
    justify-content: center;


    z-index: 1;
}
nav .zawartosc{
    justify-content: center;

    width: auto;
    max-width: none;

    background-color: rgba(255, 255, 255, .28);
    padding: 0.5rem 8rem;
    padding-top: 1rem;

    gap: 3rem;
    
}
nav ol{}
nav ol li{}
nav ol li a{
    color: var(--kolor-jasny);
    text-decoration: none;
    /* background-color: aqua; */
    padding: 1rem 2rem;
    display: block;/* konieczne do spowodowanie by hiperłącza wpływały na otoczenie swoim rozmiarem i zeby cala powierzchnia przycisku była klikalna */
    font-size: 3rem;
    font-family: "Bebas Neue", sans-serif;

}
nav ol li a:hover{
    
    color: var(--kolor-uzupelniajacy);
}

/*NAWIGACJA MOBILE*/
.burger{
    background-color: var(--kolor-ciemny);
    color: var(--kolor-jasny);

    position: fixed;
    right: 2rem;
    top: 2rem;

    font-size: 3rem;
    padding: .1rem .6rem .7rem;

    /* cursor: default; */
    cursor: pointer;

    display: none;/*bedzie niewidoczny na desktopie*/
    z-index: 999;
}
.burger:hover{
    background-color: var(--kolor-jasny);
    color: var(--kolor-ciemny);
}

.nakladka{
    opacity: .9;
    background-color: var(--kolor-glowny);
    position: fixed;
    right: 0;
    height: 0;
    width: 100%;/*początkowa wartość przed zmianą skryptem*/
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.zamknijX{
    background-color: var(--kolor-jasny);

    position: absolute;
    top: 2rem;
    right: 2rem;

    font-size: 3rem;
    padding: .3rem 1rem;

    cursor: pointer;
    z-index: 1001;
}
.zamknijX:hover{
    background-color: var(--kolor-ciemny);
    color: var(--kolor-jasny);
}

.nakladka ol{
    /* background-color: red; */
    width: 100%;
}
.nakladka ol li{
    /* background-color: aqua; */
}
.nakladka ol li a{
    display: block;
    text-align: center;
    text-decoration: none;
    
    color: var(--kolor-jasny);
    font-size: 3.2rem;
    font-family: "Bebas Neue", sans-serif;

    padding: 2rem 0;
    margin-bottom: 2vh;
}
.nakladka ol li a:hover{
    background-color: var(--kolor-jasny);
    color: var(--kolor-ciemny);
}

/* POP UP */
.przycisk-subskrybuj{
    background-color: #333;
    color: white;

    border: none;
    padding: 1rem 2rem;

    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    letter-spacing: .05rem;

    cursor: pointer;
}

.przycisk-subskrybuj:hover{
    background-color: var(--kolor-jasny);
    color: var(--kolor-ciemny);
}

.popup-tlo{
    background-color: rgba(0, 0, 0, .7);

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;
    justify-content: center;
    align-items: center;

    
}

.popup-okno{
    background-color: white;
    color: var(--kolor-ciemny);

    width: 90%;
    max-width: 500px;

    padding: 4rem 2rem 2rem;
    border-radius: 1rem;

    position: relative;
    text-align: center;
}

.popup-okno h2{
    font-size: 4rem;
    margin-bottom: 2rem;
}

.popup-okno p{
    margin-bottom: 2rem;
}

.popup-okno button{
    background-color: var(--kolor-ciemny);
    color: var(--kolor-jasny);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.6rem;
    cursor: pointer;
}

.popup-okno button:hover{
    background-color: var(--kolor-sredni);
    color: var(--kolor-ciemny);
}

.popup-x{
    position: absolute;
    top: 1rem;
    right: 1.5rem;

    font-size: 3rem;
    cursor: pointer;
}

.popup-x:hover{
    color: var(--kolor-uzupelniajacy);
}





/*POSZCZEGOLNE SEKCJE*/
/* ========================= */
/* STRONA DEXTER */
/* ========================= */

body{
    background-color: white;
    color: #333;
}

/* Ogólne sekcje */
section{
    min-height: auto;
    padding: 6rem 2rem;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    scroll-margin-top: 7rem;
}

section .zawartosc{
    max-width: 1000px;
}






/* ========================= */
/* HEADER / LOGO */
/* ========================= */

header{
    min-height: 42vh;
    padding-top: 16rem;
    padding-bottom: 5rem;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero{
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-img{
    width: 34rem;
    max-width: 80%;
    display: block;
    margin: 0 auto;
}

/* ========================= */
/* ABOUT */
/* ========================= */

#about{
    padding-top: 2rem;
}

.about-grid{
    justify-content: center;
    align-items: center;
    gap: 6rem;
}

.about-img,
.about-text{
    flex: 0 1 40rem;
}

.about-img{
    background-color: #ddd;
}

.about-img img{
    width: 100%;
    display: block;
    filter: grayscale(100%);
}

.about-text h2{
    margin-bottom: .5rem;
}

.about-text h3{
    margin-bottom: 2rem;
}

/* ========================= */
/* POLICE */
/* ========================= */

#police{
    padding-top: 2rem;
}

.police-grid{
    justify-content: center;
    align-items: flex-start;
    gap: 6rem;
}

.police-text{
    flex: 0 0 40%;
    padding-top: 6rem;
}

.about-text h2,
.police-text h2{
    margin-bottom: 0;
}

.about-text h3,
.police-text h3{
    margin-top: 0.5rem;
    margin-bottom: 3rem;
}
.police-boxes{
    flex: 0 0 45%;

    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.box{
    background-color: #b9b9b9;
    overflow: hidden;
}

.box-big{
    flex: 0 0 100%;
    height: 100%;
}

.box-small{
    flex: 0 0 50%;
    margin-left: auto;
    height: 100%;
}

.box img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
/* ========================= */
/* HARRY'S CODE */
/* ========================= */

#code{
    background-color: white;
    padding: 0.8rem 8rem 3rem;
}

.code-card{
    background-image: url("../img/paper-14735.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;

    width: 100%;
    max-width: 100rem;
    min-height: 55rem;

    padding: 11rem 10rem 8rem 14rem;
    margin: 0 auto;

    position: relative;
    
}

.code-card h2{
    font-family: "Bebas Neue", sans-serif;
    color: var(--kolor-uzupelniajacy);
    font-size: 5.4rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.code-card ol{
    list-style-position: inside;
    list-style-type: decimal;

    font-family: "Bebas Neue", sans-serif;
    font-size: 2.6rem;
    line-height: 140%;
    color: var(--kolor-ciemny);
}

.code-card li{
    margin-bottom: .4rem;
    opacity: 0;
    cursor: pointer;
    transition: 0.5s;
}
.code-card li:hover{
    opacity: 1;
    color: var(--kolor-jasny);
}

/* ========================= */
/* SERIES */
/* ========================= */

#series{
    padding-bottom: 8rem;
}

.series-grid{
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
}

.series-grid article{
    flex: 0 1 22rem;
}

.poster{
    height: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}

.poster img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.series-grid h2{
    font-size: 3rem;
    line-height: 100%;
}

.series-grid h3{
    color: #b5121b;
    font-size: 2rem;
}

.series-grid p{
    color: #777;
}

.series-grid button{
    background-color: #333;
    color: white;

    border: none;
    padding: 1rem 2rem;

    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    letter-spacing: .05rem;

    cursor: pointer;
}

.series-grid button:hover{
    background-color: #b5121b;
}

.series-grid article{
    flex: 0 1 22rem;
    cursor: pointer;
    padding: 1rem;
}

.series-grid article:hover{
    transform: scale(1.08);
    background-color: #f5f5f5;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .18);
}

.series-grid button{
    background-color: #333;
    color: white;

    border: none;
    padding: 1rem 2rem;

    cursor: pointer;
    font-weight: 900;

    margin-top: 2rem;

    opacity: 0;
    visibility: hidden;
}

.series-grid article:hover button{
    opacity: 1;
    visibility: visible;
}

.series-grid h3,
.series-grid p,
.series-grid button{
    opacity: 0;
    visibility: hidden;
}

.series-grid article:hover h3,
.series-grid article:hover p,
.series-grid article:hover button{
    opacity: 1;
    visibility: visible;
}

/* ========================= */
/* CAST */
/* ========================= */

#cast{
    background-image: linear-gradient(
        to bottom,
        rgba(216, 222, 219, .10) 0%,
        rgba(216, 222, 219, .20) 25%,
        rgba(80, 80, 80, .55) 65%,
        #111 100%
    ),
    url("../img/metal.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 8rem 2rem 18rem;
    margin-bottom: -1px;
}

.cast-content{
    max-width: 90rem;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cast-content h2{
    color: #b5121b;
    font-size: 5.4rem;
    margin-bottom: 3rem;
}

.cast-grid{
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 1rem;
}

.cast-grid article{
    width: 100%;
}


.cast-photo{
    width: 100%;
    aspect-ratio: 1 / 1;

    background-color: #777;
    margin-bottom: 1rem;
}

.cast-photo img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


.cast-grid h3{
    color: #b5121b;
    font-size: 3rem;
    line-height: 100%;
    margin: 0;
}

.cast-grid p{
    color: #b5121b;
    font-size: 2.2rem;
    line-height: 100%;

    font-family: "Bebas Neue", sans-serif;
    margin-top: .4rem;
}

/* ========================= */
/* STOPKA */
/* ========================= */

#stopka{
    background-color: #111;
    color: #777;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 20vh;
}

#stopka .zawartosc{
    justify-content: center;
}

.stopka-content{
    flex-direction: column;
    gap: 3rem;
}

.stopka-menu{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
}

.stopka-menu a{
    color: #777;
    text-decoration: none;

    font-family: "Bebas Neue", sans-serif;
    font-size: 3rem;
}

.stopka-menu a:visited{
    color: #777;
}

.stopka-menu a:hover{
    color: #b5121b;
}

.stopka-dol{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.stopka-menu a{
    cursor: pointer;
}

nav ol li a,
.nakladka ol li a,
.stopka-menu a{
    cursor: pointer;
}

#about,
#series,
#cast,
#code,
#stopka{
    scroll-margin-top: 12rem;
}


/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 600px){

    
    nav{
        display: none;
    }

    .burger{
        display: block;
    }

    .logo{
        font-size: 5rem;
    }

    header{
        min-height: 32vh;
    }

    section{
        padding: 4rem 2rem;
        scroll-margin-top: 0;
    }

    .about-grid,
    .police-grid,
    .series-grid{
        gap: 3rem;
    }

    .about-img,
    .about-text,
    .police-text,
    .police-boxes{
        flex: 1 1 100%;
    }

    .code-card{
        padding: 4rem 2rem;
    }

    .series-grid article{
        flex: 1 1 100%;
    }

    .series-grid h3,
    .series-grid p{
        opacity: .45;
        visibility: visible;
    }

    .series-grid button{
        opacity: .8;
        visibility: visible;
        display: inline-block;
        margin-top: 1.5rem;
    }

    .series-grid article:hover h3,
    .series-grid article:hover p,
    .series-grid article:hover button{
        opacity: 1;
    }


    #cast{
        padding: 5rem 0 10rem;
        overflow: hidden;
    }

    .cast-content{
        max-width: none;
        width: 100%;
        padding-left: 2.5rem;
        align-items: flex-start;
    }

    .cast-content h2{
        font-size: 5.4rem;
        margin-bottom: 1rem;
    }

    .cast-grid{
        width: 100%;

        display: flex;
        flex-wrap: nowrap;
        gap: 1.5rem;

        overflow-x: auto;
        scroll-snap-type: x mandatory;

        padding-right: 2.5rem;
        padding-bottom: 2rem;
    }

    .cast-grid article{
        flex: 0 0 72%;
        scroll-snap-align: start;
    }

    .cast-photo{
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .cast-grid h3{
        font-size: 3.2rem;
        line-height: 90%;
    }

    .cast-grid p{
        font-size: 2.4rem;
    }


    #code{
        padding: 4rem 1rem;
    }

    #code .zawartosc{
        max-width: none;
        width: 100%;
        padding: 0;
    }

    .code-card{
        width: 100%;
        max-width: 42rem;
        min-height: 62rem;

        padding: 9rem 3rem 5rem 5.5rem;

        background-size: 100% 100%;
        background-position: center;
    }

    .code-card h2{
        font-size: 4.8rem;
        line-height: 90%;
        margin-bottom: 3rem;
    }

    .code-card ol{
        font-size: 1.8rem;
        line-height: 135%;
    }

    .stopka-menu{
    gap: 2rem;
    flex-wrap: wrap;
    }

    .stopka-dol{
        flex-direction: column;
        gap: 1.5rem;
    }

}


/*******************************/


/*KONIEC RWD DO 600px*/
