/* GENERAL STYLES */

* {
    margin: 0;
    padding: 0;
    font-family: var(--main-font);
}

:root {
    --bg-color: rgb(0, 133, 125);
    --chart-color-one: rgb(84, 216, 255);
    --chart-color-two: rgb(163, 161, 255);
    --main-font: 'Roboto', sans-serif;
}

/* WEB WERSION */

/* navbar in head */

.nav-items {
    display: flex;
    justify-content: flex-end;
    background-color: var(--bg-color);
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    transition: padding 1s;
}

a:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 133, 125);
    padding: 0.75rem;
}

.logo, .item {
    margin: 1rem;
}

.logo {
    flex-grow: 1;
    font-weight: 700;
}

/* main part */

main {
    width: 90%;
    margin: 0 auto;
}

.intro-upper, .intro-lower {
    margin-top: 2rem;
}

.upper-half, .middle-half, .converter {
    display: flex;
}

.upper-half {
    margin-top: 2rem;
    justify-content: space-around;
}

select, option, input[type="date"], input[type="text"] {
    border: 1px solid var(--bg-color);
    color: var(--bg-color);
    padding: 0.5rem;
    width: 12rem;
    text-align: center;
}

input:focus {
    background-color: rgba(255, 251, 0, 0.233);
}

.error {
    text-align: center;
    padding: 8px;
    color: rgb(255, 0, 0);
}

#analyze, #convert  {
    background-color: var(--bg-color);
    color: rgb(255, 255, 255);
    width: 15rem;
    padding: 0.5rem;
    border: none;
}

.middle-half {
    justify-content: center;
    margin-top: 2rem;
}

.converter {
    justify-content: center;
}

.btn {
    text-align: center;
}

.one, .two, .three {
    margin: 1rem;
}

.rate {
    width: 80%;
    margin: 2rem auto;
    text-align: center;
    border: 1px solid #000;
}

.rate > h2 {
    padding: 1rem;
}

/* footer */

.footer-menu {
    display: flex;
    justify-content: center;
    background-color: var(--bg-color);
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: 500;
}

.foot-logo, .foot-arrow {
    flex-grow: 1;
}

.foot-logo, .foot-item, .foot-arrow {
    margin: 1rem;
}

.foot-arrow {
    text-align: right;
    background-color: rgb(0, 133, 125);
    transition: all 0.5s;
}

.foot-arrow:hover {
    color: rgb(0, 133, 125);
    background-color: rgb(255, 255, 255);
}

/* TABLET VERSION */

@media only screen and (max-width: 1068px) {
    .logo, .item, .foot-logo, .foot-item, .foot-arrow {
        font-size: 0.85rem;
    }

    .upper-half, .converter {
        margin-top: 2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    label, input {
        margin: 0.5rem;
    }

    .rate {
        width: 60%;
        margin: 2rem auto;
    }

    .rate > h1 {
        padding-top: 1rem;
    }
    
    .lower-half {
        margin-top: 0;
    }
    .foot-arrow {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
    }
}

/* MOBILE VERSION */

@media only screen and (max-width: 540px) {
    .item {
        display: none;
    }

    .upper-half {
        text-align: center;
        flex-direction: column;
        align-content: center;
    }

    .lower-half {
        margin-top: 0;
    }

    .one, .two {
        margin: 0.5rem;
    }

    .footer-menu {
        flex-direction: column;
        align-items: center;
    }

    .foot-arrow {
        position: fixed;
        bottom: 0;
        right: 1rem;
        background-color: rgb(0, 133, 125);
    }
}