/*
Colour palette:
  Primary:           #2563EB
  Primary Hover:     #1D4ED8
  Primary Light:     #DBEAFE

  Background:        #F8FAFC
  Surface:           #FFFFFF
  Accent Background: #EFF6FF

  Text:              #0F172A
  Text Muted:        #64748B

  Border:            #D9E2F0

  Footer Background: #0F2A4A
  Footer Text:       #FFFFFF
  Footer Text Muted: #B8CCE3
*/

body {
  font-family: sans-serif;
  background-color: #F8FAFC;
  margin: 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
  font-size: 25px;
  font-weight: 700;
  margin: 0;
  padding: 20px;
  background-color: #FFFFFF;
  color: #2563EB;
}

main {
  padding: 50px 0px 40px 0px;
  color: #0F172A;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer {
  background-color: #0F2A4A;
  padding: 40px;
  color: #FFFFFF;
  text-align: center;
}

#toggle-form-btn {
  background-color: #2563EB;
  color: white;
  border-radius: 10px;
  padding: 5px;
}

.form-section {
  padding: 10px 10px 10px 10px;
  margin-top: 10px;
  width: 500px;
  border-radius: 15px;
  border: 2px #001e5a solid;
  
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.submit-btn {
  background-color: #2563EB;
  color: white;
}

input {
  padding: 5px;
  border: 1px #001e5a solid;
  border-radius: 5px;
}

#comment-section,
#gallery-section {
  background-color: #EFF6FF;
  align-self: stretch;
  padding: 40px;
  margin: 50px 0px 50px 0px;
  display: flex;
  flex-direction: column;
}

#gallery-section {
  align-items: center;
}

#comment-section {
  gap: 10px;
  align-items: left;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 6px;
}

img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
}

#img_info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
}

#title {
  font-size: 25px;
  font-weight: bold;
}

#author {
  font-size: 18px;
  opacity: 0.6;
}

.left,
.right {
  background-color: #DBEAFE;
  border-radius: 30%;
  transition: transform 0.2s ease;
}

.left:hover,
.right:hover {
  background-color: #1D4ED8;
  transform: scale(1.2);
}

#current-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: image-fade 0.4s ease;
}

@keyframes image-fade {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav {
  display: flex;
  align-self: center;
  gap: 5px;
}

.comment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.comment {
  width: 200px;
  display: flex;
  flex-direction: column;
  border: 2px black solid;
  border-radius: 10px;
  padding: 10px;
  animation: comment-slide 0.5s ease-in-out;
}

@keyframes comment-slide {
  from {
    transform: translateX(-20px) rotate(-5deg);
  }
  to {
    transform: translateX(0) rotate(0);
  }
}

.comment-header {
  display: flex;
  justify-content: space-between;
}

.comment-date {
  font-size: 12px;
}

.comment-text {
  margin-top: 5px;
  padding-top: 30px;
  border-top: 2px black dotted;
}

#delete-img {
  background-color: rgb(211, 66, 66);
  border-radius: 15px;
  border: 1px black solid;
  padding: 4px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

#delete-img:hover {
  transform: scale(1.1);
  background-color: rgb(180, 45, 45);
  cursor: pointer;
}

#delete-comment {
  background-color: rgb(211, 66, 66);
  border-radius: 100%;
  border: 1px black solid;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

#delete-comment:hover {
  transform: scale(1.1);
  background-color: rgb(180, 45, 45);
  cursor: pointer;
}

a,
a:visited,
a:hover,
a:active {
  color: white;
}

.hidden {
  display: none !important;
}

/* icons */

.icon {
  width: 22px;
  height: 22px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 75%;
}

.left {
  background-image: url("../media/left-arrow.png");
}

.right {
  background-image: url("../media/right-arrow.png");
}
