/* Color Variables */
:root {
  --bg-primary: #36393f;
  --text-primary: #ffffff;
  --accent-gold: #ffd700;
  --error-red: #ff0000;
  --overlay-dark-20: #00000033;
  --overlay-dark-25: #00000040;
  --overlay-dark-30: #0000004d;
  --overlay-dark-35: #00000059;
  --overlay-dark-50: #00000080;
  --overlay-light-10: #ffffff1a;
  --overlay-light-30: #ffffff4d;
  --overlay-light-50: #ffffff80;
  --overlay-gold-30: #ffd7004d;
}

/* Main Layout & Body Styles */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

#iframe-wrap {
  display: none;
  text-align: center;
  margin-top: 20px;
}

#iframeToggle {
  border: none;
  margin: 0 auto;
  display: block;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.form {
  margin: 20px auto auto auto;
}

/* Typography and Links */
a {
  color: var(--text-primary);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.title {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 30px;
  color: var(--text-primary);
}

.main-img {
  border-radius: 50%;
  width: 108px;
  height: 108px;
  object-fit: cover;
}

.error {
  color: var(--error-red);
}

/* Top Navigation Menu (Notes, Maps, etc.) */
.addLinks {
  position: absolute;
  right: 0;
  top: 1rem;
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-right: 10px;
}

.addLinks a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--overlay-dark-30);
  border-radius: 6px;
  font-size: 13px;
}

.addLinks a:hover {
  background: var(--overlay-dark-50);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.addLinks a:active {
  transform: translateY(1px);
  filter: brightness(0.9);
}

.addLinks .separator {
  color: var(--overlay-light-30);
  padding: 0 4px;
  font-size: 14px;
}

.top {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.top > .title {
  margin-left: 20px;
}

.icon {
  width: 18px;
  height: 18px;
  background-size: cover;
}

.note {
  background-image: url(/img/note-white.svg);
}

.addLinks a:hover .note {
  background-image: url(/img/note-gold.svg);
}

/* Link Categories Section */
.my_links {
  margin: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.link-category {
  width: 100%;
  max-width: 1100px;
}

.category-title {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--overlay-gold-30);
  text-align: left;
}

.my_links > .link-category > .row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.my_links > .link-category > .row > .item {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.my_links > .link-category > .row > .item > a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--overlay-dark-20);
  border: 2px solid var(--overlay-light-10);
  border-radius: 8px;
}

.my_links > .link-category > .row > .item > a:hover {
  color: var(--accent-gold);
  background: var(--overlay-dark-35);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Pressed effect for links */
.my_links .item a:active {
  transform: translateY(1px);
  filter: brightness(0.9);
}

/* Compact Google Search Widget */
#googlesearch {
  display: flex;
  justify-content: center;
  margin: 12px auto;
  max-width: 420px;
  /* Narrower width */
}

#googlesearch form {
  display: flex;
  width: 100%;
  gap: 5px;
  background: var(--overlay-dark-25);
  padding: 4px 6px;
  border-radius: 50px;
  border: 2px solid var(--overlay-light-10);
  transition: border-color 0.3s ease;
}

#googlesearch form:focus-within {
  border-color: var(--accent-gold);
}

#googlesearch input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  outline: none;
}

#googlesearch input[type="text"]::placeholder {
  color: var(--overlay-light-50);
}

#googlesearch input[type="submit"] {
  background: transparent;
  color: var(--overlay-light-50);
  border: none;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Subtle Hover Effect */
#googlesearch input[type="submit"]:hover {
  background: var(--overlay-light-10);
  color: var(--text-primary);
  transform: scale(1.1);
  box-shadow: none;
}

#googlesearch input[type="submit"]:active {
  background: var(--overlay-light-30);
  transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .addLinks {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  .addLinks a {
    padding: 5px 10px;
    font-size: 12px;
  }

  .addLinks .separator {
    display: none;
  }

  .link-category {
    width: 95%;
  }

  .category-title {
    font-size: 14px;
    text-align: center;
  }

  .my_links > .link-category > .row {
    justify-content: center;
  }

  #googlesearch {
    max-width: 90%;
  }
}
