* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #000;
}

#container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
}

#container > img,
#container > iframe,
#container > video {
    display: block;
    width: 100%;
    height: 100%;
}

#sleeves,
#kith,
#megaroni,
#smeg,
#jello {
    object-fit: contain;
}

#megangif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#faces {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

#sleeves {
    width: 100%;
    height: 100%;
}

#dealwithit {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

h1 {
    font-size: clamp(1rem, 3vmin, 2.5rem);
    line-height: 1.3;
    color: white;
    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000,
            2px 2px 0 #E40303,
            4px 4px 0 #FF8C00,
            6px 6px 0 #FFED00,
            8px 8px 0 #008026,
            10px 10px 0 #24408E,
            12px 12px 0 #732982;
}

#title,
#subtitle {
    position: absolute;
    width: 100%;
    margin: 0;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    text-align: center;
    overflow-wrap: break-word;
}

#title {
    top: max(10%, env(safe-area-inset-top));
}

#subtitle {
    bottom: max(10%, env(safe-area-inset-bottom));
}

#kith {
    width: 100%;
    height: 100%;
}

#megaroni,
#smeg,
#jello {
    width: 100%;
    height: 100%;
}

/* Keep the complete animation visible on phones, including landscape. */
@media (max-width: 768px), (max-height: 500px) {
    #megangif {
        object-fit: contain;
    }
}
