@import url('https://fonts.googleapis.com/css2?family=Outfit&display=swap');

html{
    --light-background-color: rgb(250, 250, 250);
    --light-section-background-color: white;
    --light-search-background-color: white;
    --light-icon-color: black;
    --light-text-color: black;

    --dark-background-color: rgb(33, 33, 36);
    --dark-section-background-color: rgb(29, 29, 32);
    --dark-search-background-color: rgb(33, 35, 41);
    --dark-icon-color: rgb(226, 201, 120);
    --dark-text-color: rgba(223, 204, 141, 0.849);

    --navbar-background-color: rgb(53, 140, 139);
}

body{
    background-color: var(--light-background-color);
}
@media only screen and (hover: none) and (pointer: coarse){
    body{
        background-color: white;
    }
}

#body{
    min-height: 100vh;
}

#site{
    width: 95%;
    max-width: 800px;

    margin-left: auto;
    margin-right: auto;

    margin-top: 170px;

    padding: 0 50px 10px 50px;
}
@media only screen and (hover: none) and (pointer: coarse){
    #site{
        width: 100%;
        max-width: 100vw;

        margin-top: 300px;
    }
}

.section{
    padding: 20px;
    margin-bottom: 30px;
    
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.021), 0 6px 20px 0 rgba(0, 0, 0, 0.116);

    background-color: var(--light-section-background-color);
}
@media only screen and (hover: none) and (pointer: coarse){
    .section{
        padding: 60px 50px;
        margin-top: 40px;

        border-radius: 40px;
    }
}

.form-control{
    font-family: 'Outfit', sans-serif;
}
@media only screen and (hover: none) and (pointer: coarse){
    .form-control{
        font-size: 45px;

        border: 2px rgb(200, 200, 200) solid;
        border-radius: 20px;

        padding: 20px;
        padding-left: 30px;
    }
}

.border-icon{
    height: 100%;

    padding: 5px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 17px;

    color: var(--light-icon-color);
    background-color: rgb(247, 247, 247);
    
    border-radius: 7px 0px 0px 7px;
    border: 1px rgb(206, 206, 206) solid;
    border-right: 0;
}
@media only screen and (hover: none) and (pointer: coarse){
    .border-icon{
        font-size: 45px;

        border: 2px rgb(207, 207, 207) solid;
        border-right: 0;
        border-radius: 20px;

        padding: 20px;
    }
}

.borderless-icon{
    padding: 5px;
    margin: 0;
    font-size: 17px;

    color: var(--light-icon-color);
}
@media only screen and (hover: none) and (pointer: coarse){
    .borderless-icon{
        font-size: 35px;
    }
}

/* does not turn yellow in dark mode */
.button-icon{
    padding: 5px;
    margin: 0;
    font-size: 17px;

    color: var(--light-icon-color);
}
@media only screen and (hover: none) and (pointer: coarse){
    .button-icon{
        margin-left: 15px;
        font-size: 35px;
    }
}

.x-icon{
    margin: -15px;
    padding: 0;
    font-size: 17px;

    color: rgb(250, 85, 85);
}
.check-icon{
    margin: -15px;
    padding: 0;
    font-size: 17px;

    color: rgb(36, 184, 31);
}

.field-header{
    color: var(--light-text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;

    padding: 5px;
    margin: 0;
}
@media only screen and (hover: none) and (pointer: coarse){
    .field-header{
        font-size: 37px;
    }
}

.field-header-light{
    color: black;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 400;
}
@media only screen and (hover: none) and (pointer: coarse){
    .field-header-light{
        font-size: 30px;
    }
}

.btn{
    font-family: 'Outfit', sans-serif;
}
/* index & mitarbeiter */
.add-button{
    width: 100%;
    border-radius: 20px;

    background-color: var(--navbar-background-color);
}
@media only screen and (hover: none) and (pointer: coarse){
    .add-button{
        margin-top: 20px;
        font-size: 0;

        width: 110px;
        height: 110px;
        text-align: center;

        border-radius: 100px;
    }
    .add-button i{
        font-size: 48px;
        margin: 0;
    }
}
@media (max-width: 777px){
    .add-button{
        font-size: 0;
        
        height: 40px;
        width: 40px;
    }
    .add-button i{
        font-size: 18px;
        margin: 0;
        margin-left: -7px;
    }
}

@media only screen and (hover: none) and (pointer: coarse){
    .edit-button{
        font-size: 37px;
        padding: 25px 80px;
        border-radius: 15px;
    }
}

.active{
    color: white;
    font-weight: 600;
    letter-spacing: .5px;
}

.searchbar{
    width: 95%;
    max-width: 800px;

    margin-left: auto;
    margin-right: auto;

    top: 70px;

    padding: 30px 50px 30px 50px;

    background-image: linear-gradient(to bottom, var(--light-background-color), var(--light-background-color), var(--light-background-color), rgba(255, 255, 255, 0));
}
@media only screen and (hover: none) and (pointer: coarse){
    .searchbar{
        width: 100%;
        max-width: 100vw;

        top: 170px;

        margin-bottom: -90px;
        padding: 0 50px 100px 50px;
        
        background-image: linear-gradient(to bottom, white, white, white, rgba(255, 255, 255, 0));
    }
}

.searchbar-input{
    font-family: 'Outfit', sans-serif;

    border-left: 0;

    background-color: var(--light-search-background-color);
}
@media only screen and (hover: none) and (pointer: coarse){
    .searchbar-input{
        border: 2px rgb(207, 207, 207) solid;
        border-left: 0;
    }
}

.searchbar-icon{
    background-color: white;
    color: grey;

    border-radius: 20px 0 0 20px;
    border: 1px rgba(128, 128, 128, 0.322) solid;
    border-right: 0;

    padding: 7px;
    padding-left: 15px;

    font-size: 18px;
}
@media only screen and (hover: none) and (pointer: coarse){
    .searchbar-icon{
        font-size: 50px;

        border-radius: 50px 0 0 50px;
        border: 2px rgb(207, 207, 207) solid;
        border-right: 0;

        padding: 15px 30px;
    }
}

.inactive{
    display: none;
    font-size: 0;
}

.col-searchbar{
    flex: 0 0 auto;
    width: 60%;
}
.col-add-button{
    flex: 0 0 auto;
    width: 40%;
}

.mobile-only{
    display: none;
}

#back-top-div{
    width: 95%;
    max-width: 800px;

    margin-left: auto;
    margin-right: auto;

    text-align: right;

    transition: opacity 0.5s;
}
.invisible{
    opacity: 0;
}
.visible{
    opacity: 1;
}

#back-top-button{
    position: fixed;
    z-index: 1900;

    height: 100px; 
    width: 100px;

    top: 400px;

    border-radius: 50px;
}

@media only screen and (hover: none) and (pointer: coarse){
    .col-sm-6{
        width: 100%;
    }

    .col-searchbar{
        width: 85%;
    }
    .col-add-button{
        width: 15%;
    }
    
    .mobile-only{
        display: flex;
    }
    .desktop-only{
        display: none;
    }
}
@media (max-width: 777px){
    .col-searchbar{
        width: 85%;
    }

    .col-add-button{
        width: 15%;
    }
}