* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    font-family: sans-serif;
    scroll-behavior: smooth;
}
*:focus {
    outline: 2px solid var(--outline-color);
}
.hidden {
    display: none !important;
}
a {
    text-decoration: none;
    color: var(--text-color);
}
ul, p {
    margin: 0;
}
a:hover{
    text-decoration: none;
    color: var(--text-color);
}
button {
    background-color: var(--button-color);
    border: none;
}
:root,
    :root.default {
        --title-color: goldenrod;
        --bck-color: #1F202A;
        --bck-img: url('/assets/bck_line_pattern_default.png');
        --text-color: #fffffff8;
        --text-color-alt: #000000;
        --shadow-color: rgba(0, 0, 0, 0.8);
        --outline-color: magenta;
        --close-color: crimson;
        --close-color-alt: firebrick;

        /* Item quality colors */
        --common-color: #ffffff;
        --uncommon-color: #1eff00;
        --rare-color: #0070dd;
        --epic-color: #a335ee;
    }
    :root.light_mode {
        --title-color: goldenrod;
        --bck-color: #e6e6e9da;
        --bck-img: url('/assets/bck_line_pattern_light_mode.png');
        --text-color: #000000;
        --text-color-alt: #fffffff8;
        --shadow-color: rgba(0, 0, 0, 0.8);
        --outline-color: rgb(131, 14, 131);
        --close-color: firebrick;
        --close-color-alt: maroon; 
    }

.epic {
    color: var(--epic-color);
}
.rare {
    color: var(--rare-color);
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-image: var(--bck-img);
    background-color: var(--bck-color);
    color: var(--text-color);
}

header {
    padding-inline: 3em;
}

main {
    padding: 2em .2em;
}
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100dvw;
    display: flex;
    justify-content: space-between;
    padding: 1em;
}
.footerInfo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}
.footerInfo>p:last-of-type, .footerInfo>p>a {
    color: rgba(255, 255, 255, 0.5);
}
.footerInfo>p>a:hover, .footerInfo>p>a:focus, .footerInfo>p>a:active {
    color: var(--text-color);
    border-bottom: 2px solid limegreen;
    outline: none;
}

h1 {
    font-size: 50px;
    color: var(--title-color);
}
h2 {
    padding: 0 .2em;
}

#slotSelector {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas: 
    "left results right"
    "left results right"
    ". center misc";
    width: 350px;
}
#characterGrid_left {
    grid-area: left;
}
#results {
    grid-area: results;
    justify-content: flex-start;
    align-items: flex-start !important;
    overflow-y: scroll;
}
#itemOverlay {
    grid-area: results;
}
#characterGrid_center {
    flex-direction: row;
    grid-area: center;
}
#characterGrid_right {
    grid-area: right;
}
#miscellaneous {
    grid-area: misc;
}

.centerItems {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2px;
}
#results>li {
    margin: 0 0 1em 0;
    text-align: left;
}
#resultsPlaceholderText {
    display: flex;
    justify-content: center;
    width: 100%;
}
#ulHeading {
    font-size: 22px;
    width: 100%;
    padding: 0 0 .5em 0;
    margin: 0 0 .5em 0;
    border-bottom: 6px solid var(--title-color);
}
.bottomGridRow {
    padding-top: 2em;
}

#characterEquipmentSlots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
}

.item {
    cursor: pointer;
    transition: 250ms;
}
.item:hover {
    text-decoration: underline;
}
option[value=""] {
    display: none;
}

.item_Overlay {
    position: relative;
    background-color: var(--bck-color);
    width: 100%;
    height: 100%;
    padding: 2em 5px;
    border-radius: 10px;
    outline: 4px solid transparent;
    z-index: 1000;
}
.item_Overlay_Content {
    display: flex;
    flex-direction: column;
    gap: .5em;
}
#closeOverlay {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-top-right-radius: 10px;
    cursor: pointer;
}
#closeOverlay:hover, #closeOverlay:focus, #closeOverlay:active {
    outline: 2px solid var(--close-color-alt);
    color: var(--close-color);
}
#item_Name {
    margin: 0 0 1em 0;
}
#crafter_List>li {
    padding: 0 0 .4em .1em;
    margin: 0 0 .5em 0;
    text-align: left;
}


/* --------------------- iPad Version -----------------------*/ 
@media screen and (width >= 725px) {
    h1 {
        font-size: 80px;
    }
    #slotSelector {
        width: 550px;
    }
    .equipmentSlot { /*Defined in equipmentSlots.css hence the need for !important here*/ 
        width: 80px !important;
        height: 80px !important;
    }
    #ulHeading {
        font-size: 30px;
    }
    #crafter_List>li {
        padding: 0 0 .6em .6em;
        text-align: left;
    }
    
}

/* --------------------- Laptop Version -----------------------*/ 
@media screen and (width >= 1200px) {
    #slotSelector {
        width: 750px;
    }
}