/* -- ART GALLERY -- */
#game-content.one-col #column-one {
    padding: 0;
}

#popup-container {
    position: fixed;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99;
}

.popup-window {
    position: relative;
    background: white;
    width: 400px;
    top: 30vh;
    border: solid black 1px;
    margin: 0 auto;
    opacity: 0;
}

.popup-content {
    border: solid black 2px;
    margin: 2px;
    padding: 10px;
    text-align: right;
}

.popup-header {
    font-weight: bold;
    text-align: left;
    padding: 0;
    margin: 0;
}

.popup-content > input:nth-child(3),input:nth-child(4) {
    display: inline-block;
    position: relative;
    background: white;
    color: black;
    border: solid black 1px;
    cursor: pointer;
    transition: color,background 0.2s;
    padding: 0px 10px;
}

.popup-content > input:nth-child(3):hover,input:nth-child(4):hover {
    background: black;
    color: white;
    transition: color,background 0.2s;
}

#art-gallery {
    width: 100%;
    height: 100%;
    position: relative;
    background: black;
}

#art-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-auto-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    padding: 0px;
    margin: 0px;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 1;
}

.grid-item {
    display: inline-block;
    background-color: black;
    width: auto;
    height: auto;
    border: 0px;
    cursor: pointer;
}

#art-gallery-bg, #art-gallery-slideshow, #art-gallery-slideshow2 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    overflow: hidden;
}

#art-gallery-slideshow, #art-gallery-slideshow2 {
    z-index: 2;
    pointer-events: none;
}

#game-nav button {
    background: white;
    z-index: 5;
}

.grid-out {
    animation: popup-out 0.2s forwards;
}

.game-nav-hide {
    display: none !important;
}

.popup-in {
    animation: popup-in 0.3s forwards;
}

.popup-out {
    animation: popup-out 0.3s forwards;
}

.popup-bgfadein {
    animation: popup-bgfadein 0.5s forwards;
}

.popup-bgfadeout {
    animation: popup-bgfadeout 0.5s forwards;
}

.img-in {
    animation: popup-in 1s forwards;
}

.img-out {
    animation: popup-out 1s forwards;
}

@keyframes popup-bgfadein {
    from {background: #00000000;}
    to {background: #000000DD;}
}

@keyframes popup-bgfadeout {
    from {background: #000000DD;}
    to {background: #00000000;}
}

@keyframes popup-in{
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popup-out{
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}