body {
    background-color: #111;
    color: #fff;
    font-family: Montserrat;
    overflow: hidden;
}
.containerofcontainers {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.container {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin: 0px 30px;
    box-shadow: 15px 15px 15px 15px rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: box-shadow 0.3s;
}
.top {
    width: 16em;
    height: 11em;
    position: relative;
    z-index: 4;
}
.top h1 {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}
.bottom {
    width: 16em;
    height: 0; /* set the starting height to 0 */
    background-color: #181818;
    overflow: hidden; /* this will hide the content of the div */
    transition: height 0.3s ease-in-out; /* this will add a smooth transition when the bottom div slides out */
}
.bottom p {
    margin-left: 0.5em;
    margin-right: 0.5em;
}
.bottom h3 {
    margin-left: 0.5em;
}

.top:hover + .bottom, .bottom:hover{
    height: 20em; /* set the final height of the bottom div */
}
.weed:hover {
    box-shadow: 0px 0px 10px 5px #55fd13,
    0px 0px 20px 10px #209834;
}
.shrooms:hover {
    box-shadow: 0px 0px 10px 5px #c2952c,
    0px 0px 20px 10px #b06f24;
}
.mdma:hover {
    box-shadow: 0px 0px 10px 5px #fc13a3,
    0px 0px 20px 10px #bd13e8;
}
a {
    color: #fff;
    text-decoration: none;
}

@media only screen and (max-width: 900px) {
    .container {
      margin-top: 1em;
      margin-bottom: 1em;
    }
    .top, .bottom {
      width: 100%;
    }
    .top:onclick + .bottom{
        height: 20em; /* set the final height of the bottom div */
    }
    .bottom:onclick {
        height: min-content;
    }
    .top h1 {
      font-size: 1.5em;
    }
    .containerofcontainers {
        flex-direction: column;
    }
  }