@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&display=swap');

body {
  font-family: 'Inconsolata', monospace;
  color: rgb(229, 218, 218);
  background-color: rgb(39, 37, 37);
}

h1 {
    font-weight: bold;
    font-size: 1em;
}

a {
    color: #4da3ff
}

.header {
    text-align: center;
    font-size: clamp(8px, 5vw, 48px);
}

.header-para {
    line-height: 1;
    font-size: 0.5em;
}

.griditem {
    box-sizing: border-box;
    max-width: 100%;
    height: auto;
    padding: 16px;
}

.griditem img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.15s ease;
}

.griditem:hover,
.griditem:focus {
    cursor: pointer;
    transform: scale(1.1);
}

.stuff-grid {
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 128px));
    justify-content: center;
    gap: 4rem;
    margin: 0 auto;
    padding: 0 10vw;
}

#modal.hidden { display: none; }

.modal {
    position: fixed; /* make it stay */
    z-index: 1; /* put in front of everything else */
    left: 0; /* set the position */
    top: 0;
    width: 100%; /* full width and height */
    height: 100%;
    overflow: auto; /* let scrolling work */
    background-color: rgb(0,0,0); /* set fallback colour (if transparency doesn't work) */
    background-color: rgb(0,0,0,0.4);
}

.modal-content {
    background-color: rgb(39, 37, 37);
    margin: 15% auto; /* 15% from the top and centred */
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    text-align: center;
}

.modal-content p {
    display: block;
}

.modal-content iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.modal-content .modal-text {
    display: inline-block;
    text-align: left;
    max-width: 100%;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    vertical-align: middle;
    text-align: center;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
  column-gap: 3rem;
  justify-content: center;
}

.social-row img {
  height: 20px; /* controls logo size */
  width: auto;
}

.filter-bar {
    text-align: center;
    margin: 1rem 0;
}

.filter {
    cursor: pointer;
    transition: transform 0.15s ease;
}

.filter:hover,
.filter:focus {
    display: inline-block;
    cursor: pointer;
    transform: scale(1.1);
}

.filter.active {
    color: #4da3ff;
    font-weight: bold;
}


footer {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  padding: 1rem 0;
}
