* {
    scrollbar-width: thin;
    scrollbar-color: white #262626;
}

::selection {
    background: white;
    color: #262626;
}

a {
    color: crimson;
}

body {
    background: black;
    background-image: url(Images/Backgrounds/fancyblackbackground.webp);
    font-family: 'Play', Tahoma, Verdana;
    color: white;
}

.evilcontainer {
    border: solid 22px;
    border-image: url(Images/Borders/miserabledolly_doily2.png) 24 fill round;
    width: fit-content;
    margin: auto;
}

#container {
    background: #262626;
    max-width: 1500px;
    display: grid;
    grid-template: 
        "art article"
        "art article"
        "footer footer" / auto 26%;
}

#artcontainer {
    justify-content: center;
    grid-area: art;
    padding-top: 10px;
    overflow-y: auto;
    height: 820px;
    gap: 10px;
    padding-bottom: 8px;
}

header {
    text-align: center;
    grid-area: header;
    border-bottom: solid 2px;
}

h1 {
    font-family: 'Jersey 15', Tahoma, sans-serif;
    font-weight: 100;
    font-size: 60px;
    letter-spacing: 7px;
    margin: 7px 0
}

article {
    padding: 20px;
    grid-area: article;
    border-left: dashed 2px;
}

.artbox {
    max-width: 260px;
    max-height: 325px;
    border: 2px solid;
    overflow: hidden;
}

.artbox img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    transition: ease 0.5s;
}

.artbox img:hover, .artbox img:focus {
    transform: scale(1.1);
}

hr {
    height: 30px;
    background: url(Images/Borders/music%200004.gif);
    background-repeat: repeat-x;
    border: none;
    background-size: 220px
}

footer {
    text-align: center;
    grid-area: footer;
    padding: 15px;
    font-weight: 700;
    font-size: 19px;
    border-top: solid 2px;
}

#modal {
    position: fixed;
    max-width: 710px;
    height: auto;
    z-index: 200;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#modal img {
    width: 100%;
    height: auto;
    border: solid 3px black;
}

.a14 {
    max-width: 500px !important;
}

.a4 {
    max-width: 600px !important;
}

#modal-background {
    background: rgba(0, 0, 0, 0.36);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
}

#caption {
    font-weight: 700;
    filter: drop-shadow(1px 1px 0 black) 
    drop-shadow(-1px 1px 0 black)
    drop-shadow(1px -1px 0 black)
    drop-shadow(-1px -1px 0 black);
    text-align: center;
    font-size: 1.6em;
    margin-top: 0;
    position: absolute;
    left: 0;
    width: 100%;
}

#date {
    font-weight: 700;
    filter: drop-shadow(1px 1px 0 black) 
    drop-shadow(-1px 1px 0 black)
    drop-shadow(1px -1px 0 black)
    drop-shadow(-1px -1px 0 black);
    text-align: center;
    font-size: 1.6em;
    margin-top: 0;
    position: absolute;
    left: 0;
    top: -37px;
    width: 100%;
}

@media only screen and (max-width: 1550px) {
    #container {
        max-width: 1250px   
    }
    
    .artbox {
        width: 210px;
        height: 250px;
    }
}

@media only screen and (max-width: 950px) {
    #container {
        grid-template:
            "article"
            "art"
            "footer";
        text-align: center;
    }
    
    .evilcontainer {
        margin: -7px
    }
    
    article {
        border-left: none;
        border-bottom: dashed 2px white
    }
    
    #artcontainer {
        height: max-content;
    }
    
    .artbox {
        width: 226px;
        height: 280px;
    }
}

@media only screen and (max-width: 750px) {
    #container {
        grid-template:
            "article"
            "art"
            "footer";
        text-align: center;
    }
    
    .evilcontainer {
        margin: -7px
    }
    
    article {
        border-left: none;
        border-bottom: dashed 2px white
    }
    
    #artcontainer {
        height: max-content;
    }
    
    .artbox {
        width: 200px;
        height: 270px;
    }
    
    #modal {
        width: 70%;
    }
}

@media only screen and (max-width: 460px) {
    .artbox {
        width: 150px;
        height: 220px;
    }
}