:root {
  --goodboyyellow: #ffd900;
}

@font-face {
  font-family: Playground;
  src: url(../PPPlayground-Regular.ttf);
}

@font-face {
  font-family: Neue Montreal;
  src: url(../PPNeueMontrealMono-Regular.woff);
}

@font-face {
  font-family: Berkeley Mono;
  src: url(../fonts/TX-02-Trial-Regular.otf);
}

::-moz-selection {
  /* Code for Firefox */
  color: black;
  background: white;
}

::selection {
  color: black;
  background: white;
}

body {
  margin: 0 1.5%;
  line-height: 1.4em;
  background-color: var(--goodboyyellow);
  color: black;
  font-family: 'Berkeley Mono', system-ui, sans-serif;
  font-size: 11pt;
  align-items: center;
  text-align: center;
  filter: url("#distort");
  -webkit-filter: url("#distort");
}

a {
  text-decoration: underline;
  color: black;
}

a:hover {
  font-style: italic;
}

a:visited {
  text-decoration-line: line-through red;
}

/* Header */

.title {
  text-align: center;
}

.subtitle {
  font-style: italic;
}

.timecontainer {
  height: 5%;
  margin-top: 15px;
}

.weathercontainer {
  margin-top: 10px;
}

#time,
#temperature,
#description {
  position: relative;
  width: 50%;
  margin: 20px 0px;
}

#officehours {
  text-decoration: underline;
  font-style: italic;

  animation: blink 2.5s steps(1, end) infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.intro {
  text-align: center;
}

/* Dog Image */

.center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -99;
}

.center img {
  width: 500px;
  height: 500px;
  opacity: 10%;
}

/* Table */

table {
  width: 100%;
  margin: 25px auto;
  border-spacing: 0;
  border-collapse: collapse;
  cursor: pointer;
  font-size: 10pt;
}

th,
td {
  border: 1px solid black;
  padding: 5px 10px;
  text-align: center;
  line-height: normal;
}

.accordion-content {
  display: none;
}

.accordion-content.open {
  display: table-row;
}

.accordion-inner {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.accordion-left,
.accordion-right {
  flex: 1;
  text-align: left;
}

.accordion-left img {
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
}

.accordion-left figcaption {
  font-size: 0.9em;
  margin-top: 5px;
  text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */

.footer {
  margin-bottom: 25px;
}


/* Blog */

hr {
  border-top: 1px solid black;
  margin-bottom: 10px;
}

.blogpost {
  max-width: 65%;
  margin: auto;
  padding: 0 35px;
  text-align: left;
  font-size: 12pt;
  border: 1px solid black;
}

.blogpost img {
  display: block;
  width: 100%;
  height: auto;
  margin: auto;
    border: 1px solid black;
}

.caption {
  text-align: center;
  text-decoration: underline;
}

a.footnote {
  text-decoration: none;
  padding-left: 2px;
  padding-right: 2px;
  margin-right: 2px;
  cursor: pointer;
}

a.footnote span {
  z-index: -1;
  opacity: 0;
  position: fixed;
  left: 50%;
  top: 50%;
  padding: 10px;
  transform: translate(-50%, -50%);
  width: fit-content;
  background-color: white;
  color: black;
  border: 4px solid black;
  box-shadow: 15px 15px black;
}

a.footnote:hover span {
  z-index: 9;
  opacity: 1;
}

.post-no,
.post-date {
  font-size: 0.9rem;
  color: black;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.2rem 0;
  text-align: center;
}

.blogpost h1 {
  text-align: center;
  font-weight: 600;
  margin: 0.5rem 0;
}


/* Error Page */

.error {
  font-size: 50pt;
  line-height: 1;
}

/* Mobile! */

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Make accordion content single column */
    .accordion-content {
        display: none !important; /* Start closed */
    }
    
    .accordion-content.open {
        display: table-row !important; /* Show as table row when open */
    }
    
    /* Make the td span full table width */
    tbody tr.accordion-content td {
        display: table-cell;
        width: 100%;
    }
    
    /* Create a wrapper that forces full width */
    .accordion-content > td > * {
        display: block;
        width: 100%;
    }
    
    /* Stack accordion left and right vertically */
    .accordion-left,
    .accordion-right {
        display: block !important;
        width: 100% !important;
        padding: 15px;
        float: none !important;
    }
    
    /* Keep table rows horizontal with Number and Title */
    table {
        font-size: 14px;
        width: 100%;
    }
    
    /* Hide the Date, Medium, and Notes column headers */
    thead th:nth-child(3),
    thead th:nth-child(4),
    thead th:nth-child(5) {
        display: none;
    }
    
    /* Adjust width of number column */
    thead th:nth-child(1) {
        width: 25%;
    }
    
    /* Keep rows as rows, but hide extra cells */
    tbody tr.accordion-row {
        display: table-row;
    }
    
    tbody tr.accordion-row td:nth-child(3), 
    tbody tr.accordion-row td:nth-child(4),
    tbody tr.accordion-row td:nth-child(5) {
        display: none;
    }
    
    /* Make footer text smaller */
    .footer {
        font-size: 14px;
        padding: 15px;
    }
    
    /* Adjust any fixed widths */
    body {
        padding: 10px;
    }
}