@font-face {

    font-family: 'Font1';

    src: local('Font1'),

    url(assets/Pribambas-Regular.ttf);

}
@font-face {

    font-family: 'Font2';

    src: local('Font2'),

    url(assets/actionj.ttf);

}
* {
    font-family: 'Font1';
    margin: 0;
    padding: 0;
}
body {
    display: grid;
    background: url("assets/Decoration/background.png");
    background-size: 100%;
    grid-template-areas:
        "H"
        "M"
        "N"
        "A"
        "F";
    grid-auto-rows: minmax(50px, auto)
}
h1 {
    font-size: 4vw;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: solid saddlebrown 5px;
    padding-right: 20px;
    /*padding-left: 50px;*/
    background: #eaddc8;
    grid-area: H;
    padding-bottom: 5px;
}

main {
    display: block;
    background: none;
    grid-area: M;
    background: #7569a6;
}

.logoImg {
    height: 70px;
    width: 70px;
}

.logoText {
    font-family: 'Font2';
    font-size: 35px;
    color: saddlebrown;
}

.headerBox {
    justify-content: space-between;
    display: flex;
    flex-direction: row;
}

.mobileHead {
    display: flex;
    flex-direction: row;
    align-items: end;
}
.searchInf {
    padding-left: 10px;
    font-size: 20px;
    overflow: hidden;
    border: solid 1px black;
    border-radius: 20px;
    height: 40px;
    width: 100%;
}

.navButtons {
    margin-right: 10px;
    padding: 5px;
    padding-bottom: 10px;
    font-size: 30px;
    color: saddlebrown;
    border-radius: 10px;
    text-decoration: none;
    border: 0;

}
.mainInf {
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 20px;
    font-size: 3.5vw;
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    justify-content: center;
    color: #eaddc8;
}
.itemMain {
    margin: 10px;
}

footer {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 15px;
    vertical-align: center;
    border-top: 5px solid saddlebrown;
    text-align: center;
    background: #eaddc8;
    grid-area: F;
    color: saddlebrown;
}

.ads {
    margin-top: 40px;
    grid-area: A;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
}
.adsSection {
    text-align: center;
    vertical-align: center;
    margin: 10px;
    font-size: 2.5vw;
    color: #eaddc8;
    min-height: 100px;
    min-width: 50px;
    background: #7569a6;
    padding: 10px;
}
.news {
    grid-area: N;
}
.newsSection {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    vertical-align: center;
    min-width: 200px;
    max-width: 100%;
    /*margin-right: 100px;*/
    min-height: 100%;
    font-size: 5vw;
    color: #eaddc8;
    background:#6417ac;
    padding: 20px;
}
.new {
    /*padding: 20px;*/
    border-bottom: 2px solid #eaddc8;
    padding-bottom: 20px;
}

#frogImg {
    animation: frogGo 10s infinite;
    position: relative;
    left: 0px;
    width: 40%;
    height: auto;
}

.menu-icon {
    padding-top: 10px;
    font-size: 45px;
    color: saddlebrown;
    line-height: 50px;
}
nav {
    z-index: 2;
    text-align: center;
    position: absolute;
    background: #eaddc8;
    top:70px;
    left:0;
    width: 100%;
    padding-bottom: 20px;
}
nav ul {
    list-style-type: none;
    max-height: 0px;
    overflow: hidden;
    transition: all 0.5s;
}
nav ul li {
    padding: 0 15px;
}
nav ul li a {
    display: inline-block;
    padding: 12px;
    /* Add your custom styles below to change appearance of links */
    color: #DAE1E7;
    text-decoration: none;
    letter-spacing: 0.05em;
}
nav ul li a:hover, nav ul li a:focus {
    color: #eb6f4a;
}
#checkbox {
    display: none;
}
#checkbox:checked ~ nav ul {
    max-height: 200px;
    padding: 15px 0;
    transition: all 0.5s;
}

@keyframes frogGo {
    10% {
        left: 10%;
        transform: rotate(20deg);
    }
    20% {
        left: 22%;
        transform: rotate(-10deg);
    }
    30% {
        left: 40%;
        transform: rotate(30deg);
    }
    40% {
        left: 51%;
        transform: rotate(0);
    }
    50% {
        left: 60%;
        transform: scale(-1,1);
    }
    60% {
        left: 52%;
        transform: rotate(-20deg) scale(-1,1);
    }
    70% {
        left: 40%;
        transform: rotate(10deg)  scale(-1,1);
    }
    80% {
        left: 24%;
        transform: rotate(-20deg) scale(-1,1);
    }
    90% {
        left: 12%;
        transform: rotate(10deg) scale(-1,1);
    }
}


.heroesButtons {
    margin-top: 30px;
    padding: 10px;
    font-size: 20px;
    transition: 0.3s;
    color: #eaddc8;
    background: #7569a6;
    border-radius: 20px;
    border: #eaddc8 solid 5px;
}
.heroesButtons:hover {
    background: #eb6f4a;
}

.heroGallery {
    overflow: hidden;
    height: 480px;
    margin: 0;
    display: grid;
    grid-template-rows: 400px 80px;
    grid-template-columns: 1fr 10px 10px 10px 10px 10px 1fr;
    align-items: center;
    justify-items: center;
}
.heroesButtons:hover {
    background: #eb6f4a;
}

div.carousel {
    grid-row: 1 / 2;
    grid-column: 1 / 8;
    width: 80vw;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 480px;
    --items: 5;
    --middle: 3;
    --position: 1;
    pointer-events: none;
}

div.item_1 {
    background-size: cover;
    position: absolute;
    width: 240px;
    height: 320px;
    background-color: coral;
    --r: calc(var(--position) - var(--offset));
    --abs: max(calc(var(--r) * -1), var(--r));
    transition: all 0.25s linear;
    transform: rotateY(calc(-10deg * var(--r)))
    translateX(calc(-240px * var(--r)));
    z-index: calc((var(--position) - var(--abs)));
}

div.item_1:nth-of-type(1) {
    --offset: 1;
    background-color: #90f1ef;
}
div.item_1:nth-of-type(2) {
    --offset: 2;
    background-color: #ff70a6;
}
div.item_1:nth-of-type(3) {
    --offset: 3;
    background-color: #ff9770;
}
div.item_1:nth-of-type(4) {
    --offset: 4;
    background-color: #ffd670;
}
div.item_1:nth-of-type(5) {
    --offset: 5;
    background-color: #e9ff70;
}

input:nth-of-type(1) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
input:nth-of-type(1):checked ~ div.carousel {
    --position: 1;
}

input:nth-of-type(2) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}
input:nth-of-type(2):checked ~ div.carousel {
    --position: 2;
}

input:nth-of-type(3) {
    grid-column: 4 /5;
    grid-row: 2 / 3;
}
input:nth-of-type(3):checked ~ div.carousel {
    --position: 3;
}

input:nth-of-type(4) {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
}
input:nth-of-type(4):checked ~ div.carousel {
    --position: 4;
}

input:nth-of-type(5) {
    grid-column: 6 / 7;
    grid-row: 2 / 3;
}
input:nth-of-type(5):checked ~ div.carousel {
    --position: 5;
}
