* {
    scrollbar-color: grey black;
}

body {
    background: url(Images/Backgrounds/miserabledollybg_argyle1.png);
    color: white;
}

hr {
    border: dashed 1px white;
    width: 100%;
}

.evilcontainer {
    border: solid 24px;
    border-image: url(Images/Borders/miserabledolly_cross2.png) 31 fill round;
    width: fit-content;
    margin: auto;
}

#container {
    max-width: 1000px;
    margin: auto;
    background: #262626;
    padding: 10px;
    border: dotted 3px;
}

#container2 {
    max-width: 1300px;
    margin: auto;
    background: #161616;
    padding: 11px;
    border: dashed 2px white;
    display: grid;
    grid-template:
        "header header"
        "sidebar main"
        "footer footer" / 23% auto;
    gap: 8px;
    
}

header {
    grid-area: header;
    border: solid 1px;
    padding: 10px;
    background: linear-gradient(to right, #262626 12%, grey);
}

h1::selection, #quot::selection {
    background: lightgrey;
    color: white;
}

#sidebar {
    grid-area: sidebar;
    padding-top: 0;
}

#me {
    text-align: center;
}

#idbuttons {
    justify-content: center;
    column-gap: 5px;
}

#idbuttons img {
    width: 86px;
    height: 15px;
}

#quot {
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Aldrich', Tahoma, sans-serif;
}

#pfp {
    display: block;
    margin: auto;
    max-width: 210px;
    width: 100%;
    height: auto;
    margin-top: -8px;
}

footer {
    padding: 13px;
    font-weight: 700;
    text-transform: uppercase;
    grid-row-start: 3;
    grid-column: 1 / span 3;
    border: solid 1px white;
    text-align: center;
    letter-spacing: 5px;
    grid-area: footer;
    background: #262626;
}

main {
    display: grid;
    grid-template: 
        "intro intro intro"
        "blinkies blinkies blinkies"
        "interest favchar favchar"
        "extras extras fanlistings"
        "ascii ascii ascii"
        "aboutsite aboutsite aboutsite"/ 30% auto 25%;
    gap: 8px;
    grid-area: main;
}

section, article, aside {
    border: solid 1px white;
    padding: 10px;
    background: #262626
}

h1 {
    font-family: 'Jersey 15', Tahoma, sans-serif;
    font-weight: 100;
    margin: 0;
}

h2 {
    margin: 0;
    font-family: 'Aldrich', Tahoma, sans-serif;
    font-weight: 100;
}

a {
    color: crimson;
}

a:hover {
    color: white;
}

table {
    border: solid 1px;
}

#favchar {
    justify-content: center;
    grid-area: favchar;
}

.characterbox {
    max-width: 206px;
    width: 100%;
    max-height: 206px;
    height: auto;
    border: solid 2px;
    position: relative;
    margin: 5px;
}

.characterbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.charactertext {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.7rem;
    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);
    opacity: 0;
    text-align: center;
    font-family: 'Aldrich', Tahoma, sans-serif;
}

.characterbox:hover .charactertext, .characterbox:hover .charactertext {
    opacity: 1;
    transition: 0.3s steps(3);
}

.characterbox:hover img, .characterbox:focus img {
    filter: brightness(40%);
    transition: 0.3s steps(3);
}

.source {
    font-size: 1rem;
}

#blinkies {
    overflow: hidden;
    padding: 0px;
    justify-content: space-between;
    border: none;
    grid-area: blinkies;
    background: none;
}

#blinkies img {
    max-width: 150px;
    max-height: 20px;
    filter: grayscale(1)
}

#ascii {
    text-align: center;
    padding: 0;
    grid-area: ascii;
    position: relative;
    height: 250px;
}

#ascii img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    object-position: top;
}

#PLS {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#PLS pre {
    font-weight: 700;
    font-size: 1.3em;
}

#interests {
    grid-area: interest;
    height: 460px;
    overflow-y: scroll;
    padding: 0;
}

#interests h2 {
    padding: 8px
}

details {
    margin-bottom: 8px;
    padding-left: 8px;
}

summary {
    font-weight: 700;
    font-style: italic;
    font-size: 1.3em;
    padding: 4px;
    padding-left: 10px;
    margin-bottom: 8px;
    margin-left: -7.7px;
    background: linear-gradient(to right,grey, #262626)
}

.favorite {
    color: grey;
    text-decoration-line: underline;
    text-shadow: 0 0 2px grey
}

#intro {
    grid-area: intro;
    background-image: url(Images/Pngs/floweroverlay.png);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 510px;
    background-blend-mode: color-dodge;
}

#intro p {
    text-shadow: 1px 1px #262626, -1px 1px #262626,
        1px -1px #262626, -1px -1px #262626,
        2px 2px #262626, -2px 2px #262626,
        2px -2px #262626, -2px -2px #262626,
        0 0 7px #262626, 0 0 7px #262626,
        0 0 5px #262626;
}

#intro p::selection {
    text-shadow: none;
}

#aboutsite {
    grid-area: aboutsite;
}

#extras {
    grid-area: extras;
    text-align: center;
}

#extras a {
    font-weight: 700;
    text-decoration-line: none;
    width: 50%;
    display: block;
    padding: 6px;
    text-align: center;
    color: white;
    border: solid 1px white;
    border-bottom: none
}

#extras a:hover {
    background: white;
    color: #262626;
}

#extras iframe {
    border: solid 1px;
    margin: auto;
    display: block;
    width: 100%;
    height: 400px
}

.no {
    text-decoration-line: line-through !important;
    color: grey !important;
}

.no:hover {
    background: #262626 !important;
    color: grey;
    cursor: default;
}

#fanlistings {
    grid-area: fanlistings;
}

li::before {
    content: "🟆 ";
    margin-right: 3px;
}

ul {
    list-style-type: none;
    padding: 0;
    line-break: anywhere;
}

.deco {
    position: absolute;
}

#playbutton {
    border: none;
    background: none;
    color: white;
    font-size: 1.2em
}

#music {
    text-align: center;
    margin: 10px 0;
}

#musictext {
    font-weight: 700;
    margin: -3px;
    margin-left: -9px;
    text-decoration-line: underline;
    margin-bottom: 2px;
}

#homebutton {
    color: white;
    margin: 4px;
    text-decoration-line: none;
    font-size: 2em;
}

#homebutton:hover {
    color: black;
    filter: drop-shadow(1px 1px 0 white) 
    drop-shadow(-1px 1px 0 white)
    drop-shadow(1px -1px 0 white)
    drop-shadow(-1px -1px 0 white);
}

@media only screen and (max-width: 1300px) and (min-width: 940px) {
    .smallscreen {
        display: none;
    }
    
    #container2 {
        max-width: 900px;
        grid-template:
        "header header"
        "sidebar main"
        "footer footer" / 23% auto;
        font-size: 0.95em
    }
    
    main {
        grid-template: 
        "intro intro intro"
        "blinkies blinkies blinkies"
        "interest favchar favchar"
        "extras extras fanlistings"
        "ascii ascii ascii"
        "aboutsite aboutsite aboutsite"/ 30% auto 32%;
    }
    
    .characterbox {
        max-width: 130px;
        max-height: 150px;
    }
    
    .charactertext {
        font-size: 1.2em;
    }
    
    .source {
        font-size: 0.6em
    }
    
    #pfp {
        width: 160px;
    }
    
    #sidebar {
        
    }
    
    #urgh pre {
        font-size: 0.6em !important
    }
    
    #PLS pre {
        font-size: 1.1em
    }
    
    #interests {
        height: 350px;
        
    }
}

@media only screen and (max-width: 940px) and (min-width: 700px) {
    .noipad {
        display: none !important;
    }
    
    #container2 {
        grid-template:
        "header"
        "sidebar"
        "main"
        "footer" / auto;
    }
    
    main {
        grid-template: 
        "intro intro"
        "blinkies blinkies"
        "interest favchar"
        "fanlistings extras"
        "ascii ascii"
        "aboutsite aboutsite"/ 40% auto;
    }
    
    .characterbox {
        max-width: 160px;
        max-height: 160px;
    }
    
    #PLS pre {
        font-size: 1em
    }
    
    #interests {
        height: 550px;
    }
    
    #memememe {
        display: flex;
        justify-content: center;
    }
    
    #pfp {
        margin: 0;
        max-width: 250px;
    }
    
    #me {
        margin: auto 0;
        width: 300px;
        font-size: 1.3em;
    }
    
    #sidebar div, #contact {
        text-align: center;
    }
}

@media only screen and (max-width: 700px) {
   
    .nophone {
        display: none !important;
    }
    
    .evilcontainer {
        margin: -7px;
    }
    
    #container2 {
        grid-template:
        "header"
        "sidebar"
        "main"
        "footer" / auto;
    }
    
    main {
        grid-template: 
        "intro"
        "blinkies"
        "interest"
        "favchar"
        "extras"
        "fanlistings"
        "ascii"
        "aboutsite"/ auto;
    }
    
    .characterbox {
        max-width: 130px !important;
        max-height: 130px !important;
    }
    
    .charactertext {
        font-size: 1.3em
    }
    
    .source {
        font-size: 0.7em
    }
    
    footer {
        line-break: anywhere
    }
    
    #contact {
        text-align: center;
    }
    
    header {
        text-align: center;
    }
    
    #interests {
        height:fit-content
    }
}

@media only screen and (max-width: 400px) {
    .evilcontainer {
        border: none;
        margin: -3px;
    }
}