.block {
    max-width: 1440px;
    width: 75vw;
    margin: 0 auto var(--spacing) auto;
}



/*------
Features
------*/

#features {
    position: relative;
    overflow: hidden;
}

#features::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
    background-image: url(img/GLYPH.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: opacity(25%);
    animation: rotation 60s infinite linear;
    z-index: -1;
}

@keyframes rotation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(359deg);
    }
  }

#features-list {
    display: grid;
    grid-template-columns: 1fr var(--spacing) var(--spacing) 1fr;
    grid-template-rows: repeat(3, auto auto var(--gap) var(--spacing));
    margin-bottom: 5%;
    margin-top: 10%;
}

.feature {
    padding: var(--gap);
    background: #dd8244;
    padding-top: 3%;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 3%;
    margin-top: 35%;
}

.screen1, .screen3 {
    grid-column: 1 / span 3;
}

.feature1, .feature3 {
    grid-column: 3 / span 2;
}

.screen1 {
    grid-row: 1 / 4;
    margin-bottom: 10%;
}

.feature1 {
    grid-row: 2 / 3;
}

.screen2 {
    grid-column: 2 / span 3;
    grid-row: 5 / 8;
    margin-bottom: 10%;
}

.feature2 {
    grid-column: 1 / span 2;
    grid-row: 6 / 7;
}

.screen3 {
    grid-row: 9 / 12;
    margin-bottom: 10%;
}

.feature3 {
    grid-row: 10 / 11;
}

.screen > picture, .screen img {
    width: 100%;
    object-fit: cover;
}


.screenshots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /*gap: var(--gap);*/
}

:is(.screenshots, .videos, .devdiaries) a img {
    max-width: 100%;
    width: 100%;
    /*border-image: url(https://kalypsomedia.co.jp/wp-content/themes/KALYPS/disciples/img/frame.png) 72 / 22px / 6px round;*/
    border-style: none;
}

.devdiaries {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

a.scr {
    margin: 3%;
}







/*--------
Responsive
--------*/

@media (max-width: 1350px) {
    #features-list {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, auto auto auto auto var(--spacing));
    }

    .screen1, .screen2, .screen3 {
        grid-column: 1 / span 3;
    }

    .feature1, .feature2, .feature3 {
        grid-column: 2 / span 3;
    }

    .screen1 {
        grid-row: 1 / 4;
    }

    .feature1 {
        grid-row: 3 / 5;
    }

    .screen2 {
        grid-row: 6 / 9;
    }

    .feature2 {
        grid-row: 8 / 10;
    }

    .screen3 {
        grid-row: 11 / 14;
    }

    .feature3 {
        grid-row: 13 / 15;
    }
}

@media (max-width: 889px) {
    body{
        display: block;
    }
    footer {
        padding: 1rem;
    }
    header {
        background: url(img/keyart.jpg) center;
        background-size: cover;
    }

    #intro, #apply-intro, #desc, #apply {
        grid-column: 2 / 3;
        width: 100%;
        padding: 1rem;
    }

    p{
        padding: 1rem;
    }
    .block{
        width: 100vw;
    }

    .feature{
        margin-top: 0%;
        margin-bottom: 10%;
    }

    header video {
        display: none;
    }

    #age-header {
        background: none;
    }

    #newsletter {
        flex-direction: column;
        gap: 0;
        padding: 0;
        background: none;
        border: none;
    }

    #nl-form {
        margin-bottom: calc(var(--spacing) / 2);
        padding: 1rem 2rem;
        text-align: center;
        background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5) 15%, rgba(0, 0, 0, .75) 40%, rgba(0, 0, 0, .75) 60%, rgba(0, 0, 0, .5) 85% , rgba(0, 0, 0, 0)),
                          url(img/GLYPH.png);
        background-size: cover;
        background-repeat:space;
        border-top: 2px solid var(--keycol);
        border-bottom: 2px solid var(--keycol);
    }

    #wallpapers {
        max-width: 100%;
    }

    #features-list {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto auto var(--spacing));
    }
    
    #features-list > * {
        grid-column: 1;
    }

    .screen1 {
        grid-row: 1;
        margin-bottom: 0%;
    }

    .feature1 {
        grid-row: 2;
    }

    .screen2 {
        grid-row: 4;
        margin-bottom: 0%;
    }

    .feature2 {
        grid-row: 5;
    }

    .screen3 {
        grid-row: 7;
        margin-bottom: 0%;
    }

    .feature3 {
        grid-row: 8;
    }

 
    .videos {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .videos a:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .videos a:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .videos a:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .videos a:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .screenshots {
        grid-template-columns: repeat(2, 1fr);
    }

    footer::after {
        width: 200px;
        top: -122px;
    }
    #steam {
        width: 100%;
        margin-bottom: 2rem;
        margin-top: 3%;
        padding: 0 1rem;
    }
    #steam2 {
        width: 100%;
        margin-bottom: 2rem;
        padding: 1rem;;
    }
}

@media (max-width: 600px) {
    #logo {
        display: block;
        width: 80%;
        margin: 2rem auto 0 auto;
    }
    .screen1{
        margin-bottom: 0%;
    }
    .screen2{
        margin-bottom: 0%;
    }
    .screen3{
        margin-bottom: 0%;
    }
    .feature{
        margin-top: 0%;
        margin-bottom: 10%;
    }
    .header-links {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr .5fr;
    }

    .header-links .btn {
        order: 1;
        grid-column: 1 / 3;
        justify-self: center;
    }

    .header-links a:nth-child(2) {
        order: 2;
        text-align: center;
    }

    .header-links a:last-of-type {
        order: 3;
        text-align: center;
    }

    footer::after {
        display: none;
    }
}

@media (max-width: 550px) {
    #wishlist {
        flex-direction: column;
    }

    .videos, .screenshots, .devdiaries {
        grid-template-columns: 1fr;
    }

    .videos a:is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4)) {
        grid-column: 1 / 2;
    }

    .videos a:nth-child(1) {
        grid-row: 1 / 2;
    }

    .videos a:nth-child(2) {
        grid-row: 2 / 3;
    }

    .videos a:nth-child(3) {
        grid-row: 3 / 4;
    }

    .videos a:nth-child(4) {
        grid-row: 4 / 5;
    }

    .videos a:first-of-type {
        grid-column: 1 / 2;
    }
    .screen1{
        margin-bottom: 0%;
    }
    .screen2{
        margin-bottom: 0%;
    }
    .screen3{
        margin-bottom: 0%;
    }
    .feature{
        margin-top: 0%;
        margin-bottom: 10%;
    }
}