/* Define some variables */
:root {
  --header-color: rgb(201,171,32);

  --sidebar-textarea-color: rgba(255,255,255,0.4);
  --sidebar-button-color: rgba(255,255,255,0.25);
  --sidebar-textarea-placeholder-color: rgba(0,0,0,0.4);
  --sidebar-proverbs-height: 35em;

  --proverb-base-color: hsl(82deg,62%,14%);
  --proverb-back-color-light: hsl(82deg,62%,20%);
  --proverb-back-color-middle: hsl(82deg,62%,14%);
  --proverb-back-color-dark: hsl(82deg,62%,10%);
}

/* Primary block layout - defined in page_layout.css */

/* Exception: increase sidebar size due to the proverb entry form */
#sidebar {
  height: var(--sidebar-proverbs-height);
}
@media screen and (min-width: 1100px) {
  #sidebar {
    height: auto;
  }
}


/* Currently selected page - add bottom border (and adjust padding) */
a#proverbs:link {
  padding-bottom: 0.6em;
  border-bottom-width: 0.4em;
  border-bottom-style: solid;
}
a#proverbs:hover {
  padding: 1.05em 1.05em 0.7em 1.05em;
}

/* Mainbar layout (page-specific content) */

#mainbar {
  position: relative;
  font-size: 1.2em;
}
.proverb {
  position: absolute;
  border-radius: 8px;
  text-align: center;
  max-width: 20em;
  background-image: linear-gradient(180deg, var(--proverb-back-color-light),
                    var(--proverb-back-color-middle) 30%,
                    var(--proverb-back-color-middle) 55%,
                    var(--proverb-back-color-dark) 100%);
}
.proverb p {
  padding: 0;
  margin: .4em 1em;
  font-size: 1.3em;
  text-wrap: balance;
}
@media screen and (min-width: 1100px) {
  .proverb {
    max-width: 15em;
  }
  .proverb p {
    font-size: 1em;
  }
}
.proverb#p1 {
  display: none;
  top: 10%;
  left: 10%;
  height: 2.5em;
  width: 16em;
  text-align: center;
  justify-content: center;
}
.proverb#p2 {
  display: none;
  top: 20%;
  right: 10%;
  text-align: left;
  height: 7em;
  width: 22em;
}
#p2-2 {
  text-align: right;
  margin-top: 2em;
}
.proverb#p3 {
  display: none;
  top: 30%;
  left: 20%;
  height: 5em;
}
#p3 * {
  margin-bottom: .5em;
}
.proverb#p4 {
  display: none;
  top: 50%;
  left: 40%;
}

/* Styles for fade-in animations */
#treeSVG {
  width: 100%;
  height: 100%;
}
.fadeable {
  opacity: 0;
}
.fade-in {
  opacity: 1;
  transition: opacity 10s linear;
}


/* Sidebar styles for the proverb self-entry form */

#sidebar form {
  margin: 5em 0.5em 1em 1em;
  font-family: 'Lucida Sans', Arial, sans-serif;
  font-size: 0.75em;
}
#sidebar form ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
#sidebar form ul li > p {
  margin: 0.4em;
  text-align: center;
  margin-bottom: 1em;
  font-size: 1.2em;
}
#sidebar form label {
  margin: 0.4em;
  font-size: 1.1em;
}
#sidebar form textarea {
  margin-left: 5%;
  margin-top: 0.3em;
  width: 90%;
  resize: none;
  font-size: 1.6em;
  background-color: var(--sidebar-textarea-color);
  color: black;
  border: 2px solid var(--sidebar-textarea-placeholder-color);
}
textarea::placeholder {
  color: var(--sidebar-textarea-placeholder-color);
}
#sidebar form button {
  font-family: 'Lucida Sans', Arial, sans-serif;
  color: black;
  font-size: 2em;
  border-radius: 0.25em;
  background-color: var(--sidebar-button-color);
  float: right;
  margin-right: 5%;
}
/* Submitted! text styling */
p#successText {
  float: right;
  padding-right: 3%;
  transition-property: opacity;
  transition-duration: 0.1s;
  transition-timing-function: ease-in-out;
  opacity: 0;
}


/* Smaller font size for large screens */
@media screen and (min-width: 1100px) {
  #mainbar {
    font-size: medium;
  }
  #sidebar form button {
    font-size: 1.2em;
  }
}