* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    font: 100%/1.5 system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.preview-visible {
    background-color: #f5f5f5;
}

.upload-form {
    width: 100%;
}

@media screen and (min-width: 768px) {
    .upload-form {
        width: 400px;
    }
}

.upload-form > div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper {
    padding: 0.5em 1em;
    background-color: #000;
    color: #fff;
    border-radius: 0.25em;
    position: relative;
    cursor: pointer;
    margin-left: 1em;
}

.input-wrapper:before {
    content: 'Choose PDF file';
}

.input-wrapper input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

#pdf-preview-wrapper {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    position: absolute;
    z-index: 999999;
    background-color: #f5f5f5;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#pdf-preview-wrapper.visible {
    display: flex;
}

#pdf-preview-close {
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #000;
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 30px;
}