* {
    -webkit-user-drag: none;
}

html {
    /* Prevent element highlighting on click or touch*/
  -webkit-tap-highlight-color:transparent;
}

section#video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    
    width: 100%;
    min-height: 800px;
    background-image: 
        url("/static/img/main_back_l_0.535895783b50.webp"), 
        url("/static/img/main_back_p_0.aa0bb2bcbe72.webp");
    background-repeat: no-repeat;
    background-position: center 80%;
    
    position: relative;
}

video.background-video {
    width: 100%;
    height: 100%;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.video-main-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: space-between; */
    justify-content: flex-end;
    flex-grow: 1;

    max-width: 760px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

h1.playGame-header {
    color: #f9f2b0;
    font-size: 50px;
    font-family: Friz-Quadrata, serif;
    font-weight: bold;
    text-align: center;
    text-shadow: 3px 5px 5px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
    margin: 40px 0 0 0;
    display: none;
}

button.playGame-btn {
    /* align-self: end; */
    position: relative !important;
    margin-top: 80px;
}

/* PLAFORMS BLOCK */
.platforms-block {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 160px);
    grid-gap: 5px;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    z-index: 2;
}

a.platforms-block_link {
    width: inherit;
    height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

a.platforms-block_link:last-child
{
    margin-left: 10px;
}

a.platforms-block_link svg {
    transition: var(--transition-anim) !important;
}

a.platforms-block_link:hover svg {
    scale: 1.1;
}

/* LAST CHANGES SECTION */
section#last-changes-section
{
    padding: 60px 0;
    min-height: 500px;
    height: 100%;
    width: 100%;
    color: var(--white-font-color);
    background-color: black;
    background-image: url("/static/img/main_back_5.cc4ab536bcf6.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    position: relative;
}

/* section#last-changes-section .divider
{
    bottom: 0;
    z-index: 1;
} */

h2.last-chagnes_title
{
    font-family: Friz-Quadrata, sans-serif;
    font-size: 50px;
    text-shadow: 3px 5px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
    opacity: 80%;
}

.last-changes_grid
{
    display: grid;
    grid-template-rows: auto;
    grid-gap: 60px;
    justify-content: center;
    padding: 20px;
    margin: 40px 0;
    z-index: 2;
}

a.last-changes_item
{
    background-color: var(--white-font-color);
    background-image: url("/static/img/texture_parchment_main1.9616dd888fab.jpg");
    background-repeat: no-repeat;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 3px 6px 0px;
    display: grid;
    width: 100%;
    height: 100%;
    padding: 5px 0;
    border-radius: 20px;
    text-decoration: none;
    position: relative;
}

.last-changes_item-icon {
    min-width: 180px;
    width: 100%;
    min-height: 105px;
    max-height: 210px;
    height: 100%;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;

    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: var(--transition-anim);
}

.last-changes_item-icon img {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: var(--transition-anim);
    overflow: hidden;
}


a.last-changes_item:hover .last-changes_item-icon img
{
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: scale(1.05);
}

.last-changes_item-desc-block{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 10px;
    margin: 5px;
}

h3.last-changes_item-title
{
    font-size: 22px;
    color: var(--dark-brown-color);
}

.item-frame
{
    position: absolute;
    width: 100%;
    height: 100%;
    border-style: solid;
    border-image: url("/static/img/frame_shop_silver.7bcbce06b6ef.png") 200 / 100px repeat;
    border-image-outset: 50px;
    z-index: 2;
    pointer-events: none;
}

button.green-btn
{
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

button.green-btn a
{
    color: var(--white-font-color);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-footer
{
    padding: 40px 0 15px 0 !important;
}

/* MEDIA-QUERIES */
@media screen and (max-width: 499px) {
    h1.playGame-header {
        font-size: 36px;
    }

    h2.last-chagnes_title
    {
        font-size: 36px;
    }
}

/* Portrait styles for mobile */
@media screen and (max-width: 499px) and (orientation: portrait) {

}

/* Landscape styles for mobile */
@media screen and (max-width: 699px) and (orientation: landscape) {
    section#video-section {
        height: 100% !important;
        min-height: 400px !important;
        max-height: 1050px;
    }

    .last-changes_grid {
        grid-template-columns: repeat(2, minmax(260px, 420px)) !important;
    }

    a.last-changes_item:last-child {
        grid-column: 1 / span 2 !important;
        max-width: 390px !important;
        width: 50% !important;
        margin: 0 auto !important;
    }
}

/* 500px - 699px */
@media screen and (min-width: 500px) and (max-width: 699px) { 
    /* h1.playGame-header {
        font-size: 36px;
        margin: 0;
        align-self: anchor-center;
    } */

    h2.last-changes_title {
        font-size: 36px;
    }
}

/* Up to 700px */
@media screen and (max-width: 700px) {
    section#video-section {
        height: 100% !important;
        min-height: 600px;
        max-height: 1050px;
        background-size: 0, auto 170%;
        background-position: bottom;
    }

    .video-main-block
    {
        margin-top: 80px;
    }

    h1.playGame-header {
        font-size: 36px;
        align-self: anchor-center;
    }

    button.playGame-btn {
        /* margin-top: 30px; */
        /* margin-bottom: 40px; */
        margin-bottom: 20px;
    }

    .platforms-block {
        grid-template-columns: repeat(2, 160px);
        grid-gap: 10px 20px;
    }

    a.platforms-block_link:nth-child(even) {
        justify-content: flex-start;
    }

    a.platforms-block_link:nth-child(odd) {
        justify-content: flex-end;
    }

    a.platforms-block_link:last-child {
        margin-left: 0;
    }
    
    .last-changes_grid {
        grid-template-columns: minmax(260px, 420px) !important;
    }

    a.last-changes_item:last-child {
        grid-column: 1 !important;
        width: 100% !important;
    }
}

/* 701px - 926px */
@media screen and (min-width: 701px) and (max-width: 926px) {
    section#video-section {
        height: 90vh;
        max-height: 1050px;
        min-height: 800px;
    }

    .video-main-block {
        margin: 100px 0 50px 0;
    }

    .last-changes_grid {
        grid-template-columns: repeat(2, minmax(calc(50% - 30px), 420px));
    }

    a.last-changes_item:last-child {
        grid-column: 1 / span 2;
        width: calc(50% - 15px);
        margin: 0 auto;
    }
}

/* Portrait styles for tablet */
@media screen and (min-width: 701px) and (max-width: 926px) and (orientation: portrait) {
    section#video-section {
        height: 90vh !important;
        min-height: 800px !important;
        max-height: 1050px !important;
    }
}

/* 927px - 1319px */
@media screen and (min-width: 927px) and (max-width: 1319px) {
    section#video-section {
        height: 90vh;
        max-height: 1050px;
        min-height: 800px;
    }

    .video-main-block {
        margin: 100px 0 50px 0;
    }

    .last-changes_grid {
        grid-template-columns: repeat(2, minmax(260px, 420px));
    }

    a.last-changes_item:last-child {
        grid-column: 1 / span 2;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }
}

/* 1320px & bigger */
@media screen and (min-width: 1320px) {
    .video-main-block {
        margin: 100px 0 50px 0;
    }

    .last-changes_grid {
        grid-template-columns: repeat(3, minmax(260px, 420px));
    }

    a.last-changes_item:last-child {
        grid-column: 3;
        width: 100%;
    }
}

/*  */
@media screen and (max-width: 926px) and (max-height: 430px) {
    section#video-section {
        height: 100% !important;
        min-height: 600px !important;
        max-height: 1050px !important;
        background-size: 0, cover !important;
    }

    .video-main-block {
        margin: 75px 0 100px 0;
    }
    
    h1.playGame-header {
        margin: 0 0 20px 0;
    }

    button.playGame-btn {
        margin-top: 30px;
        margin-bottom: 0;
    }
}