* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

body {
    width: 100vw;
    min-height: 100vh;
   overflow-x: hidden;
}

a {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

/*
NAWIGACJA
*/

.nav-empty {
    width: 100%;
    height: 70px;
    background-color: rgb(25, 25, 25);
}

nav {
    width: 100%;
    height: 70px;
    background-color: rgb(25, 25, 25);
    display: flex;
    top: 0;
    position: fixed;
    z-index: 1;
    transition: 0.2s;
}

nav.down {
    transform: translateY(-70px);
}

.logo {
    width: 240px;
    height: 100%;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-panels {
    width: 400px;
    height: 100%;
    margin-left: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.nav-panels a,
.games-login,
.nav-cartLogin i {
    color: white;
    text-decoration: none;
}

.nav-panels a:hover,
.games-login:hover,
.nav-cartLogin i:hover {
    cursor: pointer;
    color: rgb(195, 195, 195);
}

main {
    width: 100vw;
    overflow-y: scroll;
    overflow-x: hidden;
}

.main-background {
    --backgroundHeightOffset: 70px;

    width: 100%;
    height: calc(100% - var(--backgroundHeightOffset));
    background-image: linear-gradient(transparent, transparent, rgb(10, 10, 10)), url('./Imgs/Web_Hub_Startpage_Headerimage-3__1_.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 480px;
    flex-direction: column;
    color: white;
}

h1 {
    font-size: 42px;
}

@media (max-width: 1480px) {
    h1 {
        font-size: 32px;
    }
    p {
        font-size: 12px;
    }
}

.main-background button {
    margin-top: 50px;
    margin-bottom: 180px;
    padding: 15px 55px;
    border: 1px solid white;
    border-radius: 5px solid black;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.4s;
}

.main-background button:hover {
    background-color: transparent;
    color: white;
}

/*
DRUGA STRONA
*/

.main-secondPage {
    width: 100vw;
    background-color: rgb(10, 10, 10);
    color: white;
    padding: 10px 15%;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.main-secondPage h2 {
    align-self: flex-start;
}

.brands-container {
    min-width: 800px;
    min-height: 200px;
    display: flex;
    position: absolute;
    top: 80px;
    left: 15%;
    transition: 0.4s;
}

.brand {
    width: 420px;
    margin-right: 20px;
    position: relative;
    cursor: pointer;
}

.brand:hover .brand-background {
    filter: brightness(50%);
}

.brand-background {
    width: 100%;
    aspect-ratio: 16 / 9;
    transition: 0.4s;
}

.brand-foreground {
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.brands-buttons-container {
    width: 100%;
    height: 40px;
    margin-top: 300px;
    margin-bottom: 100px;
    display: flex;
    justify-content: space-between;
}

.brands-seeall-button {
    height: 40px;
    border: 1px solid white;
    border-radius: 2px;
    padding: 0 20px;
    cursor: pointer;
    transition: 0.4s;
}

.brands-seeall-button:hover {
    background-color: transparent;
    color: white;
}

.brands-arrow-button {
    width: 40px;
    height: 40px;
    font-size: 24px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    transition: 0.4s;
}

.brands-arrow-button:hover {
    background-color: white;
    color: black;
}

/*
DRUGA STRONA - SIGNUP CONTAINER
*/

.secondPage-signup-container {
    text-align: center;
}

.signup-button {
    min-width: 140px;
    height: 60px;
    font-size: 18px;
    margin-top: 40px;
    border: 1px solid white;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.4s;
}

#signin-button {
    background-color: transparent;
    color: white;
}

#signin-button:hover {
    background-color: white;
    color: black;
}

#signup-button:hover {
    background-color: transparent;
    color: white;
}

/*
DRUGA STRONA - ABOUTMAKE CONTAINER
*/

.secondPage-aboutMake-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 100px;
}

.about-container, .makeGames-container{
    width: 100%;
    display: flex;
}

.about-text, .makeGames-text {
    width: 40%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.makeGames-text {
    margin-left: auto;
}

.about-text button, .makeGames-text button {
    width: 200px;
    height: 50px;
    border: 1px solid white;
    border-radius: 2px;
    background-color: transparent;
    color: white;
    font-weight: 600;
    transition: 0.4s;
    cursor: pointer;
}

.about-text button:hover, .makeGames-text button:hover {
    background-color: white;
    color: black;
}

.about-img, .makeGames-img {
    width: 50%;
    aspect-ratio: 16 / 9;
    position: absolute;
}

.about-img {
    right: 0;
}

.makeGames-img {
    left: 0;
}

/*
DRUGA STRONA - COMMUNITY CONTAINER
*/

.secondPage-community-container {
    width: 100%;
    margin-top: 100px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.community-items-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.community-item {
    height: 500px;
    margin-top: 40px;
    cursor: pointer;
    color: white;
    text-decoration: none;
}

.community-item:visited {
    text-decoration: none;
}

.community-item img {
    width: 100%;
    height: 55%;
}

.community-item div {
    padding: 10px 20px;
    position: relative;
}

.community-item h2 {
    font-size: 20px;
    font-weight: 700;
}

.community-item p {
    font-size: 14px;
}

.community-arrow {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 28px;
    transition: 0.4s;
}

.community-item:hover .community-arrow {
    background-color: white;
    color: black;
}

/*
OUR GAMES PAGE
*/

.main-ourGamesPage {
    width: 100%;
    min-height: 50vh;
    padding: 0 15%;
    background-image: url("./Imgs/ourgames-collage.jpg");
    background-size: cover;
    color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.main-ourGamesPage p {
    width: 400px;
    font-size: 14px;
    margin: 20px 0;
}

.main-ourGamesPage button {
    width: 280px;
    height: 50px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid white;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.4s;
}

.main-ourGamesPage button:hover {
    background-color: transparent;
    color: white;
}

.main-ourGamesPage img {
    width: 50%;
    position: absolute;
    right: 10px;
}

/*
KONTAKT
*/

.contact-background {
    --backgroundHeightOffset: 70px;

    width: 100vw;
    height: calc(100vh - var(--backgroundHeightOffset));
    background-image: url("./Imgs/Web_Hub_Startpage_Headerimage-3__1_.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.1);
}

.contact-container {
    width: 500px;
    height: 500px;
    background-color: rgba(20, 18, 18, 0.8);
    box-shadow: 0 0 10px black;
    color: rgb(189, 188, 188);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
}

.contact-form {
    width: 100%;
    margin: 40px 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 50%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid black;
    border-radius: 15px;
    outline: none;
    background-color: rgba(20, 18, 18, 1);
    color: white;
}

.contact-form textarea {
    width: 60%;
    height: 100px;
    padding: 5px 10px;
    resize: none;
}

.contact-form button {
    width: 200px;
    height: 40px;
    margin-top: 40px;
    border: 1px solid white;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.4s;
}

.contact-form button:hover {
    background-color: transparent;
    color: white;
}

/*
GRY
*/

.nav-cartLogin {
    align-self: center;
    margin-left: auto;
    position: relative;
    color: white;
    margin-right: 10px;
    font-size: 12px;
}

.nav-cartLogin i {
    position: absolute;
    font-size: 28px;
    left: -50px;
    top: 50%;
    transform: translate(-50%, -50%);
}

.games-header {
    width: 100%;
    height: 200px;
    background-image: url(./Imgs/GamesBackground.jpg);
    background-size: cover;
    background-position: 0 -150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.games-main {
    width: 100%;
    min-height: 100vh;
    background-color: rgb(6, 8, 18);
    padding: 50px 15%;
}

.games-nav {
    width: 100%;
    height: 15%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

.games-searchBar {
    width: 400px;
    height: 50px;
    padding: 0 15px;
    font-size: 1rem;
    outline: none;
    border: 1px solid white;
    border-radius: 15px;
}

.games-filter > button {
    padding: 5px 10px;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 15px;
    font-size: 12px;
    color: white;
    cursor: pointer;
}

.games-filter > button:hover,
.games-filter > .filter-active {
    background-color: white;
    color: black;
}

.games-body {
    width: 100%;
    height: 100%;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.game-card {
    width: 250px;
    height: 400px;
    overflow: hidden;
}

.game-card:hover .card-background {
    filter: brightness(50%);
}

.game-card-img {
    height: 75%;
    position: relative;
    cursor: pointer;
}

.card-background {
    width: 200%;
    height: 100%;
    transition: 0.4s;
}

.card-foreground {
    width: 180px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game-card-info,
.game-card-readMore {
    height: 25%;
    margin-top: 10px;
    color: white;
}

.game-card-readMore {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.game-card-info p {
    font-size: 12px;
}

.game-card-readMore button {
    padding: 10px 15px;
    background-color: white;
    color: black;
    border: 1px solid white;
    border-radius: 2px;
    transition: 0.4s;
    cursor: pointer;
}

.game-card-readMore button:hover {
    background-color: transparent;
    color: white;
}

.game-card-readMore button a {
    text-decoration: none;
}

.title {
    font-size: 18px;
    font-weight: 600;
}

.hidden {
    display: none;
}

/*
GRY POZYCJONOWANIE
*/

#LifeByYou {
    transform: translateX(-200px);
}

#PrisonArchitect2 {
    transform: translateX(-120px);
}

#AgeOfWonders4 {
    transform: translateX(-50px);
}

#Victoria3 {
    transform: translateX(-120px);
}

#CrusaderKings3 {
    transform: translateX(-100px);
}

#EuropaUniversalis4 {
    transform: translateX(-100px);
}

#Imperator {
    transform: translateX(-100px);
}

#Magicka2 {
    transform: translateX(-50px);
}

#EuKingOfKings {
    transform: translateX(-120px);
}

#CkLegacyOfPersia {
    transform: translateX(-120px);
}
