/* ====== GLOBAL ====== */
body {
  font-family: sans-serif;
  background-color: #fffbea;
}

h2 {
  color: #3b2f2a;
}

h3 {
  text-transform: uppercase;
  background-color: #3b2f2a;
  color: white;
  border-radius: 0.5rem;
  margin: 0 0 1rem 0;
  padding: 0.75rem 1rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  color: #3b2f2a;
  font-weight: bold;
}

input {
  box-sizing: border-box;
  width: stretch;
  background-color: white;
  font: inherit;
  padding: 0.5rem;
  border: 2px solid #e8e2d5;
  border-radius: 0.5rem;
}

textarea {
  box-sizing: border-box;
  width: stretch;
  resize: vertical;
  font: inherit;
  padding: 0.5rem;
  border: 2px solid #e8e2d5;
  border-radius: 0.5rem;
}

button {
  width: 100%;
  cursor: pointer;
  background-color: #d4843d;
  color: white;
  font: inherit;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
}

button:hover {
  background-color: #be7132;
}

.delete_button {
  width: auto;
  background-color: #A34D4D;
}

.delete_button:hover {
  background-color: #B85C5C;
}

/* ====== PAGE HEADER ====== */
.app_header {
  display: flex;
  align-items: center;
  padding: 0rem 2rem;
  margin-bottom: 2rem;
  animation-name: fadeAnimation;
  animation-duration: 2s;
}

.icon {
  width: 60px;
  height: 60px;
}

.app_header h1 {
  margin: 0 0 0 1rem;
  color: #3b2f2a;
}

.nav_bar {
  margin-left: auto;
}

.nav_bar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav_bar a {
  text-decoration: none;
  background-color: #3b2f2a;
  color: white;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

/* ====== PAGE MAIN ====== */
.app_content{
  margin: 2rem;
}

/* ====== ADD IMAGE FORM ====== */
#add_image_form {
  display: none;
}

.image_info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  margin-bottom: 1rem;
}

.image_info .full_width {
  grid-column: span 2;
  margin-bottom: 1rem;
}

/* ====== IMAGE DISPLAY ====== */
.image_display {
  margin-top: 2rem;
}

.display_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.image_details {
  color: #3b2f2a;
}

.image_title {
  font-weight: bold;
}

.image_author {
  font-style: italic;
}

.display_image {
  display: block;
  max-width: 100%;
  max-height: 35rem;
  margin: 1.5rem auto;
}

.display_actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.display_actions button {
  width: auto;
}

/* ====== COMMENTS SECTION ====== */
.comments_section {
  margin-top: 2rem;
}

/* ====== ADD COMMENT FORM ====== */
.comment_info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment_info textarea{
  margin-bottom: 1rem;
}

/* ====== COMMENT DISPLAY ====== */
.comment_display {
  margin-top: 2rem;
}

.comment {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1rem;
  margin-top: 1rem;
  padding: 0 0 1rem 0;
  border-bottom: 2px solid #e8e2d5;
}

.comment_header {
  color: #3b2f2a;
}

.comment_author {
  font-weight: bold;
}

.comment_date {
  font-style: italic;
}

.comment_text {
  margin: 0.5rem 0;
}

.comment .delete_button{
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

/* ====== CREDITS ====== */
.credits_content {
  margin: 2rem;
}

.credits_content h1 {
  text-transform: uppercase;
  background-color: #3b2f2a;
  color: white;
  border-radius: 0.5rem;
  margin: 0 0 1rem 0;
  padding: 0.75rem 1rem;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeAnimation {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* ====== SIGNUP ====== */
#signin {
  margin-bottom: 2rem;
}

#signup, 
#signin {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ====== GALLERIES ====== */
#back_to_galleries {
  max-width: 20rem;
  margin-bottom: 1.5rem;
  background-color: #3b2f2a;
  color: white;
}

#galleries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}