* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.new-status-popup {
    height: 100vh;
    width: 100%;
    padding: 1em;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, pointer-events 0s ease 0.3s;
    z-index: 9999;
    padding-top: 4.5em;
}

.new-status-popup.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
    flex-direction: column;
}

.file-upload {
    height: 80%;
    width: 100%;
    border-radius: 1em;
    border: 1px solid #777;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.file-upload .uploaded-media {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.file-upload .uploaded-media img, .file-upload .uploaded-media video {
    height: 100%;
    width: 100%;
}

label[for="triggerFileUpload"] {
    height: 100%;
    width: 100%;
    background: rgb(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
}

.text-area {
    display: flex;
    gap: 1em;
    margin: 1em 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 2em;
}

.text-area input {
    height: 3em;
    border: 1px solid #333;
    flex: 1;
    border-radius: 9999px;
    padding: 0 1em;
}

#uploadStory {
    height: 3.3em;
    width: 3.3em;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 50%;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #000;
    font-weight: bolder;
    font-size: 1.5em;
    cursor: pointer;
}

.new-status-popup.show .text-area {
    opacity: 1;
}

.new-status-popup.show .file-upload {
    transform: scale(1.05);
}
