* {
  box-sizing: border-box;
}
body {
    background-image: url('grass.jpg');
    display: flex;
    height: 100vh;
}
body, html {
    height: 100vh;
}
.rye-regular {
    font-family: "Rye", serif;
    font-weight: 400;
    font-style: normal;
}
.neon-text {
    color: #fff;
    text-shadow:
        0 0 5px #0ff,
        0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 40px #0ff,
        0 0 80px #0ff;
    text-align: center;
}
#sign {
    flex: 20%;
    align-self: flex-end;
    position: relative;
    align-items: center;
    text-align: center; 
}
#signtext {
    position: absolute;
    width: 70%;
    top: 19%;
    font-size: 0.8vw;
    margin-left: 15%;
}
#stables {
    flex: 80%;
    align-self: center;
    height: 90%;
    align-items: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

#buttons {
    width: 80%;
    align-items: flex-end;
    align-content: flex-end;
    flex: 15%;
    display: flex;
    flex-wrap: wrap;
}

@keyframes fadeOut {
  to {background-color: rgba(255, 255, 255, 0); border-color: rgba(255, 255, 255, 0)}
}

#container {
    background-color: rgba(255, 255, 255, 1);
    transition: background-color 1s linear;
    width: 80%;
    flex: 70%;
    border-radius: 5px;
    border-width: 5px;
    border-color: brown;
    border-style: double;
    position: relative;

    /* layout for GIFs: responsive wrapping into rows */
    display: flex;
    flex-wrap: wrap; /* allow wrapping into multiple rows */
    gap: 5px;
    padding: 5px; /* extra bottom padding */
    align-content: flex-start;
    justify-content: center;
    overflow: hidden; /* hide overflow at initial display; JS will enable scrollbars during resize */
}

/* make GIFs behave like cards and set a reasonable cap (typical gif size) */
#gifs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
    align-content: flex-start;
    justify-content: center;
    width: 100%; /* span full width of container */
    height: 100%;
    display: absolute;
}

#gifs img {
    width: auto; /* JS sets width responsively */
    height: auto;
    max-width: 300px; /* clamp to reasonable maximum */
    object-fit: contain;
    border-radius: 4px;
    transition: opacity .22s ease, transform .22s ease;
}

#footer {
    flex: 15%;
    justify-content: flex-end;
}

#free {
    display: block;
    transform: scale(1);
}

#return {
    position:absolute;
    left:0px;
    top:0px;
    height:5vh;
    cursor: pointer;
}

button {
    margin: 2px;
}

#freed {
    display: none;
    flex: 100%;
    object-fit: fill;
    position: absolute;
    margin-top: 5%;
    padding: 0;
}

#freed h1 {
    font-family: "Tangerine", cursive;
    color:rgba(247, 51, 227, 1);
    -webkit-text-stroke: 1px white;
}

.glow {
  font-size: 80px;
  color: #fff;
  text-align: center;
  animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
  }
  
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
  }
}