* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  background-color: #f9f9f9;
  overflow: hidden;
  background: #2e3440;
}
.home-page {
  display: flex;
}

.sidebar {
  width: 20%;
  height: calc(100vh - 20px);
  border: 2px solid #5e81ac;
  border-radius: 10px;
  margin: 10px;
  padding: 20px;
  background: #3b4252;
  display: flex;
  justify-content: center;
}
.sidebar[hidden] {
  display: none !important;
}
#page-message,
header {
  display: flex;
  justify-content: center;
  color: white;
  align-items: center;
  & button {
    padding: 10px;
    border-radius: 5px;
    outline: none;
    border: none;
    background: #434c5e;
    color: white;
    cursor: pointer;
  }
  & a {
    color: white;
    margin-right: 5px;
  }
}

@media (width <= 1500px) {
  .sidebar {
    width: 25%;
  }
}
.hide-form-btn {
  padding: 5px;
  background: #434c5e;
  border: none;
  outline: none;
  color: #5e81ac;
  cursor: pointer;
}
.width-100 {
  width: 100%;
}
.input-image-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  width: 100%;
  & input {
    background: #434c5e;
    border: none;
    padding: 10px;
    outline: none;
    border-radius: 10px;
    color: #d8dee9;
  }
  & button {
    padding: 10px;
    background: #434c5e;
    outline: none;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    color: #d8dee9;
    transition: transform 0.3s ease;
    &:hover {
      transform: scale(1.1);
    }
  }

  div:has(> button) {
    /*stack overflow css */
    text-align: end;
  }
  color: #81a1c1;
  font-weight: bold;
}
.image-section {
  display: flex;
  gap: 50px;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}
.real-image {
  height: 55vh;
  width: 60vw;
}
.image-details {
  height: 60vh;
  width: 200px;
  border: 2px solid #5e81ac;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  font-size: 1.3rem;
  color: #d8dee9;
}
.prev-next-btns {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  & button {
    padding: 15px;
    background: #3b4252;
    border-radius: 10px;
    border: none;
    outline: none;
    cursor: pointer;
    color: #d8dee9;
    transition: transform 0.3s ease;
    &:hover {
      transform: scale(1.1);
    }
  }
}
.adding-comment {
  margin-top: 10px;
}
#create-message-comment {
  display: flex;
  flex-direction: column;
  gap: 10px;
  & textarea {
    width: 50%;
    padding: 10px;
    outline: none;
    border: none;
    border-radius: 10px;
    background: #3b4252;
    height: 100px;
    resize: none;
    color: #b48ead;
  }
  & button {
    padding: 5px;
    font-size: 2rem;
    background: #81a1c1;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease;
    &:hover {
      background: #88c0d0;
      transform: scale(1.05);
    }
  }
  color: #d8dee9;
}
.author-msg {
  width: 20%;
  padding: 10px;
  background: #3b4252;
  border: none;
  outline: none;
  border-radius: 10px;
  color: #5e81ac;
  font-weight: bold;
}
.comment-section {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #5e81ac;
  margin-top: 10px;
  height: 200px;
}
.comment {
  display: flex;
  margin-top: 5px;
  border: 1px solid #4c566a;
  padding: 10px;
  justify-content: space-between;
  align-items: center;
  color: #d8dee9;
  & span {
    color: rgb(92, 106, 131);
  }
  & > div {
    flex: 1;
  }
  & button {
    padding: 5px;
    background: #bf616a;
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    &:hover {
      transform: scale(1.1);
    }
  }
  & :nth-child(3) {
    text-align: end;
  }
  & :nth-child(2) {
    text-align: center;
  }
}
.display-section {
  width: 100%;
}
.cmt-author-name {
  width: 20%;
  padding: 7px;
  background: #4c566a;
  border: none;
  outline: none;
  border-radius: 10px;
  color: #e5e9f0;
  font-weight: bold;
}
.comment-nxt-prev-btns {
  display: flex;
  justify-content: space-between;
  & button {
    padding: 7px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: #5e81ac;
    color: #e5e9f0;
    cursor: pointer;
  }
}
.credit-link {
  outline: none;
  color: white;
}
.credit-link:visited {
  color: white;
}
.sign-in {
  & button {
    padding: 10px;
    border-radius: 10px;
    margin: 10px;
    background: #5e81ac;
    outline: none;
    color: white;
    cursor: pointer;
  }
  position: fixed;
  right: 0;
  margin: 15px;
}
.signinLink {
  color: white;
  padding: 10px;
  background: #5e81ac;
  border-radius: 10px;
}
.web-gallery {
  background: #4c566a;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  padding: 20px;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  & button {
    padding: 5px;
    background: #5e81ac;
    border-radius: 5px;
    outline: none;
    border: none;
    color: white;
    cursor: pointer;
  }
}

.sign-in-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: #88c0d0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  & input {
    outline: none;
    border: none;
    padding: 10px;
  }
  & button {
    padding: 10px;
    background: #3b4252;
    border-radius: 5px;
    color: white;
    outline: none;
    border: none;
  }
}
.post-cmt-btn {
  width: 50%;
}
[hidden] {
  display: none !important;
}
