@import url("constants.css");

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

/* https://www.w3schools.com/howto/howto_css_style_header.asp */
body {
  margin: 0;
  font-family: sans-serif;
  background: var(--primary-colour);
}

.header {
  display: flex;
  box-shadow: 2px 2px 10px var(--shadow-colour);
  width: 100%;
  height: 72px;
  background: var(--secondary-colour);
  position: fixed;
  top: 0;
}

section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* https://stackoverflow.com/a/5170587 */
textarea {
  font-family: sans-serif;
}
input[type="text"] {
  font-family: sans-serif;
}

.error-box {
  display: flex;
  width: 60%;
  background-color: var(--error-colour);
  border-radius: 10px;
  position: fixed;
  padding: 0px 5px 0px 10px;
}

.error-text {
  color: white;
}

.close-error-box-btn {
  color: white;
  margin-left: auto;
}

.title {
  display: flex;
  align-self: center;
  margin-left: 40px;

  font-weight: 900;
  font-size: xx-large;

  /* https://stackoverflow.com/a/69989367 */
  background-image: linear-gradient(
    var(--primary-text-colour),
    var(--secondary-text-colour)
  );
  color: transparent;
  background-clip: text;
}

.info-text {
  color: var(--primary-text-colour);
  font-size: 24px;
  font-weight: 900;
}

/* https://stackoverflow.com/questions/6376452/hide-the-browse-button-on-a-input-type-file */
input[type="file"]::file-selector-button {
  display: none;
}

.invisible {
  display: none !important;
}

.hidden {
  visibility: hidden !important;
}

.main {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  text-align: left;
  align-items: center;
  width: 60%;
  margin: auto;
  padding-top: 84px;
  padding-bottom: 84px;
}

.auth-btn-div {
  display: flex;
  height: 100%;
  align-items: center;
  margin-left: auto;
  margin-right: 40px;
  gap: 8px;
}

.horizontal-divider {
  width: 12px;
  height: 1px;
  background-color: var(--accent-colour);
  align-self: center;
  margin: 4px;
}

.vertical-divider {
  width: 1px;
  height: 24px;
  background-color: var(--accent-colour);
}

.link {
  text-decoration: none;
}

.sub-heading {
  margin-right: auto;
}

.gallery-title {
  margin-bottom: 10px;
  margin-top: 20px;
}

.tile {
  display: flex;
  padding: 20px;
  box-shadow: 2px 2px 10px var(--shadow-colour);
  border-radius: 5px;
  width: 95%;
  align-items: center;
  background: var(--secondary-colour);
  justify-content: center;
  flex-direction: column;
  align-self: center;
}

.info {
  text-align: center;
  font-size: larger;
  font-weight: 900;
  color: var(--primary-text-colour);
}

.underline-text {
  /* https://www.w3schools.com/cssref/pr_text_text-decoration.php */
  text-decoration: underline;
}

/* https://www.w3schools.com/howto/howto_css_fixed_footer.asp */
.footer {
  display: flex;
  box-shadow: 2px 2px 10px var(--shadow-colour);
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--secondary-colour);
  height: 58px;
  justify-content: center;
  align-items: center;
}

.page-link {
  margin-right: 24px;

  /* https://www.w3schools.com/css/css_link.asp */
  color: var(--secondary-text-colour);
}

.page-link:hover {
  color: black;
}

.return-to-home-button {
  margin-right: auto;
  font-weight: 900;
}

.btn {
  text-align: center;
  font-size: 18px;
  color: var(--secondary-text-colour);
  background: var(--secondary-colour);
  border: 2px var(--accent-colour) solid;
  padding: 5px 10px 5px 10px;
  transition: all 0.1s ease-out;
  border-radius: 10px;
  align-self: center;
}

.btn:hover {
  background: #efefef;
}

.delete-btn:hover {
  color: red;
}

@media (max-width: 448px) {
  .main {
    width: 80%;
  }

  .title {
    font-size: 28px;
    margin-left: 18px;
  }
}
