:root {
  --header-image: url("https://skydragonarts.co.uk/img/temporary/TPBG.jpg");
  --body-bg-image: url("https://i.ibb.co/0MTfvpp/pink137.jpg");

  /* colors */
  --content: #4c83ff;
}

@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: blue;
  /* you can delete the line below if you'd prefer to not use an image */
  background-size: 80px;
  color: #4d006f;
  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 eements, you will need to move that div outside
    of the container */
#container {
  max-width: 1000px;
  /* 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 {
  color: #007761;
  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: #00980c;
  /* 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> eement! */
  background-image: var(--header-image);
  background-size: 20%;
}

/* navigation section!! */
#navbar {
  height: 40px;
  background-color: blue;
  /* navbar color */
  width: 100%;
}

#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: #4c2aff;
  /* 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: #00e1ff;
  text-decoration: underline;
}

#flex {
  display: flex;
}
aside {
  background-color: #ffef26;
  width: 200px;
  padding: 20px;
  font-size: smaller;
  /* this makes the sidebar text slightly smaller */
}
main {
  background-color: #00e1ff;
  flex: 1;
  padding: 20px;
  order: 2;
  text-align: center;
  
}

.container {
  display: flex;
  background-color: #00891b;
  width: 100%;
  align-items: stretch;
}

.container div {
  background-color: #0100ff;
  margin: 10px;
  padding: 20px;
  size: 50%;
  justify-content: center;
}

.flex-item {
    text-align: center;
    border: 1px solid #00ff9e;
    margin: 5px 10px;
}

.example-image-gallery div {
  width: 100px;
  height: 100px;
  margin: 5px;
  border: 2px solid;
  border-color: #00ff63
}

.example-image-gallery div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}

.example-image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center
  
}

/*gallery 2*/
/*for side bar*/
.gallery2 {
  display: flex;
  flex-wrap: wrap;
}
/* Items */
.gallery2 div {
  box-sizing: border-box;
  width: 150px;
  height: 150px;
  margin: 5px;
  overflow: hidden;
  position: relative;
}

/*Iamges*/
.gallery2 div img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Captions */
.gallery2 div span {
  position: absolute;
  bottom: 7px;
  left: 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.59);
  color: black;
  padding: 0px 10px;
  font-size: 15px;
}

#wrap {
    margin: 1em 0em;
}
.left {
    float: left;
    margin-right: 1.5em;
}
.right {
    float: right;
    margin-left: 1em;
}
p {
    margin-bottom: 1em;
    overflow: hidden; /* this is what keep the <p> from wrapping */
}
p:last-child {
    overflow: visible; /* this is an example of the browser default */
}

/* 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;
}

* {
  box-sizing: border-box;
}

heading {
  text-align: center;
}

/* COLUMNS: */

.two-columns {
  display: flex;
}

.two-columns > * {
  flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}
/* Classes are defined with a . ahead of them; if you don't do that, it'll be parsed as <name>
instead of <div class="name">, leading class definitions to fail. */

.rows {
  display: flex; 
}
 
.columns {
  padding: 12px;
  min-height: 200px;
}

.rows:after {
  content: "";
  display: table;
  clear: both;
}

.profilebox {
 border-color: #ff75e4;
 border-width: 2px;
  width: 300px;
  height: 400px;
  padding: 5px;
}

.profilebox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right;
}

h1,
h2,
h3 {
  color: #db0086;
}

h1 {
  font-size: 25px;
}

strong {
  /* this styles bold text */
  color: #a70053;
}

/* this is just a cool box, it's the light blue one */
.box {
  background-color: #ff8eed;
  border: 1px solid #9604ff;
  padding: 4px;
}
.box2 {
  background-color: #bc4fff;
  border: 1px solid #008019;
  padding: 10px;
}

footer {
  background-color: #ffffff;
  width: 100%;
  height: 40px;
  padding: 10px;
  text-align: center;
}

/* CSS for extras */

#topBar {
  width: 100%;
  height: 30px;
  padding: 10px;
  font-size: smaller;
  background-color: #4700ff;
}

/* 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 screen and (max-width: 768px) {
  .rows {
    flex-direction: column;
  }
}
/*  this will vertically wrap the columns on a smaller screen */


@media only screen and (max-width: 900px) {
  #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: 2;
  }

  #leftSidebar {
    order: 1;
  }

  #rightSidebar {
    order: 3;
  }

  #navbar ul {
    flex-wrap: wrap;
  }
}