/* user styles */

/* styles are what change the color and sizes of stuff on your site. */

/* these are variables that are being used in the code
these tended to confuse some people, so I only kept 
the images as variables */

:root {
    --header-image: url('https://sadhost.neocities.org/images/layouts/wp.jpeg');
    --body-bg-image: url('https://sadhost.neocities.org/images/tiles/sky.png');

    /* colors */
    --content: #43256E;
}

/* if you have the URL of a font, you can set it below */
/* feel free to delete this if it's not your vibe */

/* this seems like a lot for just one font and I would have to agree 
but I wanted to include an example of how to include a custom font.
If you download a font file you can upload it onto your Neocities
and then link it! Many fonts have separate files for each style
(bold, italic, etc. T_T) which is why there are so many!

*/

@font-face {
    font-family: Alegreya;
    src: url('https://aliceandfantasy2023.neocities.org/fonts/Alegreya-Regular.ttf');
}

@font-face {
    font-family: Alegreya;
    src: url('https://aliceandfantasy2023.neocities.org/fonts/Alegreya-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: Alegreya;
    src: url('https://aliceandfantasy2023.neocities.org/fonts/Alegreya-Italic.ttf');
    font-style: italic;
}

@font-face {
    font-family: Alegreya;
    src: url('https://aliceandfantasy2023.neocities.org/fonts/Alegreya-BoldItalic.ttf');
    font-style: italic;
    font-weight: bold;
}

body {
    font-family: 'Alegreya', sans-serif;
    font-size:18px;
    margin: 0;
    background-color: #08031A;
    /* you can delete the line below if you'd prefer to not use an image */
    background-size: 400px;
    color: #202533;
    background-image: var(--body-bg-image);
}

* {
    box-sizing: border-box;
}

/* below this line is CSS for the layout */

/* this is a CSS comment
to uncomment a line of CSS, remove the * and the /
before and after the text */


/* the "container" is what wraps your entire website */
/* if you want something (like the header) to be Wider than
the other elements, you will need to move that div outside
of the container */
#container {
    max-width: 900px;
    /* this is the width of your layout! */
    /* if you change the above value, scroll to the bottom
and change the media query according to the comment! */
    margin: 10px auto;
    /* this centers the entire page */
}

/* the area below is for all links on your page
EXCEPT for the navigation */
#container a {
    color: #803043;
    font-weight: bold;
    /* if you want to remove the underline
you can add a line below here that says:
text-decoration:none; */
}

#header {
    width: 100%;
    background-color: #5e4e8c;
    /* header color here! */
    height: 150px;
    /* this is only for a background image! */
    /* if you want to put images IN the header, 
you can add them directly to the <div id="header"></div> element! */
    background-image: var(--header-image);
    background-size: 100%;
}

/* navigation section!! */
#navbar {
    height: 40px;
    background-color: #7F9DD9;
    /* navbar color */
    width: 100%;
    border-radius:20px;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

#navbar li {
    padding-top: 10px;
}

/* navigation links*/
#navbar li a {
    color: #ffffff;
    /* navbar text color */
    font-weight: 800;
    text-decoration: none;
    /* this removes the underline */
}

/* navigation link when a link is hovered over */
#navbar li a:hover {
    text-decoration: underline;
}

#flex {
    display: flex;
}

/* this colors BOTH sidebars
if you want to style them separately,
create styles for #leftSidebar and #rightSidebar */
aside {
    background-color: #241445;
    width: 200px;
    padding: 20px;
    font-size: smaller;
    /* this makes the sidebar text slightly smaller */
}


/* this is the color of the main content area,
between the sidebars! */
main {
    background-color: #ffffff;
    flex: 1;
    padding: 20px;
    order: 2;
    border-radius:20px;
    border: dotted #7F9DD9;
}

/* what's this "order" stuff about??
allow me to explain!
if you're using both sidebars, the "order" value
tells the CSS the order in which to display them.
left sidebar is 1, content is 2, and right sidebar is 3! */

#leftSidebar {
    order: 1;
}

#rightSidebar {
    order: 3;
}

footer {
    background-color: #7F9DD9;
    /* background color for footer */
    width: 100%;
    height: 40px;
    padding: 10px;
    text-align: center;
    border-radius:20px;
  color: #ffffff;
    /* this centers the footer text */
}

h1,
h2,
h3 {
    color: #B5374B;
}

h1 {
    font-size: 25px;
}

strong {
    /* this styles bold text */
    color: #803043;
}

/* this is just a cool box, it's the darker colored one */
.box {
    background-color: #7F9DD9;
    border: 1px solid #803043;
    padding: 10px;
}

/* CSS for extras */

#topBar {
    width: 100%;
    height: 30px;
    padding: 10px;
    font-size: smaller;
    background-color: #7F9DD9;
}


/* BELOW THIS POINT IS MEDIA QUERY */

/* so you wanna change the width of your page? 
by default, the container width is 900px.
in order to keep things responsive, take your new height,
and then subtrack it by 100. use this new number as the 
"max-width" value below
*/

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

    aside {
        width: 100%;
    }

    /* the order of the items is adjusted here for responsiveness!
since the sidebars would be too small on a mobile device.
feel free to play around with the order!
*/
    main {
        order: 1;
    }

    #leftSidebar {
        order: 2;
    }

    #rightSidebar {
        order: 3;
    }

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


/* BELOW THIS POINT IS GALLERY FORMATTING */
/* I've made alterations to sadgrl.online's code to make the gallery work with figures instead of divs. */
.gallery { /* this is the main div that wraps your gallery */
  display:flex;
  flex-wrap:wrap;
  max-width:800px; /* this can be modified to make the gallery wider */
  justify-content:space-evenly; /* this centers all the content in the gallery */
  margin:auto; /* this centers the gallery on the page */
}

.gallery img {
  width:140px; /* this sets the width for every image */
  height:200px; /* this sets the height for every image. Try setting it to 'auto' and see how it looks weird since every image has a slightly different height? */
  border-radius:20px;
  object-fit:cover; /* this crops the image so they are all the same size. This might be an issue if you have landscape AND portrait images. Feel free to take this property out temporarily to see exactly what it does! */
}

.gallery figure {
  width:140px; /* this sets the width for every image */
  height:auto; /* this sets the height for every image. Try setting it to 'auto' and see how it looks weird since every image has a slightly different height? */
  margin:5px;
}

.gallery figcaption {
  text-align:center; /* this centers the caption below the image */
  padding:10px;
  background-color:#D9EAFF;
  border-radius:20px;
}


/* BELOW THIS POINT IS TABBED BOX FORMATTING */
.tabBox {
  max-width:800px;
  justify-content:center;
  margin:auto;
  border: 2px solid #B5374B;
  border-radius:20px;
  background-color: rgba(255,255,255,0.4);
  }

/* Style the tab */
.tab {
  display: flex;
  overflow: hidden;
  background-color: inherit;
  border-radius:18px 18px 0px 0px;
  justify-content: space-evenly;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  width:100%;
}

/* Change background color of buttons on hover */
.tab button:hover {
  text-decoration:underline;
}

/* Create an active/current tablink class */
.tab button.active {
  color:#B5374B;
  background-color: #ffffff;
}

/* Style the tab content */
.tabcontent {
  display: none;
  justify-content:center;
  padding:15px;
  max-width:100%;
  max-height:100%;
  }


/* BELOW THIS POINT IS PAGE BUTTON FORMATTING */
.pagebuttons {
  display:flex;
  flex-wrap:wrap;
  margin: auto;
  justify-content:center;
}

.pagebuttons button {
  border-radius:20px;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  width:200px;
  margin:10px;
}

.pagebuttons button:hover {
  text-decoration: underline;
}

button {
  background-color: #B5374B;
  color: #ffffff;
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 18px;
  border: none;
}


/* BELOW THIS POINT IS QUOTE-AND-IMAGE FORMATTING */
.quotebox {
  display:flex;
  flex-wrap:wrap;
  max-width:100%;
  margin:auto;
  justify-content:center;
}

.quotebox img {
  max-width:100%;
  border-radius:20px;
  object-fit:cover;
}

.quotepic {
  max-width:240px;
  border-radius:20px;
  margin-right:10px;
  }

.quotecaption {
  max-width:60%;
  padding:20px;
  background-color:#D9EAFF;
  border-radius:20px;
}

hr {
  border-top:dotted #7F9DD9;
  border-bottom:none;
  border-right:none;
  border-left:none;
}


/* BELOW THIS POINT IS SOURCES FORMATTING */
.sources {
  font-size:16px;
  display:flex;
  padding:10px;
  border-radius:20px;
  margin:auto;