:root{
    --background: #f2f6fd;
    --font: #454f60;
    --link: #719be6;
    --link-hover: #8ab4ff;
    --input: #566378;
    --button: #bdd1f3;
    --button-hover: #cddcf6;
    --border: #d7d9dd;
    --disable-bg: #f2f2f2;
}

.container{
    color: var(--font);
    background: var(--white);
    max-width: 640px;
    width: 100%;
    min-height: 150px;
    padding: 32px;
    margin-top: 32px;;
    text-align: center;
    border-radius: 5px;

    h1{margin-top: 0;}
    a{text-decoration: none; color: var(--link);}
    a:hover{color: var(--link-hover);}

    .row{
        #nav-back{
            text-align: left;
            margin-bottom: 5px;

            ion-icon{
                font-size: 20px;
                vertical-align: -0.20em;
            }
        }
    }

    #input-section{
        label{
            text-align: left;
            display: block;

            input{
                display: block;
                color: var(--input);
                width: calc(100% - 10px);
                max-width: 100%;
                font-size: 1.4rem;
                padding: 5px;
                border-radius: 5px;
                border: 1px solid var(--border);
                outline: none;
                margin-top: 5px;
                margin-bottom: 10px;
            }

            input:focus{
                border: 1px solid #a4a6aa;
            }
            
        }

        #input.error{
            display: block;
            color: red;
            margin-bottom: 10px;
        }
    }

    #output-section{
        display: none;
        
        .row{
            display: flex;
            flex-direction: row;
            align-items: center;
        }
        .type{
            margin-right: 5px;
            width: 100px;
            margin-top: -5px;
            text-align: right;
        }
        .output{
            display: flex;
            align-items: center;
            padding: 0 10px;
            color: var(--input);
            background-color: var(--disable-bg);
            width: 400px;
            height: 35px;
            font-size: 1rem;
            vertical-align: middle;
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
            border: 1px solid var(--border);
            outline: none;
            overflow-y: hidden;
            overflow-x: auto;
        }
        .output::-webkit-scrollbar{
            height: 5px;
        }
        .output::-webkit-scrollbar-track {
            background-color: rgba(0, 0, 0, 0.05);
        }
        .output::-webkit-scrollbar-thumb{
            background-color: rgba(0, 0, 0, 0.15);
        }
        .output:not(:last-child){
            margin-bottom: 10px;
        }   
        button.copy{
            height: 100%;
            display: block;
            background: var(--link);
            border: 1px solid var(--link);
            color: white;
            border: none;
            outline: none;
            height: 35.5px;
            width: 110px;
            margin-top: -10px;
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
            cursor: pointer;
        }
        button.copy:hover{
            background-color: var(--link-hover);
        }
    }

    #generate-bar{
        text-align: left;

        #generate{
            background: var(--analogous-1);
            color: var(--white);
            font-size: 1.1rem;
            padding: 12px 35px;
            outline: 0;
            border: 0;
            border-radius: 25px;
            cursor: pointer;
            margin-bottom: 20px;
        }
        #generate:hover{
            background: var(--analogous-1-hover);
        }
    }
}

@media only screen and (max-width: 699px) {
    .container{
        max-width: calc(100% - 100px);
        margin-bottom: 9em;

        .row{
            #nav-back{
                margin-bottom: 20px;
                display: block;
            }
        }

        #output-section {
            .row {
                flex-direction: column;

                .type{text-align: center;}
                .output{
                    width: 250px;
                    border-top-right-radius: 5px;
                    border-bottom-right-radius: 5px;
                }
                button.copy{
                    margin-top: 0px;
                    border-top-left-radius: 5px;
                    border-bottom-left-radius: 5px;
                }
            }
            .row:not(:last-child){
                margin-bottom: 30px;
            }
        }

        #generate-bar{
            text-align: center;
        }

    }
}