html {
  overflow: -moz-scrollbars-vertical;
}

body {
  background: #c3cfe2;
  margin: 0px;
  padding: 10px;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn {
  background-color: white;
  padding: 12px 12px;
  border-radius: 50px;
  text-align: center; 
}

.btn:hover {
  background-color: lightgray;
}

.main_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
}

.sub_container {
  width: 60vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 80px;
}

header.centered {
  justify-content: center;
}

header #title {
  color: black;
  text-decoration: none;
  font-size: 40px;
  font-weight: 600;
}

.header_btn {
  text-decoration: none;
  font-size: 16px;
  color: black;
  background-color: #e6e6e6;
  padding: 8px 16px;
  border-radius: 8px;
  margin-left: 10px;
}

.hidden {
  visibility: hidden;
}

.login-form {
  background: white;
  padding: 40px 50px;
  margin-top: 80px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.form_element {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 16px;
}

.login-form .btn {
  background-color: #abcaed;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.login-form .btn:hover {
  background-color: #357ab8;
}

.login-form div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #666;
}

.gallery_list_container {
  margin-bottom: 20px;
  text-align: center;
}

#gallery_list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}

.gallery_card {
  border-radius: 12px;
  padding: 20px;
  background-color: white;
  cursor: pointer;
}

.gallery_card:hover {
  background-color: lightgray;
}

.pagination {
  margin-top: 10px;
  color:black;
}

.gallery_list_container .btn {
  color: black;
}

#current_user {
  color: black;
  font-size: large;
}

.gallery_card.selected {
  border: 2px solid #007bff;
  background-color: #e0f0ff;
  font-weight: bold;
}

#no_gallery_msg {
  text-align: center;
}

#error_box {
  color: red;
  font-size: medium;
  font-weight: 200;
}