/* =========================================================
   PDFLooks - FAVICON CONVERTER
   favicon-converter.css
   HTML MATCHED VERSION
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #111827;
    background: #ffffff;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    width: 100%;
    height: 76px;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    display: flex;
    align-items: center;

    padding: 0 42px;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    display: block;

    width: auto;
    height: 55px;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation {
    margin-left: 65px;
}

.navigation ul {
    display: flex;
    align-items: center;

    gap: 30px;

    list-style: none;
}

.navigation a {
    color: #111111;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.navigation a:hover {
    color: #ed1c24;
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 24px;
}

.header-actions > a {
    color: #222222;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;
}

.header-actions > a:hover {
    color: #ed1c24;
}


/* =========================================================
   SIGN UP
========================================================= */

.signup-btn {
    min-width: 96px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 8px;

    background: #ed1c24;

    color: #ffffff !important;

    box-shadow:
        0 5px 14px rgba(237, 28, 36, 0.18);
}

.signup-btn:hover {
    background: #d81720;

    color: #ffffff !important;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-btn {
    display: none;

    width: 40px;
    height: 40px;

    border: none;

    background: transparent;

    color: #111111;

    font-size: 26px;

    cursor: pointer;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 18px;

    width: 230px;

    display: none;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.show-menu {
    display: flex;
}

.mobile-menu a {
    display: block;

    padding: 15px 20px;

    border-bottom: 1px solid #eeeeee;

    color: #111111;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
}

.mobile-menu a:hover {
    background: #fff5f5;

    color: #ed1c24;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.compress-page {
    width: 100%;

    min-height: calc(100vh - 76px);

    padding-top: 76px;

    background-color: #fffafa;

    background-image:
        radial-gradient(
            circle,
            rgba(237, 28, 36, 0.075) 2px,
            transparent 2px
        );

    background-size: 18px 18px;

    position: relative;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    width: 100%;

    min-height: 600px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    padding:
        70px 20px 55px;

    position: relative;

    z-index: 1;
}


/* =========================================================
   HERO HEADING
========================================================= */

.hero h1 {
    display: block;

    margin: 0 0 22px;

    color: #111111;

    font-size: 58px;

    line-height: 1.12;

    font-weight: 800;

    letter-spacing: -1.5px;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hero > p {
    display: block;

    margin: 0;

    color: #4b5563;

    font-size: 21px;

    line-height: 1.55;
}


/* =========================================================
   UPLOAD AREA
========================================================= */

.upload-area {
    width: 100%;

    min-height: 145px;

    margin-top: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}


/* =========================================================
   SELECT IMAGE BUTTON
========================================================= */

.select-btn {
    width: 480px;
    height: 135px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    border-radius: 14px;

    background: #ed1c24;

    color: #ffffff;

    font-size: 26px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(237, 28, 36, 0.22);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.select-btn:hover {
    background: #d81720;

    transform: translateY(-2px);
}

.select-btn:active {
    transform: translateY(0);
}


/* =========================================================
   FILE SVG
========================================================= */

.file-svg {
    width: 34px;
    height: 34px;

    flex-shrink: 0;
}


/* =========================================================
   CLOUD BUTTONS
========================================================= */

.cloud-buttons {
    position: absolute;

    left: calc(50% + 270px);

    top: 50%;

    transform: translateY(-50%);

    display: flex;
    flex-direction: column;

    gap: 12px;
}


.cloud-btn {
    width: 56px;
    height: 56px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: #ffffff;

    cursor: pointer;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cloud-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}


.drive-svg {
    width: 27px;
    height: 27px;

    display: block;
}


.dropbox-svg {
    width: 29px;
    height: 29px;

    display: block;
}


/* =========================================================
   DROP TEXT
========================================================= */

.drop-text {
    display: block;

    margin-top: 22px !important;

    color: #6b7280 !important;

    font-size: 17px !important;

    line-height: 1.5;
}


/* =========================================================
   SELECTED FILES SECTION
========================================================= */

.selected-files-section {
    width: min(900px, calc(100% - 40px));

    margin: 35px auto 0;

    padding: 25px;

    background: #ffffff;

    border-radius: 15px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);

    display: none;

    text-align: left;
}


/* =========================================================
   SELECTED FILES HEADER
========================================================= */

.selected-files-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.selected-files-header h2 {
    margin: 0;

    color: #111111;

    font-size: 20px;

    font-weight: 700;
}

.selected-files-header h2 span {
    color: #777777;

    font-weight: 500;
}

.total-size {
    color: #555555;

    font-size: 14px;

    white-space: nowrap;
}


/* =========================================================
   FILE LIST
========================================================= */

.selected-files-list {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 12px;
}


/* =========================================================
   SELECTED FILE CARD
========================================================= */

.selected-file-card {
    width: 100%;

    min-height: 82px;

    padding: 11px 14px;

    display: flex;
    align-items: center;

    gap: 14px;

    background: #ffffff;

    border: 1px solid #e4e7eb;

    border-radius: 11px;
}


/* =========================================================
   IMAGE PREVIEW
========================================================= */

.image-file-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f5f5;

    border: 1px solid #eeeeee;

    border-radius: 8px;
}

.selected-image-preview {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   FILE INFO
========================================================= */

.file-info {
    flex: 1;

    min-width: 0;
}

.file-name {
    color: #111111;

    font-size: 15px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.file-meta {
    margin-top: 5px;

    color: #6b7280;

    font-size: 13px;
}


/* =========================================================
   PREVIEW BUTTON
========================================================= */

.preview-btn {
    height: 40px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 8px;

    color: #222222;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;
}

.preview-btn:hover {
    border-color: #ed1c24;

    color: #ed1c24;
}


/* =========================================================
   REMOVE BUTTON
========================================================= */

.remove-file-btn {
    width: 35px;
    height: 35px;

    border: none;

    background: transparent;

    color: #999999;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;
}

.remove-file-btn:hover {
    color: #ed1c24;
}


/* =========================================================
   DROP/BROWSE SELECTED AREA
========================================================= */

.selected-drop-text {
    width: 100%;

    margin:
        14px 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    color: #777777;

    font-size: 14px;
}

.selected-drop-text .drop-or {
    color: #aaaaaa;
}

.selected-drop-text button {
    padding: 0;

    border: none;

    background: transparent;

    color: #ed1c24;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.selected-drop-text button:hover {
    text-decoration: underline;
}


/* =========================================================
   FAVICON OPTIONS
========================================================= */

.pdf-options-row {
    width: 100%;

    margin: 18px 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;
}


/* =========================================================
   OPTION GROUP
========================================================= */

.pdf-option-group {
    display: flex;
    align-items: center;

    gap: 9px;

    flex: 0 0 auto;
}


/* =========================================================
   OPTION LABEL
========================================================= */

.pdf-option-group > label {
    color: #111827;

    font-size: 14px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   OPTION SELECT
========================================================= */

.pdf-option-select {
    width: 185px;
    height: 44px;

    padding:
        0 34px 0 13px;

    border: 1px solid #d5dce5;

    border-radius: 8px;

    background: #ffffff;

    color: #123d75;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    outline: none;

    cursor: pointer;
}

.pdf-option-select:hover {
    border-color: #b8c2d0;
}

.pdf-option-select:focus {
    border-color: #287be8;

    box-shadow:
        0 0 0 3px
        rgba(40, 123, 232, 0.12);
}

.pdf-option-select option {
    color: #111827;

    background: #ffffff;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.file-actions {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 18px;

    margin-top: 20px;
}


/* =========================================================
   ADD FILES
========================================================= */

.add-files-btn {
    flex: 1;

    height: 58px;

    border: 1px solid #e1e4e8;

    border-radius: 10px;

    background: #ffffff;

    color: #ed1c24;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: background 0.2s ease;
}

.add-files-btn:hover {
    background: #fff5f5;
}

.plus-icon {
    margin-right: 8px;

    font-size: 24px;

    vertical-align: middle;
}


/* =========================================================
   CONVERT BUTTON
========================================================= */

.compress-btn {
    flex: 1.5;

    height: 58px;

    border: none;

    border-radius: 10px;

    background: #ed1c24;

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 7px 18px
        rgba(237, 28, 36, 0.20);
}

.compress-btn:hover {
    background: #d81720;
}

.compress-icon {
    margin-right: 8px;
}


/* =========================================================
   IMPORTANT:
   INITIAL PAGE MUST ALWAYS SHOW HERO
========================================================= */

.hero {
    display: flex !important;
}


/*
   Only selected-file mode can hide upload area.
*/

.compress-page.has-files .upload-area {
    display: none;
}

.compress-page.has-files .drop-text {
    display: none;
}

.compress-page.has-files .selected-files-section {
    display: block;
}


/* =========================================================
   CONVERTING SCREEN
========================================================= */

.compressing-screen {
    display: none;

    width: 100%;

    min-height: 500px;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    text-align: center;

    padding: 60px 20px;
}

.compressing-screen.active {
    display: flex;
}

.compressing-logo {
    margin-bottom: 40px;

    color: #111111;

    font-size: 30px;

    font-weight: 800;
}

.compressing-logo span {
    color: #ed1c24;
}

.compressing-screen h2 {
    margin-bottom: 12px;

    color: #111111;

    font-size: 28px;
}

.compressing-screen p {
    margin-bottom: 30px;

    color: #6b7280;

    font-size: 16px;
}


/* =========================================================
   SPINNER
========================================================= */

.loading-spinner {
    width: 62px;
    height: 62px;

    border:
        7px solid #eeeeee;

    border-top-color: #ed1c24;

    border-radius: 50%;

    animation:
        faviconSpin 0.9s linear infinite;
}

@keyframes faviconSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   DOWNLOAD SCREEN
========================================================= */

.download-screen {
    display: none;

    width: 100%;

    min-height: 500px;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    text-align: center;

    padding: 60px 20px;
}

.download-screen.active {
    display: flex;
}

.download-logo {
    margin-bottom: 30px;

    color: #111111;

    font-size: 30px;

    font-weight: 800;
}

.download-logo span {
    color: #ed1c24;
}

.download-screen h2 {
    margin-bottom: 12px;

    color: #111111;

    font-size: 29px;
}

.download-message {
    margin-bottom: 24px;

    color: #6b7280;

    font-size: 16px;
}


/* =========================================================
   DOWNLOAD CARD
========================================================= */

.download-file-card {
    min-width: 360px;

    margin-bottom: 20px;

    padding: 18px 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 11px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);
}

.download-file-card strong {
    font-size: 17px;
}

.download-file-card span {
    color: #6b7280;
}

.download-file-card small {
    display: inline-block;

    margin-top: 7px;

    color: #ed1c24;

    font-weight: 600;
}


/* =========================================================
   DOWNLOAD BUTTON
========================================================= */

.download-btn {
    min-width: 360px;

    height: 56px;

    padding: 0 28px;

    border: none;

    border-radius: 10px;

    background: #ed1c24;

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(237, 28, 36, 0.20);
}

.download-btn:hover {
    background: #d81720;
}


/* =========================================================
   ANOTHER IMAGE
========================================================= */

.another-pdf-btn {
    min-width: 360px;

    height: 52px;

    margin-top: 14px;

    padding: 0 24px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;
}

.another-pdf-btn:hover {
    background: #1d4ed8;
}


/* =========================================================
   SCREEN STATE
========================================================= */

/*
   IMPORTANT:
   Hero is visible by default.
*/

.compress-page.is-compressing .hero,
.compress-page.is-downloaded .hero {
    display: none !important;
}

.compress-page.is-compressing .compressing-screen {
    display: flex !important;
}

.compress-page.is-downloaded .download-screen {
    display: flex !important;
}

.compress-page.is-downloaded .compressing-screen {
    display: none !important;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;

    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-top: 1px solid #eeeeee;
}

.footer p {
    color: #555555;

    font-size: 16px;
}

.footer span {
    color: #ed1c24;

    font-weight: 600;
}

.footer b {
    margin: 0 8px;

    color: #999999;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .header {
        padding: 0 28px;
    }

    .navigation {
        margin-left: 40px;
    }

    .navigation ul {
        gap: 20px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .cloud-buttons {
        left: calc(50% + 250px);
    }

    .pdf-options-row {
        gap: 14px;
    }

    .pdf-option-select {
        width: 170px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    /* HEADER */

    .header {
        height: 68px;

        padding: 0 16px;
    }

    .logo img {
        height: 45px;
    }

    .navigation {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .header-actions > a:first-child {
        display: none;
    }

    .signup-btn {
        min-width: 78px;

        height: 38px;

        padding: 0 12px;

        font-size: 13px;
    }

    .menu-btn {
        display: block;
    }


    /* MAIN */

    .compress-page {
        min-height:
            calc(100vh - 68px);

        padding-top: 68px;
    }


    /* HERO */

    .hero {
        min-height: auto;

        padding:
            52px 14px 45px;
    }

    .hero h1 {
        font-size: 36px;

        letter-spacing: -0.8px;

        margin-bottom: 15px;
    }

    .hero > p {
        font-size: 16px;

        line-height: 1.55;
    }

    .hero > p br {
        display: none;
    }


    /* UPLOAD */

    .upload-area {
        margin-top: 34px;
    }

    .select-btn {
        width: 280px;

        height: 88px;

        font-size: 18px;

        border-radius: 12px;
    }

    .file-svg {
        width: 25px;
        height: 25px;
    }


    /* CLOUD */

    .cloud-buttons {
        position: static;

        transform: none;

        margin-left: 10px;

        gap: 8px;
    }

    .cloud-btn {
        width: 42px;
        height: 42px;
    }

    .drive-svg {
        width: 21px;
        height: 21px;
    }

    .dropbox-svg {
        width: 23px;
        height: 23px;
    }


    /* DROP */

    .drop-text {
        margin-top: 18px !important;

        font-size: 15px !important;
    }


    /* FILE SECTION */

    .selected-files-section {
        width:
            calc(100% - 20px);

        margin-top: 25px;

        padding: 17px;
    }

    .selected-files-header {
        align-items: flex-start;
    }

    .selected-files-header h2 {
        font-size: 17px;
    }

    .total-size {
        font-size: 12px;
    }


    /* FILE CARD */

    .selected-file-card {
        gap: 9px;

        padding: 9px;
    }

    .image-file-icon {
        width: 48px;
        height: 48px;
    }

    .file-name {
        font-size: 13px;
    }

    .file-meta {
        font-size: 12px;
    }

    .preview-btn {
        height: 34px;

        padding: 0 9px;

        font-size: 12px;
    }

    .remove-file-btn {
        width: 28px;
        height: 28px;

        font-size: 21px;
    }


    /* DROP TEXT */

    .selected-drop-text {
        flex-wrap: wrap;

        font-size: 13px;
    }


    /* OPTIONS */

    .pdf-options-row {
        width: 100%;

        margin:
            16px 0 18px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 11px;
    }

    .pdf-option-group {
        width: 100%;

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 8px;
    }

    .pdf-option-group > label {
        font-size: 13px;
    }

    .pdf-option-select {
        width: 210px;

        min-width: 0;

        max-width: 60%;

        height: 42px;

        font-size: 13px;
    }


    /* ACTIONS */

    .file-actions {
        gap: 10px;

        margin-top: 18px;
    }

    .add-files-btn,
    .compress-btn {
        height: 50px;

        font-size: 14px;
    }


    /* CONVERTING */

    .compressing-screen {
        min-height: 500px;

        padding: 50px 18px;
    }

    .compressing-logo {
        font-size: 25px;
    }

    .compressing-screen h2 {
        font-size: 23px;
    }

    .compressing-screen p {
        font-size: 14px;
    }


    /* DOWNLOAD */

    .download-screen {
        min-height: 500px;

        padding: 50px 18px;
    }

    .download-logo {
        font-size: 25px;
    }

    .download-screen h2 {
        font-size: 23px;
    }

    .download-message {
        font-size: 14px;
    }

    .download-file-card {
        width:
            calc(100% - 20px);

        min-width: 0;
    }

    .download-btn {
        width:
            calc(100% - 20px);

        min-width: 0;
    }

    .another-pdf-btn {
        width:
            calc(100% - 20px);

        min-width: 0;
    }


    /* FOOTER */

    .footer {
        min-height: 62px;
    }

    .footer p {
        font-size: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .header {
        padding: 0 12px;
    }

    .logo img {
        height: 42px;
    }

    .signup-btn {
        min-width: 70px;

        padding: 0 9px;

        font-size: 12px;
    }

    .hero {
        padding-top: 45px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero > p {
        font-size: 15px;
    }

    .upload-area {
        gap: 5px;
    }

    .select-btn {
        width: 235px;

        min-width: 0;

        height: 82px;

        font-size: 16px;
    }

    .cloud-buttons {
        margin-left: 5px;
    }

    .cloud-btn {
        width: 38px;
        height: 38px;
    }

    .selected-files-section {
        width:
            calc(100% - 14px);

        padding: 14px;
    }

    .selected-files-header {
        flex-direction: column;
    }

    .total-size {
        align-self: flex-end;
    }

    .preview-btn {
        display: none;
    }

    .file-actions {
        flex-direction: column;
    }

    .add-files-btn,
    .compress-btn {
        width: 100%;

        flex: none;
    }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 340px) {

    .pdf-option-group {
        flex-direction: column;

        align-items: stretch;
    }

    .pdf-option-group > label {
        width: 100%;
    }

    .pdf-option-select {
        width: 100%;

        max-width: 100%;
    }

}

/* =========================================================
   FAVICON PAGE - CORRECT STATE SYSTEM
   IMPORTANT:
   .hero must NEVER be hidden because
   converting-screen and download-screen
   are inside .hero.
========================================================= */


/* ---------------------------------------------------------
   MAIN FAVICON PAGE
--------------------------------------------------------- */

.favicon-page {
    width: 100%;

    min-height: calc(100vh - 76px);

    padding-top: 76px;

    background-color: #fffafa;

    background-image:
        radial-gradient(
            circle,
            rgba(237, 28, 36, 0.075) 2px,
            transparent 2px
        );

    background-size: 18px 18px;

    position: relative;
}


/* ---------------------------------------------------------
   NORMAL HERO
--------------------------------------------------------- */

.favicon-page .hero {
    width: 100%;

    min-height: 600px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding:
        70px 20px 55px;

    position: relative;

    z-index: 1;
}


/* ---------------------------------------------------------
   DEFAULT STATE
--------------------------------------------------------- */

.favicon-page
.selected-files-section {
    display: none;
}

.favicon-page
.compressing-screen {
    display: none;
}

.favicon-page
.download-screen {
    display: none;
}


/* ---------------------------------------------------------
   FILE SELECTED STATE
--------------------------------------------------------- */

.favicon-page.has-files
.selected-files-section {
    display: block;
}


/*
   When files are selected,
   hide the big upload button and
   drop text.
*/

.favicon-page.has-files
.upload-area {
    display: none;
}

.favicon-page.has-files
.drop-text {
    display: none;
}


/* ---------------------------------------------------------
   CONVERTING STATE
--------------------------------------------------------- */

/*
   DO NOT hide .hero here.
*/

.favicon-page.is-compressing
.upload-area {
    display: none !important;
}

.favicon-page.is-compressing
.drop-text {
    display: none !important;
}

.favicon-page.is-compressing
.selected-files-section {
    display: none !important;
}


/* Show converting screen */

.favicon-page.is-compressing
.compressing-screen {
    display: flex !important;

    width: 100%;

    min-height: 500px;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    text-align: center;

    padding: 60px 20px;
}


/* ---------------------------------------------------------
   DOWNLOAD / READY STATE
--------------------------------------------------------- */

/*
   Again:
   DO NOT hide .hero.
*/

.favicon-page.is-downloaded
.upload-area {
    display: none !important;
}

.favicon-page.is-downloaded
.drop-text {
    display: none !important;
}

.favicon-page.is-downloaded
.selected-files-section {
    display: none !important;
}


/* Hide converting screen */

.favicon-page.is-downloaded
.compressing-screen {
    display: none !important;
}


/* Show download screen */

.favicon-page.is-downloaded
.download-screen {
    display: flex !important;

    width: 100%;

    min-height: 500px;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    text-align: center;

    padding: 60px 20px;
}


/* ---------------------------------------------------------
   IMPORTANT OVERRIDE
--------------------------------------------------------- */

/*
   Old CSS had:

   .hero {
       display: flex !important;
   }

   That's okay ONLY because we never hide hero.
   State classes control its CHILDREN instead.
*/


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.favicon-page + .footer {
    position: relative;
}

/* =========================================================
   FAVICON READY PAGE
   Hide only the converter heading/subtitle
   Keep the download screen visible
========================================================= */

.favicon-page.is-downloaded .hero > h1,
.favicon-page.is-downloaded .hero > p {
    display: none !important;
}


/* Keep download screen visible and centered */

.favicon-page.is-downloaded .download-screen {
    display: flex !important;

    width: 100%;

    min-height: 500px;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 40px 20px;
}


/* Make sure converting screen stays hidden */

.favicon-page.is-downloaded .compressing-screen {
    display: none !important;
}


/* Selected/upload area stays hidden */

.favicon-page.is-downloaded .selected-files-section {
    display: none !important;
}

.favicon-page.is-downloaded .upload-area,
.favicon-page.is-downloaded .drop-text {
    display: none !important;
}