:root {
    --text-col: hsl(0, 0%, 90%);
    --text-col-muted: hsl(0, 0%, 70%);
    --bg-col: hsl(0, 0%, 10%);
    --bg-col-secondary: hsl(0, 0%, 15%);

    --debugBorder: 1px solid hsla(0, 100%, 50%, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    background: none;
    color: var(--text-col);
}

html,
body {
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    background-color: var(--bg-col);
}

main {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#startBtn {
    padding: 25px;
    font-size: 48px;
    font-weight: 100;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

#startBtn:hover {
    cursor: pointer;
    color: #00b8aa;
}

#startBtn.disabled {
    transform: scale(0.95);
    animation: fadeOut 0.3s ease forwards;
}

#results {
    width: 80vw;
    height: 40vh;
    max-width: 600px;
    max-height: 400px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mainResults {
    width: 100%;
    height: 60%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#mainResults::after {
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    left: 50%;
    bottom: 0%;
    transform: translateX(-50%);
    background-color: hsl(0, 0%, 50%);
}

#extraResults {
    width: 100%;
    height: 40%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 100;
}

.tile {
    height: 60%;
    aspect-ratio: 2 / 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    gap: 10px;
    background-color: var(--bg-col-secondary);
}

.type {
    font-size: 12px;
    font-weight: 200;
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--text-col-muted);
}

.value {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value.show {
    opacity: 1;
}

#mainResults .value {
    font-size: 40px;
    font-weight: 800;
}

#extraResults .value {
    font-size: 20px;
}

.bitrate {
    font-size: 12px;
    font-weight: 200;
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: var(--text-col-muted);
}

/* ANIMATIONS */
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}