html {
  min-width: 22rem;
  overflow: auto;
}

body {
  --purple: #e8f;
  --darkpurple: #2a0060;
  --grey: #000;

  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;

  background-color: black;
  color: white;
}

a {
    color: var(--purple);
}

.container {
  padding: 1rem 2.5rem;

  max-width: 50rem;
  margin: 0 auto;
}

header {
    max-width: 100%;
}

.overview {
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
}

#cad {
    background-image: url("../ctrl-alt-delicious.png");
    background-size: cover;
    font-size: 0;
    max-width: 100%;
    aspect-ratio: 2.5;
}

#gamelist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

article {
    max-width: 100%;
    background-color: var(--darkpurple);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.1s ease-out;
    border-radius: 0.6rem;
    border: 3px solid #508;
}

#gamelist article:hover {
    background-color: #508;
    --purple: #eaf;
    transform: scale(1.05);
}

article img {
    width: 100%;
}

article h3 {
    margin: 0 0 1.7rem 0;
}

.subtitle {
    margin: -2rem 0 .7rem 0;
    color: var(--purple);
}

.team {
    color: var(--purple);
    font-weight: bold;
    width: 100%;
    text-align: right;
    margin: 0;
}

footer {
    margin-top: 4rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

footer span {
    display: block;
    height: 100%;
    margin: auto 0;
}

#pbox {
    display: block;
    background-image: url("../playoutsidethebox-white.png");
    background-size: cover;
    font-size: 0;
    width: 12rem;
    aspect-ratio: 3;
    margin: auto 1rem;
}

#tgw {
    display: block;
    background-image: url("../tgw2026logo.png");
    background-size: cover;
    font-size: 0;
    width: 20rem;
    max-width: 100%;
    aspect-ratio: 10;
    
    margin: auto 1rem;
}

#credits {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0;
}

article h2 {
    margin-bottom: 0.5rem;
}

.comment {
    font-style: italic;
    color: var(--purple);
}

.hidden {
    display: none;
}

#info {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    overflow: auto;
}

#info > article {
    max-width: 48rem;
    margin: 4rem auto;
    text-align: right;
    cursor: auto;
}

#info > article > header {
    text-align: center;
    margin-top: -3rem;
}

article > .contents {
    margin: 1rem;
    text-align: left;
    display: grid;
    grid-template-columns: minmax(15rem, 3fr) 2fr;
    gap: 1rem;
}

button {
    background-color: var(--purple);
    color: var(--darkpurple);
    border-radius: 0.6rem;
    border: 0;
    width: 3rem;
    height: 3rem;
    font-size: 0;
    cursor: pointer;
    position: sticky;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0;
    outline: 5px solid var(--darkpurple);
}
button:after {
    display: inline-block;
    font-size: xx-large;
    content: "\00d7";
}
button:hover {
    color: white;
}

.left {
    grid-column: 1;
}

#gameid {
    display: grid;
    text-align: left;
    margin: 0 1rem;
    grid-template-columns: 1fr auto;
    align-content: center;
}

#gameid h1 {
    margin: 0;
    color: white;
}

#subtitle {
    color: var(--purple);
    font-size: large;
    margin-top: -0.5rem;
    text-decoration: none !important;
}

#logo {
    border-radius: 0.5rem;
    max-height: 30rem;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.stack {
    margin-top: 1rem;
}

#teamlogo {
    max-width: 15rem;
    max-height: 8rem;
    width: auto;
    height: auto;
    margin: auto 0;
}

#team {
    font-weight: bold;
    font-size: large;
    color: var(--purple);
    margin: 0;
    text-decoration: none !important;
}

#school {
    align-self: flex-end;
    max-width: 20rem;
}

#images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.7rem;
}

#embed {
    grid-column: 1 / 3;
    margin: 1rem auto;
    width: 100%;
    text-align: center;
}

#embed > iframe {
    width: 100%;
    aspect-ratio: calc(16/9);
}

.name {
    color: white !important;
}

.role {
    color: var(--purple);
}

#team.linked::after {
    content: " \2197";
}

.socialicon {
  font-size: 0;
  display: inline-block;
  position: relative;
  top:-1rem;
  height: 1.2rem;
  width: 1.2rem;
  background: url("socialicons.png");
  background-size: cover;
  margin:0 0 -1rem 0;
}

.instagram {
    background-position: 100%;
}

@media screen and (width < 40rem) {
    article > .contents {
        display: flex;
        flex-direction: column;
    }

    #school {
        align-self: auto;
        margin: 1rem auto 0 auto;
        max-width: 15rem;
    }
}