/* page fonts*/
@font-face {
    font-family: 'DM Sans';
    src: url(/font/DMSans-Regular.ttf);
}
* {
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

a {
    color: black;
}

/* page container */
body {
    font: 16px Arial;
    margin-top: 0;
    min-height: 80vh;
}

a:hover {
    font-weight: bold;
    text-decoration: none;
}

.wrapper {
    width: 40%; /* Has to be the same than .outMenuDiv */
    margin: auto;
    min-width: 500px;
}

.pageContent {
    width: 100%;
    /*background: pink;*/
    /*box-shadow: -8px 8px 16px 0 rgba(0, 0, 0, 0.2), 8px 8px 16px 0 rgba(0, 0, 0, 0.2);*/
}

.outMenuDiv {
    width: 40%; /* Has to be the same than .wrapper */
    min-width: 500px;
    margin: 10px auto auto;
    position: relative;
}

#userIcon{
    width: 50px;;
    position: absolute;
    right: 0px;
    top: 0px;
    margin-right: 55px;
    padding: 9px;
    z-index: 90;
    cursor: pointer;
}

/*Flash messages*/
.flashMsg{
    position: absolute;
    margin: 3vh auto;
    width: 70%;
    left: 0;
    right: 0;
    z-index: 99;

    background: white;
    text-align: center;
    color: black;
    padding: 5px;
    border-radius: 9999px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0,0.3);
    display: none;
}
.success {
    border: 1px solid rgba(75, 181, 67,1);
    box-shadow: 0 0 10px 0 rgba(75, 181, 67,0.4);

    /*background-color: #4BB543;*/
}

.error {
    border: 1px solid rgba(178, 24, 14,1);
    box-shadow: 0 0 10px 0 rgba(178, 24, 14,0.4);
    /*background: #b2180e;*/
    color: #000;
    /*color: white;*/
}

.warning {
    background: orange;
}

/* Posts */
.postsDiv {
    /*background: lightpink;*/
    width: 100%;
}

.singlePost {
    background: #f2f2f2;
    width: 90%;
    min-height: 60px;
    margin: 9% auto;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    /*box-shadow: 0 0 15px 0px rgba(0, 0, 0, 0.1)!*, 3px 3px 3px 0 rgba(0, 0, 0, 0.05)*!;*/
}

.postHeader {
    /*font-size: 1.5em;*/
    /*Remove default margin*/
    margin: 0;
}

.postContent {
    font-size: 1.3em;
    padding: 20px;
    position: relative;
}

.infoInPostSpan {
    font-style: italic;
    color: #575757;
}


.contactBtn {
    width: 50%;
    margin: auto;
}

.breakParagraph {
    word-break: break-word;
}


/* Buttons and other styles */
/*Own because of bootstrap*/
.ownBtn {
    min-width: 100px;
    background: whitesmoke;
    border: 1px solid rgb(0, 110, 181);
    border-radius: 999px;
    color: black;
    padding: 6px 7px;
    cursor: pointer;
    font-size: 100%;
    outline: none;
}

.ownBtn:hover {
    background-color: rgb(0, 110, 181);
    box-shadow: 0 0 9px #ccc;
    color: white;
}

.del {
    border: 1px solid #b2180e;
}

.del:hover {
    background-color: #b2180e;
    color: white;
}

.upd {
    border: 1px solid darkblue;
}

.upd:hover {
    background-color: #0078d7;
}

.add {
    border: 1px solid green;
    height: 40px;
    margin-left: 20px;
}

.add:hover {
    background-color: green;
}

.deltxt{
    color: #f30000;
}

.outerPlaceSearch {
    /*display: inline-block;*/
    /*background:green;*/
    min-width: 320px;
}

#searchCityInput {
    /*outline-offset: 0;*/
    width: 75%;
    padding: 12px;
    /*display: inline-block;*/
    border: 2px solid rgb(0, 110, 181);
    border-radius: 15px 0 0 15px;
    /*box-sizing: border-box;*/
    font-size: 105%;
    /*box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);*/
    outline: none;

}

.cityInput:focus {
/*outline: none;*/
/*border: 2px solid rgb(0, 110, 181);*/
/*border-bottom: 1px solid rgb(0, 110, 181);*/
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

/* Has to be defined too because doesn't work with only .cityInput:focus */
#searchCityInput:focus {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.radiusWithSpan {
    min-width: 70px;
    /*display: inline-block;*/
}

.radiusInput {
    width: 15%;
    /*margin-left: 1%;*/
    border: 2px solid rgb(0, 110, 181);
    /*border-radius: 0 10px 10px 0;*/
    font-size: 105%;
    padding: 12px 8px;
    outline: none;
}

.unitSpan {
    width: 10%;
    /*float: right;*/
    /*margin-left: -2px;*/
    border-radius: 0 15px 15px 0;
    font-size: 105%;
    padding: 14px 10px;
    background: rgb(0, 110, 181);
    color: white;

}

.nameSearchInput {
    padding: 8px;
    border-bottom: 1px solid rgb(0, 110, 181);
    border-top: 0;
    border-right: 0;
    border-left: 0;
    width: 100%;
}

.nameSearch {
    margin-top: 5%;
}

.nameSearchInput:focus {
    border-bottom: 2px solid rgb(0, 110, 181);
    outline: none;
}

#nameSearchInput{
    display: none;
}

.noResults {
    display: none;
}

.welcomeH1 {
    text-align: center;
    font-weight: bold;
}

.welcomeH2 {
    text-align: center;
    font-weight: normal;
}

/*Profile*/

.profileForm input[type=submit] {
    /*padding: 6px 6px;*/
    width: 30%;
    min-width: 160px;
    /*font-size: 90%;*/
}
/*
.profileForm input[type=submit]:after {
    content: '';
    display: block;
    clear: both;
}*/

.cursorPointer {
    cursor: pointer;
}

#changeEmailDiv, #updatePasswordDiv, #changeBirthdateDiv {
    display: none;
}

#ownPostBtn {
    margin-bottom: 0;
}

.delIcon {
    width: 30px;;
    position: absolute;
    right: 0px;
    top: 0px;
    margin: 20px;
}

/*Login*/
.discreteLink{
    text-decoration: none;
    font-style: italic;
    color: #575757;
    font-size: 0.9em;
}

/*Create*/
.createCityInput{
}

/*Mail success*/
.successIcon, .successText, .successBackButton{
    text-align: center;
    padding: 0%;
    margin-top: 10vh;
}
.successIcon img{
    width: 30%;
}

.backBtn{
    background: white;
    width: 70%;
    padding: 10px;
}

/*Group chats*/
.listingP{
    line-height: 2em;
}

.groupChatTable{
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}
.groupChatTable td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

@media only screen and (max-width: 700px) {
    body{
        margin: 0;
    }
    .wrapper {
        width: 100%;
        min-width: 100%;
    }
    .pageContent{
        padding: 0 3% 0 3%;
    }

    .outMenuDiv {
        width: 95%;
        min-width: 95%;
    }

    .textContent {
        font-size: 1.2em;
    }

    .singlePost{
        width: 95%;
    }

    .postContent {
        font-size: 1.1em;
        padding: 20px;
    }

    .contactBtnDiv {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contactBtn {
        width: 80%;
    }

    #searchCityInput {
        width: 70%;
    }
}

