html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  background: #eaf6ff;
  color: #333;
}

/* Header */

header {
  background: #9fd8ff;
  color: #333;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0;
}

header nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

header nav a {
  color: #1f4e79;
  text-decoration: none;
  font-weight: bold;
}

header nav a:hover {
  color: #0d3557;
  text-decoration: underline;
}

.donate-link {
  margin-left: 50px;
}

/* Main Layout */

.container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 25px;
  max-width: 1700px;
  margin: 20px auto;
  padding: 0 25px;
}

/* Sidebar */

aside {
  padding: 20px 20px 20px 70px;
  background: #dff3ff;
  border: 1px solid #b8dff7;
  border-radius: 8px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-sizing: border-box;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #9fd8ff #dff3ff;
}

/* Chrome, Edge, Safari */

aside::-webkit-scrollbar {
  width: 10px;
}

aside::-webkit-scrollbar-track {
  background: #dff3ff;
}

aside::-webkit-scrollbar-thumb {
  background: #9fd8ff;
  border-radius: 4px;
  border: 2px solid #dff3ff;
}

aside::-webkit-scrollbar-thumb:hover {
  background: #6db6e6;
}

.sidebar-logo {
  text-align: left;
  margin-bottom: 15px;
}

.sidebar-logo img {
  max-width: 150px;
  height: auto;
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-section h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #6db6e6;
  border-bottom: 1px solid #c9e6f9;
  padding-bottom: 5px;
  padding-left: 21px;
}

.sidebar-section ul {
  list-style: none;
  margin-top: 0;
  padding-left: 20px;
}

.sidebar-section li {
  margin-bottom: 8px;
}

.sidebar-section a {
  color: #4a90c2;
  text-decoration: none;
}

.sidebar-section a:hover {
  color: #1f4e79;
  background: #c9e6f9;
  border-radius: 4px;
  padding: 2px 4px;
  text-decoration: none;
}

/* Main Content */

main {
  background-color: white;
  padding: 25px;
  border: 1px solid #d6e9f7;
  border-radius: 8px;
}

/* Only pages with pageClass: triangle-bg show the triangle */

.triangle-bg {
  background-image: url("/images/triangle-bg.png");
  background-repeat: no-repeat;
  background-position: 60% center;
  background-size: 1800px auto;
}

.recent-container {
  width: 100%;
}

.recent-container h2,
main h2 {
  color: #4a90c2;
  margin-top: 0;
  text-align: left;
}

.form-section-title {
  color: #1f4e79;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: 15px;
}
/* Link Grids */

.recent-links,
.link-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Link Cards */

.link-card {
  background: #ffffff;
  border: 1px solid #d6e9f7;
  border-left: 5px solid #6db6e6;
  padding: 15px;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.link-card:hover {
  background: #f3fbff;
  border-left-color: #4a90c2;
  transform: translateY(-2px);
}

.link-card h3 {
  margin: 0 0 8px 0;
}

.link-card a {
  color: #4a90c2;
  text-decoration: none;
  font-weight: bold;
}

.link-card a:hover {
  text-decoration: underline;
}

.link-card p {
  margin: 0;
  color: #555;
}

/* Entry Layouts */

.actor-entry,
.movie-entry,
.person-entry,
.music-entry,
.content-entry,
.image-entry,
.item-entry {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Any image inside an entry will be sized correctly,
   whether or not it has a class. */

.thumb {
  width: 100px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

/* FAQ */

.faq p {
  margin-top: 0;
}

.faq p:nth-child(even) {
  margin-bottom: 25px;
}

/* Link Submission Form */

.link-submit-form {
  max-width: 650px;
  margin-top: 20px;
  padding: 20px;
  background: #f3fbff;
  border: 1px solid #b8dff7;
  border-radius: 8px;
}

.link-submit-form label {
  display: block;
  margin-bottom: 6px;
  color: #1f4e79;
  font-weight: bold;
}

.link-submit-form input,
.link-submit-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid #b8dff7;
  border-radius: 5px;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.link-submit-form textarea {
  resize: vertical;
  min-height: 120px;
}

.link-submit-form input:focus,
.link-submit-form textarea:focus {
  outline: none;
  border-color: #4a90c2;
  box-shadow: 0 0 5px rgba(74, 144, 194, 0.4);
}

.link-submit-form button {
  background: #4a90c2;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.link-submit-form button:hover {
  background: #1f4e79;
}

/* Footer */

footer {
  background: #9fd8ff;
  color: #333;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

footer a {
  color: #1f4e79;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: #0d3557;
  text-decoration: underline;
}

/* Large Tablets */

@media (max-width: 1200px) {
  .recent-links,
  .link-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }

  aside {
    position: static;
    padding: 20px;
    max-height: none;
    overflow-y: visible;
    box-sizing: border-box;
  }
}

/* Phones */

@media (max-width: 600px) {
  .recent-links,
  .link-list {
    grid-template-columns: 1fr;
  }

  header nav {
    flex-direction: column;
    gap: 10px;
  }

  .donate-link {
    margin-left: 0;
  }

  .actor-entry,
  .movie-entry,
  .person-entry,
  .media-entry,
  .feature-entry,
  .content-entry,
  .image-entry,
  .item-entry {
    align-items: flex-start;
  }
}
