html {
  overflow: -moz-scrollbars-vertical;
}

body {
  font-family: sans-serif;
  background-color: #f9f9f9;
  margin: 10px;
}

#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  width: 80%;
  min-height: auto;
  box-sizing: border-box;
  background-color: #dfdbdb;
}

header {
  display: flex;
  margin-top: 30px;
  height: 64px;
  justify-content: flex-end;
}

header #title {
  color: black;
  text-decoration: none;
  text-align: center;
  margin: 0px;
  width: 100%;
  font-size: 50px;
  font-weight: bold;
}

.header_btn {
  text-decoration: none;
  font-size: 16px;
  margin-left: 5px;
  margin-right: 5px;
}

.upload_container,
#gallery {
  align-items: center;
  margin-top: 20px;
  border-radius: 10px;
  border: 2px #3c3d3f solid;
  padding: 20px 20px 20px 20px;
  box-sizing: border-box;
}

.upload_container {
  max-width: 30vw;
}

#gallery {
  min-width: 30vw;
  max-width: 100%;
}

#upload_form {
  animation: slideDown .3s ease-in;
}

.gallery_img_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.post_comment_container,
#comments {
  width: 30vw;
}

#comments {
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 10px;
  border-radius: 20px;
  border: 2px #3c3d3f solid;
  box-sizing: border-box;
}

.gallery_img_header,
.gallery_img_taskbar,
.comment_taskbar,
#upload_header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

.comment_header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

.comment_container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  margin-top: 10px;
  margin-left: 10px;
  animation: slideDown .3s ease-in;
}

.gallery_img_info,
.comment {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 5px;
  width: 88%;
}

.gallery_img_author,
.img_comment_author {
  font-weight: bold;
  padding-left: 10px;
  max-width: 100%;
}

.gallery_img_title {
  padding-left: 10px;
  max-width: 100%;
}

.img_comment_content {
  max-width: 100%;
  word-wrap: break-word;
  max-height: 80px;
  overflow-y: auto;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px 10px 10px 10px;
  margin-top: 5px;
  background-color: #f7f6f6;
  /* border: 2px #3c3d3f solid; */
}

.gallery_img {
  height: auto;
  min-height: 400px;
  min-width: 400px;
  border-radius: 10px;
  box-sizing: border-box;
  border: 2px #3c3d3f solid;
  margin-bottom: 10px;
  object-fit: contain;
  animation: showPic 0.15s ease-in;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes showPic {
  0% {
    opacity: 0;
    transform: scale(.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hidden {
  display: none;
}

.toggle_btn {
  background-color: transparent;
  border: none;
  width: 30px;
  height: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
}

.toggle_show_btn {
  background-image: url("../media/show_upload.png");
}

.toggle_hide_btn {
  background-image: url("../media/hide_upload.png");
}

.toggle_file_btn {
  background-image: url("../media/file.png");
}

.toggle_url_btn {
  background-image: url("../media/url.png");
}

.prev_img_btn,
.prev_comment_btn {
  background-color: transparent;
  border: none;
  background-image: url("../media/previous.png");
  width: 30px;
  height: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
}

.next_img_btn,
.next_comment_btn {
  background-color: transparent;
  border: none;
  background-image: url("../media/next.png");
  width: 30px;
  height: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
}

.delete_img_btn {
  background-color: transparent;
  border: none;
  background-image: url("../media/delete_image.png");
  width: 30px;
  height: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
}

.delete_comment_btn {
  background-color: transparent;
  border: none;
  background-image: url("../media/delete_comment.png");
  width: 30px;
  height: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
}

.btn:hover {
  cursor: pointer;
}

.btn:active {
  background-size: 90%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

#error_box {
  color: red;
  visibility: hidden;
}

#error_box::before {
  content: "Error: ";
}

footer {
  margin-top: 20px;
  text-align: center;
}