* { margin: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font: Garamond;
  line-height: 1.6;
  padding: 0;
  background-image: url("images/pfp.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border: none;
  border-radius: 12px;
  margin: 0;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
p { font-size: 1.1rem; }

.container {
  max-width: 90vw;
  margin: 80px auto;
  background: white;
  border: 2px solid darkblue;
  border-radius: 40px;
  overflow: hidden;
}

.intro {
  background-color: #FFB7CE;
  color: black;
  border-radius: 0;
  padding: 2rem;
  max-width: 100vw;
  margin: 0;
  height: 100%;
  vertical-align: middle;
}

.intro h1 {
  font: "salina";
}

#dashboardLinks:link {
  text-decoration: none;
}

#dashboardLinks:hover h3 {
  color: orange;
}

.dashboard {
  border-radius: 0;
  background-color: grey;
}

.dashboard h3 {
  margin-left: 5px;
}

table {
  max-width: 100%;
  width: 100%;
  border-collapse: collapse;
}

td, th {
  border: 1px solid #ddd;
  padding: 8px;
}

td {
  color: grey;
}

tr:nth-child(even) { background-color: #f2f2f2; }
tr:hover { background-color: #ddd; }

th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #04AA6D;
  color: white;
}

td a {
  text-decoration: none;
  color: black;
}

td a:hover {
  color: red;
}

.left {
  border: 0;
  margin: 10px;
}

.left li a {
  border-radius: 0.6rem;
  height: 2em;
  width: 2em;
  background-color: lightblue;
  background-image: linear-gradient(180deg, transparent 0%, rgba(224, 54, 156, 0.004) 50%);
  background-repeat: repeat;
  background-size: cover;
  align-items: center;
  display: flex;
  justify-content: center;
}

.left li a svg {
  height: 60%;
  width: 60%;
  fill: #000000;
  transition: fill 0.125s ease;
  display: block;
  position: relative;
}

.left li a.instagram-icon {
  width: 44px;
  height: 44px;
  background: #FFB7CE;
  background-image: none;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-camera {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid #000;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-camera::before {
  content: '';
  width: 9px;
  height: 9px;
  margin: 0;
  border: 2px solid #000;
  border-radius: 50%;
}

.ig-camera::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 3px;
  height: 3px;
  background: #000;
  border-radius: 50%;
}

.left li a.youtube-icon {
  width: 44px;
  height: 44px;
  background: #FFB7CE;
  background-image: none;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-play {
  position: relative;
  width: 24px;
  height: 17px;
  border: 2px solid #000;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-play::before {
  content: '';
  margin-left: 2px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #000;
}

.left ul.socials {
  list-style: none;
  padding-left: 0;
  display: flex;
  gap: 10px;
}

.guestbook {
  width: min(320px, 80vw);
  margin: 10px auto;
  font-family: monospace;
}

.guestbook-form {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  font: inherit;
}

.guestbook-form textarea {
  min-height: 90px;
  resize: vertical;
}

.guestbook-form button {
  justify-self: center;
  padding: 10px 20px;
  border: 2px solid #f28ac3;
  background: #df2c9c;
  color: white;
  font: bold 1rem monospace;
  cursor: pointer;
}

.guestbook-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.guestbook-entries {
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 10px;
  text-align: left;
}

.guestbook-entry {
  margin-bottom: 30px;
  overflow-wrap: anywhere;
}

.guestbook-entry h3 {
  margin-bottom: 14px;
  color: #ed35a8;
  font-size: 1rem;
  font-weight: normal;
}

.guestbook-entry p {
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.guestbook-entry time {
  color: #999;
  font-size: 0.75rem;
}

.guestbook-status {
  min-height: 1.4em;
  margin: 6px 0;
  font-size: 0.8rem;
}

.right {
  border: 0;
  margin-left: 20px;
  flex: 1;
  min-width: 0;
  padding: 0 10px;
}

hr.horizontal {
  border: 0;
  margin-bottom: 10px;
  margin-top: 10px;
  border-top: 1px solid black;
  width: 90%;
  display: none;
}

hr.vertical {
  border: 0;
  margin-left: 10px;
  margin-right: 10px;
  border-left: 1px solid black;
  align-self: stretch;
}

.home {
  display: flex;
  align-items: stretch;
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
    margin: 0;
    font-size: 14px;
    padding: 0;
  }

  .container {
    padding: 0;
    margin: 2vw 2vh 2vw 2vh;
    width: 90vw;
    max-width: 90vw;
    border-radius: 12px;
  }

  .intro {
    align-items: center;
    text-align: left;
    height: 20vh;
  }

  .intro img {
    max-width: 15vw;
    height: auto;
    margin: none;
    float: left;
    flex-shrink: 0;
  }

  .intro p {
    align-self: flex-start;
    width: 80vw;
  }

  .intro h1, .intro h2 {
    font-size: 1.5rem;
  }

  hr.vertical {
    display: none;
  }

  .home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .home .right {
    margin-top: 20px;
    align-items: center;
    margin-left: 0;
    text-align: center;
  }

  .home .right table {
    width: 80vw;
    margin: 0 auto 20px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  html, body {
    width: 100%;
    margin: 0;
    font-size: 14px;
    padding: 0;
  }

  .container {
    padding: 0;
    margin: 2vw 2vh 2vw 2vh;
    width: 90vw;
    max-width: 90vw;
    border-radius: 12px;
  }

  .intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    height: 30%;
    margin: 0;
    text-align: center;
    padding: 1rem;
  }

  .intro p {
    align-self: flex-start;
  }

  .intro h1, .intro h2 {
    font-size: 1.5rem;
  }

  .intro img {
    max-width: 100px;
    height: auto;
  }

  hr.vertical {
    display: none;
  }

  hr.horizontal {
    display: block;
  }

  .home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .home .right {
    margin-top: 20px;
    align-items: center;
    margin-left: 0;
    text-align: center;
  }

  .home .right table {
    width: 80vw;
    margin: 0 auto 20px;
  }
}
