/* -------------------------------------------------------- */
/* FONTS */
/* -------------------------------------------------------- */

@font-face {
    font-family: "LittleDevil";
    src: url(../fonts/LittleDevil.woff);
}

@font-face {
    font-family: "OldNewspaperTypes";
    src: url(../fonts/OldNewspaperTypes.woff);
}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    text-align: center;    
    font-family: "LittleDevil";
    background-image: url(../backgrounds/wardrobe-bg1.gif);
    background-color: black;
    color: white;
}

/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

#container {
    width: 1200px;
    max-width: 100%;
    display: grid;
    margin: 0 auto;
    z-index: 0;
    grid-gap: 10px;
    grid-template:
    "leftSidebar main"
    / 1fr 3fr;
}

main {
    grid-area: main;
    margin: 0 auto;
    width: 950px;
    max-width: 100%;
    padding: 0;
    background: url(../backgrounds/neo-himeism_03.gif);
    z-index: 0;
    display: grid;
    grid-template:
    "topleft topmid topright"
    "midleft meat midright"
    "botleft botmid botright";
}

#flex {
    display: flex;
}

#leftSidebar {
    grid-area: leftSidebar;
    background: black;
    width: 275px;
    max-width: 100%;
    padding: 10px;
    margin: 0 auto;
    z-index: 1;
}
            
/* -------------------------------------------------------- */
/* MAIN CONTAINERS */
/* -------------------------------------------------------- */

.topleft {
    grid-area: topleft;
    background-image: url(../tables/across_01-corner.gif);
    width: 46px;
    height: 46px;
    margin: 0;
    z-index: 1;
}

.topmid {
    grid-area: topmid;
    background-image: url(../tables/across_01-edge.gif);
    background-repeat: repeat-x;
    width: 858px;
    height: 46px;
    margin: 0;
    z-index: 1;
}

.topright {
    grid-area: topright;
    background-image: url(../tables/across_01-corner.gif);
    transform: rotate(90deg);
    background-repeat: no-repeat;
    width: 46px;
    height: 46px;
    margin: 0;
    z-index: 1;
}

.midleft {
    grid-area: midleft;
    margin: 0;
    width: 46px;
    height: 858px;
    background-image: url(../tables/across_01-edge-left.gif);
    background-repeat: repeat-y;
    z-index: 1;
}

.meat {
    grid-area: meat;
    width: 858px;
    height: 858px;
    margin: 0 auto;
    text-align: center;
    z-index: 0;
}

.midright {
    grid-area: midright;
    background-image: url(../tables/across_01-edge-right.gif);
    background-repeat: repeat-y;
    width: 46px;
    height: 858px;
    margin: 0;
    z-index: 1;
}

.botleft {
    grid-area: botleft;
    background-image: url(../tables/across_01-corner.gif);
    transform: rotate(-90deg);
    width: 46px;
    height: 46px;
    margin: 0;
    z-index: 1;
}

.botmid {
    grid-area: botmid;
    background-image: url(../tables/across_01-edge-bottom.gif);
    background-repeat: repeat-x;
    width: 858px;
    height: 46px;
    margin: 0;
    z-index: 1;
}

.botright {
    grid-area: botright;
    background-image: url(../tables/across_01-corner.gif);
    transform: rotate(180deg);
    width: 46px;
    height: 46px;
    margin: 0;
    z-index: 1;
}

/* -------------------------------------------------------- */
/* SIDEBAR CONTAINERS */
/* -------------------------------------------------------- */

.sidebartop {
    background-image: url(../tables/neckdoll_01-top.gif);
    background-size: cover;
    background-repeat: no-repeat;
    width: 260px;
    height: 40px;
    margin: 0 auto;
}

.sidebarbot {
    background-image: url(../tables/neckdoll_01-bottom.gif);
    background-size: cover;
    background-repeat: no-repeat;
    width: 260px;
    height: 40px;
    margin: 0 auto;
}

.sidebarmid-nav {
    padding: 0 10px 0 10px;
    margin: 0 auto;
    width: 200px;
    height: 167px;
    display: flex;
}

.sidebarmid-nav ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 0;
    text-align: left;
}

.sidebarmid-nav ul li{
    padding-right: 35px;
}

.termsofsale {
    font-family:'OldnewspaperTypes'; 
    font-size: 12px;
    text-align: left;
    padding: 10px 0 10px 0;
}

.termsofsale ul {
    margin: 0 auto;
    text-align: left;
    padding-left: 35px;
}

.termsofsale ul li {
    list-style-image: var(--bulletpoint, url(../pixels/bulletpoint.gif));
    padding: 2px 0 2px 0;
    margin: 0;
}

/* -------------------------------------------------------- */
/* OTHER CONTAINERS */
/* -------------------------------------------------------- */
            
.iframebox {
    background-color: #000000;
    overflow-y: auto;
    height: 858px;
    width: 858px;                
    margin: 0 auto;
}
            
.figurebox {
    background-color: var(--box-bg, black);
    border: 1px solid var(--header-border, #00fff7);
    padding: 10px;
    overflow-y: auto;
    height: 700px;
}          
            
.figuretable {
    background-color: var(--box-bg, black);
    border: 1px solid var(--box-bg, black);
}
            
.figureth, .figuretd, .figuretr {
    background-color: var(--box-bg, black);
    border: 1px solid var(--box-bg, black);
    padding: 10px;
    text-align: center;
}

.fixed-element {
    background-image: var(--fixed-element);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 150px;
    height: 150px;
    position: fixed; 
    z-index:2;
}

/* -------------------------------------------------------- */
/* GALLERY IMAGE STYLING */
/* -------------------------------------------------------- */

#wardrobe-gallery {
    grid-area: meat;
    width: 858px;
    height: 858px;
    margin: 0 auto;
    text-align: center;
    z-index: 0;
    overflow-y: scroll;
}

.wrapper {
    display: flex;
    flex-wrap: wrap;
}

.all {
    margin: 0 auto;
    align-items: center;
    width: 250px;
    padding: 25px 0 25px 0;
    font-family: 'OldNewspaperTypes';
    font-size: 14px;
}

.wardrobe-item {
    align-items: center;
    margin: 0 auto;
}

img.wardrobe-item {
    display: block;
    height: 300px;
    width: 240px;
    margin: 0 auto;
    object-fit: cover;
    border: 4px double white;
}

.all img:hover {
}

.all span {
    text-align: center;
    padding: 10px;
}

.wardrobebutton {
    background-color: black;
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-family: "LittleDevil"
}

.wardrobebutton:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------- */
/* LINKS AND OTHER TEXT STYLING */
/* -------------------------------------------------------- */

h1, h2, h3 {
    font-family: "LittleDevil", sans-serif;
    color: white;
}

h1 {
    margin: 0 auto;
    padding: 5px 0 5px 0;
}

h2 {
    margin: 0 auto;
    padding: 0px;
}

h3 {
    margin: 5px auto;
    padding: 5px;
}

p {
    padding: 0 5px 0 5px;
    margin: 10px;
    color: white;
}

strong {
    color: grey;
}

ul {
    text-align: center;
    padding: 0;
}

ul li {
    list-style-image: var(--bulletpoint, url(../pixels/bulletpoint.gif));
    padding-left: 10px;
}

a:link {
  color: grey;
  text-decoration: none;
}

a:visited {
  color: grey;
  text-decoration: none;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-decoration-color: grey;
}

a:active {
  text-decoration: underline;
}

/* -------------------------------------------------------- */
/* MEDIA QUERY */
/* -------------------------------------------------------- */

@media only screen and (max-width: 900px) {
    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }
                
    main {
        order: 1;
    }
          
    #leftSidebar {            
        order: 2;
    }

    #rightSidebar {
        order: 3;
    }

    #navbar ul {
        flex-wrap: wrap;
    }
}

@media only screen and (min-width: 1900px) {
    #container {
        width: 1400px;
        margin: 0 auto;
    }

    main {
        width: 800px;
        margin: 0 auto;
    }

    #leftSidebar, #rightSidebar {
        width: 300px;
        margin: 0 auto;
    }

    header {
        width: 1400px;
        margin: 0 auto;
    }

    nav {
        width: 1400px;
        margin: 0 auto;
    }

    #header_image {
        width: 1400px;
        height: 215px;
        background-image: var(--header-image, url("../headers/manic-header.png"));
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        margin: 0 auto;
    }

    footer {
        width: 1400px;
        margin: 0 auto;
    }
}