/* #region general */

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  font-size: 1.6rem;
  width: 90%;
  margin: 0 auto;
}

.flex {
  width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5em;
}

.flexCol {
  width: 40%;
  margin-bottom: 1em;
}

/* #endregion general */

/* #region header */

h1 {
  text-align: center;
  margin-bottom: 1em;
  color: #0000cd;
}

/* #endregion header */

/* #region form and files drop area */

form.filesForm {
  margin-bottom: 2em;
  padding-bottom: 1em;
}

form .dropContainer {
  margin-bottom: 1em;
}

.dropContainer {
  border: 1px dashed blue;
  text-align: center;
}

.dropArea {
  padding-top: 1em;
  padding-bottom: 1em;
  cursor: pointer;
}

.dropContainer button {
  cursor: pointer;
}

.dropContainer img {
  width: 50px;
  height: 50px;
}

.fileSelector {
  display: none;
}

/* #endregion form and files drop area */

/* #region progress bar */

.progressBarInfo {
  text-align: center;
  display: none;
  margin-bottom: 1em;
}

.progressBarInfo p {
  margin-bottom: 1em;
}

.progressBarContainer {
  background-color: #ddd;
}

.progressBar {
  width: 10%;
  height: 30px;
  background-color: blue;
  text-align: center;
  line-height: 30px;
  color: white;
}

/* #endregion progress bar */

/* #region image gallery */

.dayInfo {
  text-align: center;
  color: white;
  background-color: lightskyblue;
  margin-top: 1em;
  margin-bottom: 1em;
  text-decoration-color: blueviolet;
}

.locationInfo {
  text-align: center;
  color: white;
  background-color: lightslategray;
  margin-top: 1em;
  margin-bottom: 1em;
  text-decoration-color: blueviolet;
}

.imgGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.imgFig {
  width: min(200px, 100%);
  cursor: pointer;
}

figcaption {
  text-align: center;
  color: darkblue;
}

/* #endregion image gallery */

/* #region image modal */

.picModal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0); /* fallback color */
  background-color: rgba(0, 0, 0, 0.4);
}

.modalContent {
  background-color: #fefefe;
  display: flex;
  border-radius: 10px;
  gap: 1em;
  width: 90%;
  height: 90%;
  margin: 2% auto;
  padding: 20px;
  border: 1px solid #888;
}

/* This element is included in modalContent div. It contains the displayed organized images */
.picAndInfo {
  background-color: #fefefe;
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  gap: 1em;
}

.picAndInfo figure {
  width: 45%;
}

.picAndInfo img {
  object-fit: scale-down;
  max-height: 100%;
}

.picDesc {
  line-height: 2.7;
  width: 45%;
}

.picDate {
  color: #0000cd;
}

.cityInfo {
  color: #0000cd;
  font-weight: 700;
  font-size: 1.8rem;
  text-align: center;
}

.placeName {
  color: darkblue;
}

/* Two icons from the modal are included here - the close button (X) and the left arrow */
.modalLeftIcons {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* A paragraph that links to a full sized photo display. This paragraph is part of the modal display, and it is only displayed in large screens (not in mobile devices). */
.fullSizeView {
  text-align: center;
  color: darkolivegreen;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
}

/* Left arrow and right arrow */
.modalIcon {
  align-self: center;
  height: 20px;
  width: auto;
  cursor: pointer;
}

.leftArrow {
  margin-left: 0;
  margin-top: auto;
  margin-bottom: auto;
}

.rightArrow {
  margin-right: 0;
}

/* The close button of the modal (X) */
.closeModal {
  font-size: 1.5rem;
}

.closeModal:hover,
.closeModal:focus {
  cursor: pointer;
}

/* #endregion image modal */

/* #region footer */

footer {
  margin-top: 5em;
  color: #0000cd;
}

footer p {
  text-align: center;
}

footer .credits {
  color: green;
}

footer .credits a,
footer .credits a:hover,
footer .credits a:focus,
footer .credits a:visited {
  color: green;
}

footer .credits a:hover {
  text-decoration: underline;
}

/* #endregion footer */

/* #region media queries */

@media (max-width: 768px) {
  .picAndInfo {
    display: block;
  }

  /* A paragraph that links from a full sized image display, back to the image gallery. Used only on mobile devices. */
  .linkToGallery {
    text-align: center;
    margin-top: 1em;
    color: darkblue;
    font-weight: 700;
    font-size: 2rem;
    cursor: pointer;
  }

  .linkToGallery:hover {
    text-decoration: underline;
  }
}

/* #endregion media queries */
