/* 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://i.imgur.com/yjFN7eV.png');
  --body-bg-image: url('https://sadhost.neocities.org/images/tiles/starsforever.gif');

/* colors */
  --content: #074A9C;
}

/* 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: Nunito;
  src: url('https://sadhost.neocities.org/fonts/Nunito-Regular.ttf');
}

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

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

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

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

* {
  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, #headercontainer {
  max-width: 1200px;
  width: 100%;
/* 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: 0 auto;
/* this centers the entire page */
}

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

#container{
  display:inline-flex;
}

#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: #032044;
  /* navbar color */
  width: 100%;
}

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

#navbar li ul {
  position: absolute;
  display: flex;
  left: 0;
  top: 100%;
  align-items: center;
}

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

/* navigation links*/
#navbar li a {
  color: #FFA02E;
  /* 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 {
  color: #a49cba;
  text-decoration: underline;
}

#navbar ul li {
  list-style: none;
  padding: 5px;
  position: relative;
  display: block;
}

#navbar ul li a {
  color: #FFA02E;
  text-decoration: none;
  padding: 5px 10px;
  white-space: nowrap; /* this will prevent long text from wrapping */
}

#navbar ul li a:hover
{
  background: #032044;
  text-decoration: none;
}

#navbar ul li ul {
  display: none;
  background: #053570;
  width: fit-content;
}

#navbar ul li:hover ul {
  display: block;
  position: absolute;
  margin-top: 5px;
  background: #053570;
  padding: 10px 2px;
}

#flex {
  display: flex;
}

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

#rightSidebar {
  background-color: #053570;
  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: #074A9C;
  flex: 1;
  padding: 20px;
  order: 2;
}

/* 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: #032044;
  /* background color for footer */
  width: 100%;
  height: 40px;
  padding: 10px;
  text-align: center;
  /* this centers the footer text */
}

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

h1 {
  font-size: 25px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

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

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

/* CSS for extras */
/* Various alignments & Quick fixes */

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

.columntext {
  display: flex;
  padding: 5px;
  margin: 0;
  list-style-type: none;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
}

#columnItem {
  justify-content:center;
  width: 50px;
}

.center {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 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: 1100px) {
#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;
}

/* NEW Navbar testing */

}

.gallery { /* this is the main div that wraps your gallery */
  display:flex;
  flex-wrap:wrap;
  margin-left: auto;
  margin-right: auto;
  width:100%; /* this can be modified to make the gallery wider */
}

.gallery img {
  width:225px; /* this sets the width for every image */
  height:175px; /* 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? */
  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! */
  
}

/* this is the div which CROPS every image */
.gallery > div {
  width:225px; /* this should match the image height */
  height:175px; /* this should match the image width */
  margin-right:10px; /* this controls the gaps between the images */
  margin-bottom:10px; /* this controls the gaps between the images */
}

/* this resizes the image on hover. note that objects in 'portrait'  */
.gallery img:hover {
  transform:scale(2.5); /* this scales up the image when you hover over it */
  object-fit:contain; /* this keeps the aspect ratio of the original images*/
}

.row {
  display: flex;
}

.row img {
  max-height: 400px;
}

.column {
  flex: auto;
  padding: 5px;
}
