/* a minimalist set of CSS resets */

/* default to border-box */
html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* adjust typography defaults */
body {
    margin: 1rem;
    font-family: sans-serif;
    line-height: 1.5;
    background-color: #0089b6;
}

/* images and videos max out at full width */
img,
video {
    height: auto;
    max-width: 100%;
}

body {
    position: relative;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#stack-container {
    position: absolute;
    bottom: 12px;
    left: 10px;
    width: calc(100vw - 20px);
    z-index: 100;
}

.stack-item {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100vw - 20px);
    height: 100px;
    border: 1px solid #3F51B5;
    background-color: #673AB7;
    margin-bottom: 10px;
    padding: 10px;
    cursor: pointer;
    transform-origin: bottom;
    transform-style: preserve-3d;
    transform: translate(0, 0);
    transition: all 0.3s ease-in-out;
    z-index: 0;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(0, 200px) scale(0.75);
}
.stack-item.show {
    transform: translate(0, 0);
}

.stack-item:hover {
    background-color: #3F51B5;
}

.stack-item-expanded {
    transform: translate(-50%, 0);
    width: calc(100vw - 20px);
    height: calc(100vh - 40px);
}

.stack-item.show:nth-child(1) {
    z-index: 3;
}

.stack-item.show:nth-child(2) {
    transform: translate(0, 10px) scale(0.85);
    opacity: 0.75;
    transition-delay: 0.1s;
    z-index: 2;
    pointer-events: none;
}

.stack-item.show:nth-child(3) {
    transform: translate(0, 20px) scale(0.75);
    opacity: 0.5;
    transition-delay: 0.1s;
    z-index: 1;
    pointer-events: none;
}

.container-actions,
.console {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.container-actions {
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.console {
    z-index: 20;
    color: #fff;
    font-weight: 700;
    opacity: 0.5;
    top: 120px;
    padding: 20px;
}
.console::after {
    display: block;
    content: ' ';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 75%;
    background: rgb(0,137,182);
    background: linear-gradient(0deg, rgba(0,137,182,1) 35%, rgba(0,137,182,0) 100%);
}

.button {
    height: 50px;
    width: 100%;
    max-width: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0089b6;
    color: #000;
    border: solid 1px #000;
    cursor: pointer;
}
.button:not(:disabled).button:hover,
.button:not(:disabled).button:active,
.button:not(:disabled).button:focus {
    background-color: #000;
    color: #fff;
}
.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#logo {
    display: block;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 10px;
    left: 20px;
    width: calc(100% - 40px);
    height: 100px;
}

.hits {
    position: absolute;
    display: flex;
    gap: 100px;
    align-items: center;
    justify-content: center;
    top: 120px;
    left: 10px;
    right: 10px;
    z-index: 99;
}
.hits > div {
    color: #fff;
    font-size: 48px;
    opacity: 0.35;
    transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.hits > div.hit {
    opacity: 1;
    animation:pop-in 0.5s;
}
@media (max-width: 1024px) {
    .hits {
        gap: 40px;
    }
}
@media (max-width: 600px) {
    .console {
        top: 180px;
    }
    .hits {
        gap: 24px;
    }
    .hits > div {
        font-size: 24px;
    }
}

@keyframes pop-in {
    0% { opacity: 0.5; transform: scale(1); }
    25% { opacity: 0; transform: scale(0.1); }
    100% { opacity: 1; transform: scale(1); }
}

.stack-item-content,
.stack-item-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stack-item-content {
    opacity: 0;
    display: flex;
    padding: 40px;
    flex-direction: column;
}
.stack-item-highlight {
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.stack-item-expanded .stack-item-content {
    opacity: 1;
}
.stack-item-expanded .stack-item-highlight {
    opacity: 0;
}

.stack-item-icon {
    width: 200px;
    height: 200px;
    border-radius: 50px;
    background-color: #000;
    opacity: 0.5;
    margin-bottom: 50px;
}
.stack-item-text {
    background-color: #000;
    opacity: 0.5;
    height: 40px;
    width: 100%;
    margin-bottom: 10px;
}
.stack-item-text-smaller {
    background-color: #000;
    opacity: 0.5;
    height: 40px;
    width: 50%;
    margin-bottom: 75px;
}
.stack-item-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.stack-item-option {
    background-color: #000;
    opacity: 0.5;
    height: 80px;
    width: 100%;
}