@import url("https://fonts.googleapis.com/css2?family=Balsamiq+Sans&display=swap");

body {
  box-sizing: border-box;
  text-align: center;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", "Lato", "Segoe UI",
    Helvetica, Arial, sans-serif;
}

h3,
p,
ul {
  padding: 0;
  margin: 0;
}

h3 {
  font-family: "Balsamiq Sans", cursive;
  font-size: 2.5em;
  letter-spacing: 15px;
  color: #3bbdc7;
  padding-top: 25px;
  padding-bottom: 15px;
  padding-left: 10px;
}

.star {
  font-size: 25px;
  animation: spin 7s cubic-bezier(0.8, 0, 0.2, 0.8) infinite;
  transform: rotate(360deg);
  transform-origin: center center;
}

@keyframes spin {
  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.desc {
  padding: 30px;
  letter-spacing: 0.1em;
  font-size: 15px;
}

nav {
  width: 100%;
  display: block;
  margin: 0.5em auto;
}

nav ul {
  display: flex;
  list-style-type: none;
  justify-content: center;
}

nav ul li {
  padding: 15px 0px;
}

nav ul li a {
  text-decoration: none;
  color: #999;
  transition: 150ms ease-in-out;
  letter-spacing: 1px;
}

nav ul li a:hover {
  font-weight: 500;
  letter-spacing: 3px;
  color: #e74b24;
}

a.active {
  color: #e74b24;
}

/* ── gallery ──────────────────────────────────────────────────────────────── */

.gallery-container {
  padding-top: 25px;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  position: relative;
}

.gallery-item {
  width: 300px;
  height: 300px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  transition: 200ms ease-in-out;
  border-radius: 10px;
  border-style: dotted;
  border-color: #ff3300;
}

.gallery-item:hover {
  opacity: 0.7;
}

.gallery-item img {
  object-fit: cover;
  width: 300px;
  height: 300px;
  transition: 300ms ease-in-out;
}

.gallery-item img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

/* ── modal / overlay ──────────────────────────────────────────────────────── */

.overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0s 0.5s;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #2b2413;
  z-index: 2;
}

.modal {
  font-family: "Balsamiq Sans", cursive;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0s 0.5s;
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.modal img {
  height: 100%;
  transition: 150ms ease-in-out;
}

.close {
  position: absolute;
  right: 25px;
  top: 25px;
  border: none;
  background-color: transparent;
  color: #eea800;
  font-size: 3em;
  transform: scale(1.5, 1);
  z-index: 5;
}

.next,
.prev {
  background-color: #eee;
  color: #2b2413;
  border-radius: 50%;
  border: none;
  height: 40px;
  width: 40px;
  position: absolute;
  z-index: 5;
  font-size: 25px;
}

.next:hover,
.prev:hover {
  filter: brightness(80%);
  cursor: pointer;
}

.prev {
  left: 25px;
  top: 50%;
}

.next {
  right: 25px;
  top: 50%;
}

.close:hover {
  color: #50b7df;
  cursor: pointer;
}

.overlay.show,
.modal.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s;
}

.close:focus,
.prev:focus,
.next:focus {
  outline: none;
}

/* ── footer ───────────────────────────────────────────────────────────────── */

footer {
  padding: 25px 0px;
  background-color: #e74b24;
  margin-top: 50px;
  color: white;
  letter-spacing: 1px;
  border-radius: 10px;
}

footer a {
  text-decoration: none;
  color: white;
}

/* ── misc ─────────────────────────────────────────────────────────────────── */

.blog-row {
  padding-top: 25px;
}

.blog-row-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-row-item {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: flex-start;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
  transition: 200ms ease-in-out;
  border: 2px dashed #ff3300;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-row-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-right: 20px;
}

.blog-row-item .blog-title {
  font-family: "Balsamiq Sans", cursive;
  font-size: 1.2em;
  color: #333;
  letter-spacing: 1px;
}

.blog-row-item:hover {
  opacity: 0.9;
  border-style: solid;
  background-color: #f9f9f9;
}

.icons-container {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.circle-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ff3300;
  transition: background-color 0.3s ease;
}

.responsive-iframe {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  height: 0;
  margin: 0 auto;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #eee;
  background: white;
}

.hover-underline:hover {
  text-decoration: underline;
}

/* ── archive view shell (layout only, visuals in archive.css) ─────────────── */

#archive-view {
  position: relative;
  margin: 0;
  padding: 0;
  display: none;
}

.archive-desc {
  display: none;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 3px;
  text-align: center;
  text-transform: lowercase;
  padding: 10px 0 0;
}