body {
    margin: 0;
    padding: 0;
    background-color: green;
    background-image: url('../theme/tlo.jpg');
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 
    margin: 0;
    padding: 0;
    background-color: green;
    background-image: url('images/tlo.jpg');
    overflow: hidden; */
}

#logo {
    width: 1000px;
    margin-top: -40px;
}

#logo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* nawigacja */

nav {
    width: 1000px;
    z-index: 9999;
    position: relative;
    background-image: url('../theme/navbar.png');
    background-size: contain;
    height: 80px;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    background-repeat: no-repeat;
}

nav#mobile {
    width: 600px;
    height: 83px;
}

nav#mobile ol {
    width: 100%;
    margin-left: 0px;
    padding-left: 0;
    position: relative;
    z-index: 3;
    background-image: url('../theme/mobile-navbar.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.searchBox {
    width: 430px;
    position: relative;
    right: 28px;
}

ol {
    height: 100%;
    width: calc(100% - 300px);
    list-style-type: none;
    padding: 0;
    font-size: 16px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-content: center;
    font-family: 'Montserrat', sans-serif;
    padding-left: 28px;
}

ol a {
    display: block;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    width: 168px;
    margin-left: 24px;
}

ol > li {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    position: relative;
}

/* ol > li:hover {
 background-color: #2b5104;
} */

ol > li > a,
ul > li > a {
    transition: 0.3s;
}

ol > li:hover > a,
ul > li:hover > a {
    color: #fff;
    transition: 0.3s;
}

ol > li:hover > ul {
    display: block;
}

ol > li > ul {
    display: none;
    list-style-type: none;
    margin: 0;
    padding-top: 43px;
    width: 168px;
    position: absolute;
    left: -10px;
    top: 40px;
}

ol > li > ul > li {
    position: relative;
    margin-top: -6px;
    background-image: url('../theme/navbar-item.png');
    background-size: contain;
    height: 60px;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 0px;
}

ol > li > ul > li > a {
    display: block;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    width: 168px;
    margin-left: 0;
    padding-top: 20px;
    transition: 0.3s;
}

/* ol > li > ul > li:hover {
    background-color: #ddd;
} */

ol > li > ul > li:hover > a {
    transform: scale(1.05);
    transition: 0.3s;
    /* color: #09c; */
}

/* wyszukiwarka */

.searchBox input[type='text'] {
    padding: 10px;
    font-size: 17px;
    width: 260px;
    position: absolute;
    top: 8px;
    right: 30px;
    height: 23px;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    color: #fff;
    font-family: 'Montserrat';
}

nav button {
    width: 50px;
    padding: 10px;
    color: white;
    font-size: 17px;
    cursor: pointer;
    position: absolute;
    top: 8px;
    left: 2px;
    height: 45px;
    transition: 0.5s;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    outline: none;
    background-image: url('../theme/navbar-search.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: 0.3s;
}

nav#web button {
    position: relative;
    z-index: 8;
}

nav div.search:after {
    width: 30px;
    content: '';
    background-color: #fff;
    height: 30px;
    position: absolute;
    top: 15px;
    left: 11px;
    z-index: 0;
    background-color: #351c0d;
    transition: 0.3s;
}

.show-search:hover {
    background-color: #fff;
    transition: 0.3s;
    transform: scale(1.05);
}

.search:hover:after {
    transition: 0.3s;
    background-color: #fff;
}

nav#mobile .searchBox {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0px;
    top: 0;
    background-image: url('../theme/mobile-search-bar.png');
    background-size: contain;
    background-repeat: no-repeat;
}

nav#mobile {
    background-image: none;
}

nav#mobile .searchBox button.search {
    left: 27px;
}

nav#mobile .searchBox input {
    width: 75%;
}

nav#web ol > li {
    margin-left: 18px;
}
nav#web ol a {
    margin-left: 0px;
}

nav#web ol > li > ul {
    left: -38px;
}

.mobile-search-button {
    z-index: 5;
    left: 30px;
    top: 4px;
    /* background-image: url('./theme/mobile-extend.png'); */
}

.searchBox .close,
.show-search {
    position: absolute;
    top: -17px;
    right: -14px;
    font-family: 'Montserrat';
    font-size: 30px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background-image: url('../theme/button-background.png');
    background-size: cover;
    border: 1px solid #723a20;
    transition: 0.3s;
    cursor: pointer;
    display: none;
    font-weight: bold;
    line-height: 0px;
}

.searchBox .close p {
    height: 40px;
    line-height: 35px;
}

.show-search {
    display: flex;
    z-index: 9;
    background-image: url('../theme/navbar-button-search.png');
    background-position-x: -4px;
    background-color: #351c0d;
    transition: 0.3s;
}

.show-search:hover {
    background-color: #fff;
    transition: 0.3s;
    transform: scale(1.05);
}

.searchBox .close:hover {
    color: #fff;
    transition: 0.3s;
    transform: scale(1.05);
}

.option:hover {
    color: #fff;
    transition: 0.3s;
}

.searchInput:focus {
    outline: 0;
}

/* main */
#main-games {
    overflow-y: scroll;
    overflow-x: hidden;
    background-size: cover;
    padding-right: 2px;
    scrollbar-color: #663300 rgba(0, 0, 0, 0);
    width: calc(100% - 62px);
    margin-left: 25px;
    padding-right: 38px;

    background-image: linear-gradient(left, #a65b2f, #a65b2f calc(100% - 31px), transparent calc(100% - 31px), transparent 100%);
    background-image: -webkit-linear-gradient(left, #a65b2f, #a65b2f calc(100% - 31px), transparent calc(100% - 31px), transparent 100%);
}

#main-background {
    background: #723a20;
    padding: 0 5px;
    padding-bottom: 5px;
    margin-left: 5px;
    margin-top: -2px;
}

#main {
    width: 895px;
    min-width: 780px;
    padding-right: 5px;
    margin-top: -1px;
    position: relative;
    background-image: url('../theme/background-gradient.png');
    background-size: cover;
}

#main::before {
    content: '';
    width: 14px;
    height: 99%;
    display: block;
    position: absolute;
    background-image: url('../theme/main-box-side-sm.png');
    background-size: contain;
    background-repeat: round;
    transition: 0.3s;
    left: 0;
    top: 1%;
    z-index: 2;
}

#main::after {
    content: '';
    width: 14px;
    height: 99%;
    display: block;
    position: absolute;
    background-image: url('../theme/main-box-side-sm.png');
    background-size: contain;
    background-repeat: round;
    transition: 0.3s;
    right: 20px;
    top: 1%;
    z-index: 2;
}

/* .main-box-end {
     width: calc(100% - 10px);
    width: 100%;
    height: 16px;
    position: absolute;
    bottom: -5px;
    left: 0px;
     background-image: url('./theme/main-box-bottom-sm.png');
    background-size: contain;
    z-index: 0;
    background-color: rgb(177, 101, 54);
    background-repeat: round;
    background-position-y: 2px;
    background-position-x: 5px;
} */

.button-play {
    background-image: url('../theme/play-button.png');
    background-size: contain;
    height: 40px;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    line-height: 30px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    outline: none;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    cursor: pointer;
}

.button-play:hover {
    color: #fff;
    transition: 0.3s;
}

.counter {
    background-image: url('../theme/counter.png');
    background-size: contain;
    height: 40px;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    line-height: 40px;
}

.counte-desc {
    margin-bottom: -10px;
    font-size: 12px;
    padding-left: 4px;
}

p b {
    padding-right: 5px;
}

/* game options / describe / details / buttons / information */

.game {
    width: calc(100% + 15px);
    height: 150px;
    display: flex;
    flex-direction: row;
    background: rgba(70, 0, 0, 0.95);
    font-family: 'Montserrat', sans-serif;
    font-size: 85%;
    color: white;
    margin: 5px auto 0px auto;
    margin-left: 0px;
}

.first-part {
    width: 55%;
    display: flex;
    flex-direction: row;
}

.second-part {
    width: 45%;
    display: flex;
    flex-direction: row;
}

.image {
    width: 45%;
    text-align: center;
    height: 100%;
    line-height: 140px;
    margin: 5px;
}

.details {
    width: 55%;
    height: calc(100% - 20px);
    padding: 10px 1%;
    max-width: 250px;
}

.describe {
    width: 60%;
    height: calc(100% - 20px);
    padding: 10px 1%;
}

.describe h2 {
    font-size: 110%;
    height: auto;
    margin-top: 0px;
}

#main h1 {
    text-align: center;
    width: 100%;
}

.buttons {
    width: 30%;
    height: 94%;
    padding: 1%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* 
.buttons button {
  background-color: white;
  color: black;
  border: 2px solid #2b5104;
  padding: 5% 0%;
  width: 113px;
  font-family: "Montserrat", sans-serif;
  font-size: 110%;
}

.buttons button:hover {
  background-color: #3d700b;
  color: white;
} */

.details p {
    margin: 0 auto;
}

.searchAutocomplete {
    width: 100%;
    height: auto;
    position: absolute;
    top: 78px;
    max-height: 320px;
    overflow-y: auto;
}

.option {
    cursor: pointer;
    background-image: url('../theme/navbar-item-long.png');
    background-size: contain;
    height: 57px;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

#app {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

/* @media screen and (min-width: 600px) { */
::-webkit-scrollbar {
    margin-right: 20px;
    width: 10px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
    background-color: #663300;
}
/* } */

@media screen and (max-width: 600px) {
    .buttons {
        height: 45px;
    }
}

@media screen and (max-width: 1000px) {
    #app {
        transform: scale(0.8);
    }
}

@media screen and (max-width: 765px) {
    #app {
        transform: scale(0.65);
    }
}

@media screen and (max-width: 600px) {
    #mobile {
        display: flex;
    }
    #web {
        display: none;
    }
    #app {
        transform: scale(0.75);
    }
    #logo {
        width: 140%;
        margin-top: -20px;
    }
    #logo img {
        height: 135px;
        object-fit: contain;
    }
    #main {
        width: 555px;
        min-width: unset;
    }

    .game {
        /* width: calc(100% - 32px); */
        height: 380px;
        flex-direction: column;
        font-size: 100%;
    }

    .first-part,
    .second-part {
        width: 100%;
        display: flex;
        flex-direction: row;
    }

    .second-part {
        flex-direction: column;
    }

    .describe {
        width: 100%;
        height: calc(100% - 20px);
    }

    .buttons {
        width: 100%;
        display: flex;
        flex-direction: row-reverse;
    }

    .counte-desc {
        height: 20px;
        margin-right: 20px;
        font-size: 105%;
        position: relative;
        top: -5px;
    }

    .button-play {
        width: 35%;
        font-size: 110%;
    }

    .counter {
        width: 30%;
        position: relative;
        top: -14px;
    }

    .counters {
        width: 65%;
        display: flex;
    }

    .game-description {
        height: 60px;
    }
}

@media screen and (min-width: 601px) {
    #web {
        display: flex;
    }
    #mobile {
        display: none;
    }
}

@media screen and (max-width: 475px) {
    #app {
        transform: scale(0.65);
        margin-left: 0px;
    }

    #logo {
        margin-top: -100px;
    }
}

@media screen and (max-width: 420px) {
    #app {
        transform: scale(0.65);
    }

    #logo {
        width: 140%;
        margin-top: -195px;
    }
}

@media screen and (max-width: 390px) {
    #app {
        transform: scale(0.55);
        margin-left: 0;
    }
}

@media screen and (max-width: 350px) {
    #app {
        transform: scale(0.55);
    }
    #logo {
        width: 180%;
    }
}

/* news */

.news {
    width: calc(100% + 15px);
    height: 55px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;

    background: rgba(70, 0, 0, 0.95);
    font-family: 'Montserrat', sans-serif;
    font-size: 85%;
    color: white;
    margin: 5px auto 0px auto;
    margin-left: 0px;
}

.news strong {
    width: 220%;
}
.news .button-open-news {
    width: 40%;
}

#main-games img {
    max-width: 100%;
    height: auto;
}
