html, body {
  background-image: url("img/cloudsbg.png");
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

div {
  box-sizing: border-box;
  text-align: center;
}

img {
  border-radius: 1rem;
  width: 10vw;
}

h1 {
  margin: 0;
  padding: 0;
}


#everything {
  display: flex;
  flex-direction: row;
  height: 94vh;
  margin: 3vh 3vh 0 3vh;
}

#content {
  display: flex;
  flex-direction: column;
  flex-grow: 6;
}

#searchbar {
  box-sizing: border-box;
  flex-grow: 1;
  margin-bottom: 2vh;
}

#searchinput {
  border: 0;
  box-shadow: 1px 1px 5px 0px #000000;
  border-radius: 1rem;
  font-size: calc(0.2vw + 1em);
  height: 5vh;
  padding-left: 1vw;
  width: 50%;
}

#searchinput:enabled, #searchinput:focus, #searchinput:active {
  outline: none;
}

#feed {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-grow: 15;
}

#sidebar {
  background-color: #FFFFFF;
  box-shadow: 1px 1px 5px 0px #000000;
  border-radius: 1rem;
  flex-grow: 1;
  width: 10vw;
}

#sidebar-toggle {
  background-color: #FFFFFF;
  box-shadow: 1px 1px 5px 0px #000000;
  display: none;
  height: 3vh;
  position: absolute;
  right: 0;
  top: 0;
  user-select: none;
  width: 6vw;
}

.posts {
  background-color: #FFFFFF;
  box-shadow: 1px 1px 5px 0px #000000;
  border-radius: 1rem;
  margin-bottom: 2vh;
  width: 50vw;
}

.titles {
  border-radius: 1rem 1rem 0 0;
  background-image: url("https://www.dropbox.com/scl/fi/vyl2f4139wwb3oi3r8i2o/Eye_nommed_20250214010342.jpg?rlkey=1c5ae4prm9ql9ds5oiw2jgcom&st=2ujshk4m&raw=1");
  background-repeat: no-repeat;
  background-size: cover;
  color: #FFFFFF;
  margin-bottom: 1vh;
  padding: 1vw;
  -webkit-text-stroke: 2px #000000;
}

.bodies {
  box-sizing: border-box;
  padding: 1vh;
}

@media only screen and (max-width: 600px) {
  #everything {
    border: 0;
    margin: 1vh 0 0 0;
  }

  #searchinput {
    height: 3vh;
    width: 80%;
  }

  #feed {
    flex-grow: 50;
  }

  .posts {
    border-radius: 1rem;
    width: 95%;
  }

  #sidebar {
    display: none;
    height: 100%;
    width: 100%;
  }

  #sidebar-toggle {
    border-radius: 1rem;
    cursor: pointer;
    display: block;
    height: 5vh;
  }
}

