*{
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}
*::after,::before{
    box-sizing: border-box;
}

$main: #4CAF50;
$text: #121212;

::selection{
    background: $main;
    color: #fff;
}

body{
    width: 100%;
    height: 100lvh;
    display: flex;
    justify-content: center;
    align-items: center;

    a{
        text-decoration: none;
        color: $main;
        cursor: pointer;  

        &::after{
            content: "»";
            font-size: 10px;
            top: -1px;
            color: $main;
        }
    }

    .container{
        display: flex;
        flex-direction: column;
        width: 400px;
        height: auto;
        background-color: #f5f5f5;
        border-radius: 5px;
        padding: 10px;
        gap: 5px;

        .text{
            width: 100%;
            height: max-content;
            display: flex;
            align-items: center;
            flex-direction: column;
            gap: 10px;

            h1{
                font-size: 24px;
                color: $text;
            }

            p{
                font-size: 18px;
                color: $text;
            }

            label{
                font-size: 10px;
                color: $text;
            }
        }

        .search{
            width: 100%;
            height: 40px;

            input{
                width: 100%;
                height: 100%;
                border: none;
                outline: none;
                font-size: 18px;
                text-align: center;
            }
        }

        .result{
            width: 100%;
            height: 0px;
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 5px;
            transition: 0.5s cubic-bezier(0.87, -1.38, 0.03, 1.54);
            img{
                width: 40%;
                mix-blend-mode: darken;
            }
            &.box{
                height: 200px;
            }
        }

        .btns{
            width: 100%;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 5px;
            .btn{
                height: 40px;
                border: none;
                outline: none;
                background-color: $main;
                color: #fff;
                text-align: center;
                padding: 5px;
                cursor: pointer;
                font-size: 18px;
                margin-top: 10px;
                flex: 1;
                opacity: 0.8;
                pointer-events: none;
                border-radius: 5px;

                &::selection{
                    background: #fff;
                    color: $main;
                }

                &.download{
                    filter: grayscale(1);
                }

                &.valid{
                    opacity: 1;
                    pointer-events: auto;
                }
            }
        }
    }
}