/* ==========================================================================
   #URL SHORTENER STYLES
   ========================================================================== */

/**
 *
 * Inheriting box sizing slightly better best-practice
 * https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
 *
 */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* Custom Properties
   ========================================================================== */

:root {
    --black: #000000;
    --blue: #46ACCA;
    --brown: #D49667;
    --red: #980100;
    --green: #39ac31;
    --orange: #ff6347;
    --brown: #553c2b;
    --white: #ffffff;
}


/* Body
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Myriad Pro', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.4;
}

/* Top Section
   ========================================================================== */

.form-section,
.result-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-section {
    /*height: 500px;*/
    /*border-bottom: 1px solid #ddd;*/
}

.page-title {
    margin-bottom: 15px;
    font-size: 39px;
}

.submit-button {
    display: block;
    opacity: 0.8;
}

.submit-button:hover {
    opacity: 1;
}

.url-form {
    width: 100%;
    max-width: 696px;
    text-align: center;
}

.url-input {
    width: 88%;
    border: 1px solid var(--green);
    border-radius: 5px;
    padding: 10px 10px;
    font-size: 20px;
    height: 45px;
    margin-top: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.id-input {
    width: 88%;
    border: 1px solid var(--green);
    border-radius: 5px;
    padding: 10px 10px;
    font-size: 20px;
    height: 45px;
    margin-top: 5px;
    margin-bottom: 5px;
    align-items: center;
}

.submit-button {
    width: 260px;
    height: 56px;
    font-size: 26px;
    font-weight: 700;
    border: 1px solid var(--green);
    background-color: var(--green);
    color: white;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    border-radius: 5px;
    text-transform: uppercase;
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

.hint-title {
    text-align: center;
    color: var(--orange);
    overflow: auto;
    align-items: center;
}

.help-title {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    color: var(--green);
    overflow: auto;
    align-items: center;
}

.result {
    margin-top: 5px;
    /*max-width: 600px;*/
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: var(--brown);
    border: 5px solid var(--brown);
    border-radius: 5px;
    text-align: center;
    overflow: auto;
    align-items: center;
}

.short-url {
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    overflow: auto;
    margin-top: 15px;
    /*max-width: 600px;*/
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: var(--brown);
    border: 5px solid var(--brown);
    border-radius: 5px;
    text-align: center;
    align-items: center;
}

.short-url:hover {
    color: var(--green);
    cursor: pointer;
}

.g-recaptcha {
    margin-top: 15px;
    margin-bottom: 15px;
    align-items: center;
    text-align: center;
    display: inline-block;
    max-height: 100px;
}

.footer {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    /*color: var(--green);*/
    overflow: auto;
    align-items: center;
    font-size: 15px;
    vertical-align: middle;
}

.footer a {
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    vertical-align: middle;
}

.footer img {
    opacity: 0.6;
}

.footer img:hover {
    cursor: pointer;
    opacity: 1;
    /*background-color: var(--green);*/
}

.loading {
    margin-top: 5px;
    text-align: center;
    align-items: center;
}

.logoRgl {
    margin-top: 5px;
    text-align: center;
    align-items: center;
}

/* Dropdown Button */
.dropbtn {
    /*color: var(--white);*/
    /*background-color: var(--green);*/
    padding: 5px 5px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    /*top: 5px;*/
    /*left: 5px;*/
    border-radius: 5px;
}

/* Dropdown button on hover & focus */
.dropbtn:hover,
.dropbtn:focus {
    color: var(--green);
    background-color: var(--black);
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    float: right;
    position: absolute;
    display: inline-block;
    top: 10px;
    /*left: 5px;*/
    right: 10px;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--green);
    z-index: 10;
    cursor: pointer;
    border-radius: 5px;
    /*top: 5px;*/
    /*left: 55px;*/
    right: 50px;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: white;
    padding: 10px 10px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    /*font-weight: bold;*/
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    border-radius: 5px;
    color: var(--green);
    background-color: black;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
    display: block;
}
