/*
    Copyright (c) BlazeInferno64 --> https://github.com/blazeinferno64
*/
:root {
    --ff: "Poppins", sans-serif;
    --gradient: linear-gradient(90deg, rgb(3, 233, 156), 74%, rgb(0, 153, 255));
}
*,
*::after,
*::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
a{
    text-decoration: none;
    color: inherit;
}
button {
    outline: none;
}
body{
    font-family: var(--ff);
    background: var(--gradient);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
}
video {
    object-fit: cover;
}
.container {
    background: rgba(30,30,30);
    border-radius: .3rem;
    box-shadow: 0 10px 20px 0 rgba(0,0,0,.6);
    transition: all .3s ease-in-out;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #fff;
    width: fit-content;
    width: 450px;
}
.container .header{
    width: 100%;
    padding: .3rem .5rem;
    user-select: none;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container .header p{
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.container .main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}
.container .main video{
    width: 100%;
    height: 300px;
}
.container .main .controls{
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: .5rem;
}
.container .main .controls .output {
    width: 90%;
    text-align: center;
    font-size: 1.3rem;
    user-select: none;
    padding: .5rem 1rem;
    background: #2a2d2e;
    border-radius: .3rem;
    transition: all .3rem ease-in-out;
    white-space: nowrap;
    overflow: auto;
}
.controls #info {
    width: 400px;
}
.controls .output::-webkit-scrollbar {
    background: transparent;
}
.controls .output::-webkit-scrollbar-thumb {
    background: #4b494d;
    border-radius: 5rem;
}
.controls .output::-webkit-scrollbar-thumb:hover {
    background: hsl(270, 3%, 39%);
}
.controls .output::-webkit-scrollbar-thumb:active {
    background: hsl(270, 3%, 49%);
}
.container .main .controls .btns {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .3rem .5rem;
    margin-top: .5rem;
    gap: 5px;
    margin-bottom: .3rem;
}
.container .main .controls button {
    padding: .5rem 1rem;
    user-select: none;
    font-size: 1.13rem;
    border-radius: .2rem;
    cursor: pointer;
    transition: background .1s ease-in-out;
}
.open, .reload{
    width: 50%;
}
.open {
    background: transparent;
    color: rgb(7, 159, 93);
    border: 2px solid rgb(7, 159, 93);
}
.open:hover {
    background: hsl(154, 92%, 27%);
    color:  #fff;
    border-color: hsl(154, 92%, 27%);
    box-shadow: 0 10px 20px 0 #111;
}
.reload {
    background: transparent;
    border: 2px solid rgb(4, 77, 194);
    color: rgb(4, 77, 194);
}
.reload:hover {
    background: hsl(217, 96%, 34%);
    color: #fff;
    border-color: hsl(217, 96%, 34%);
    box-shadow: 0 10px 20px 0 #111;
}
.open:active, .reload:active {
    scale: .98;
}
.error{
    color: rgb(234, 22, 85);
}
.ok {
    color: rgb(0, 246, 135);
}

@media (max-width: 400px) {
    .output #info {
        width: 95%;
    }
}
@media (max-width: 450px) {
    .container {
        width: 93%;
    }
    .controls .btns{
        width: 100%;
        flex-direction: column;
    }
    .controls .btns button{
        width: 95%;
    }
}