:root {
    --color-dark: #000;
    --color-light: #FFF;
    --color-back: #DCEBFE;
    --color-green: #1cda35;
    --color-blue: #00AAE8;
    --color-marin: #0e3ada;
    --color-yellow: #ffee00;
    --color-orange: #ff4000;
    --font-mono: "JetBrains Mono", monospace;
    --font-barlow: "Barlow Condensed", sans-serif;
    --size-s: 2.5vh;
    --size-m: 5vw;
}

/* reset */
* {
    margin: 0;
    padding: 0;
    color: inherit;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
html {
    width: 100%;   
}
body {
    height: max-content;
    width: 100dvw;
    overflow-x: hidden;
    position: relative;
}
li, a {
    list-style: none;
    text-decoration: none;
}

.main {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    display: grid;
    grid-template-rows: 20% 80%;
    grid-template-columns: 100%;
    background-image:
      linear-gradient(var(--color-marin) 2px, transparent 2px),
      linear-gradient(to right, var(--color-marin) 2px, transparent 2px);
    background-size: 50px 50px;
    background-color: var(--color-back);
}

.container-title {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 5vw;
}
    h1 {
        transform: scaleY(1.4);
        font-size: var(--size-m);
        font-family: var(--font-barlow);
        text-transform: uppercase;
        letter-spacing: -4px;
    }
    p {
        font-family: var(--font-mono);
        background: rgba(220, 235, 254, 0.1);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        transform: rotate(-2deg);
        border: 3px solid #000;
        box-shadow: 6px 6px 0px #000;
        padding: 1vh 2vw;
    }
.container-control {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    
}
    .container-flex {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* size box */
    .base-size, .final-size {
        position: absolute;
        bottom: 28vh;
        right: -4vw;
        width: max-content;
        height: max-content;
        font-family: var(--font-mono);
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(220, 235, 254, 0.1);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        transform: rotate(-2deg);
        border: 3px solid #000;
        box-shadow: 6px 6px 0px #000;
        padding: 1vh 2vw;
    }
    .hidden {
        opacity: 0;
    }
        .custom-input,.button-convert, .a-download {
            padding: 2vh 2vw;
            font-size: var(--size-s);
            font-family: var(--font-mono);
            text-transform: uppercase;
        }
        .custom-input:focus,.button-convert:focus, .a-download:focus {
            outline: 2px solid #000;
            outline-offset: 2px;
        }
 
/* Input file */
.input-container {
    position: relative;
}
    .custom-input {
        background-color: var(--color-yellow);
    }
    .input-file {
        position: absolute;
        top: 46%;
        left: 50%;
        transform: translate(-50%);
        font-size: 5vh;
        width: 19vw;
        opacity: 0;
        z-index: 66;
    }
        input[type=file]::-webkit-file-upload-button {
            cursor: pointer;
        }
/* Button convert */
.button-convert {
    border: none;  
}
    .button-convert.open {
        background-color: var(--color-green);
        cursor: pointer;
    }
    .button-convert.close {
        pointer-events: none;
        background-color: var(--color-back);
    }
/* Download link */
.a-download {
    border: none;
}
    .a-download.open {
        background-color: var(--color-blue);
        cursor: pointer;
    }
    .a-download.close {
        pointer-events: none;
        background-color: var(--color-back);
    }