.wrapper{
	justify-content: center;
 	margin-top: 20px;
 	width: 100%;
}

.main-column{
	width: 95%;
}

.activity-stream {
    max-width: 95%;
    margin-left:10px; 
    margin-right:10px;
    align-items: stretch;
}

.activity-stream .sort-container {
    width: 100%;
    justify-content: center;
}

.sort-container .sort-button {
    font-size: 12px;
}

@media screen and (max-width: 484px) {
    .sort-container .sort-button {
        padding: 4px 10px;
        font-size: 11px;
    }
}

.activity-stream .followed-items:before {
    width: 62.1vw;
}

@media screen and (max-width: 545px) {
    .activity-stream .followed-items:before {
        width: 66vw;
    }
}

.followed-items footer {
    font-size: 14px;
}

.secondary-column{
	width: 95%;
}

.secondary-column section h2.title {
	padding: 0px;
	text-align: center;
    width: 100%;
}

.question-info{
    border:none;
    width: 100%;
}

.question, .answer{
	width: 100%;
	border-right: none;
	border-bottom: 1px dotted grey;
}

.answer-info {
    width: 80%;
}

.question-tags{
   max-height: 60px;
   overflow-y: hidden;
}

#question-form{
}

.form-header {
    margin: 15px;
    justify-content: space-around;
}

.form-header div{
    height: auto;
    margin-bottom: 10px;
}

.form-header .header {
    width: 100%;
    text-align: center;
}

#extra-info-alert {
    top: 470px;
}

@media (max-width: 400px) {
    #extra-info-alert {
        right: 0;
    }
}

div.tagsinput {
    width: 80% !important;
    margin: 0 auto 10px auto;
}

div[id^="tagSuggest"] {
    width: 83%;
    margin: -1px auto 0 auto;
}

.content-form p.instructions {
    margin: 0px;
}

.text-remaining {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.content-form textarea{
    width: 80%;
    margin: auto;
    height: auto;
}

.content-form hr.tween {
    margin-bottom: 10px;
}

.submit-form-wrapper {
    margin-left: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-form-wrapper input{
    width: 44% !important;
}

.submit-form-wrapper input.basic-button{
    padding: 10px;
    margin: 0px auto;
}

.one-tag{
    margin: 5px 5px;
}

.question .title-of-question{
	margin-bottom: 5px;
}

.question .votes-section{
	width: 100%;
    flex-direction: row;
    justify-content: space-evenly;
}

.vote{
    justify-content: center;
    align-items: center;
    min-width: 0%;
    flex-direction: row;
}

.question .votes-section .vote .vote-count-post {
    margin: 0px 5px;
}

.score{
    width: auto;
}

.votes-section{
    padding: 10px 0px;

}

.votes-section .admin-links {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: row;
    justify-content: space-around;

}
    
.votes-section .admin-links a{
    margin: 5px 0px;
        box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.5);
            text-indent: -999em;
}

.votes-section .admin-links a.modify-link {
    border:none;
    border-radius: 50%;
    background-color: #43A8DA;
    background-image: url(https://assets.afterdawn.fi/x2fi/responsive/img/edit-icon.svg);
    /* height: 40px; */
    width: 40px;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0px;
    min-width: 40px;
    margin: 0px;
}

.votes-section .admin-links a.delete-link {
    border:none;
    background-color: #F07C77;
    border-radius: 50%;
    background-image: url(https://assets.afterdawn.fi/x2fi/responsive/img/delete-icon.png);
    /* height: 40px; */
    width: 40px;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0px;
    min-width: 40px;
    margin: 0px;
}

.vertical-menu{
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-menu-icon{
        width: 24px;
    height: 24px;
}

.requires-javascript { 
	display: none !important; 
}

.questions-navbar, .answers-navbar {
    padding: 0px;
    width: 95%;
        flex-direction: column;
    align-items: flex-start;
}

.questions-navbar ul, .answers-navbar ul {
    overflow: overlay;
    width: 100%;
    border: 2px solid lightgrey;
    border-radius: 5px;
}

.navbar-option {
    width: 100%;
    height: 50px;
    text-align: center;
    font-size: 12px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center; 
    align-items: center;
    margin: 0px;
    border: 1px solid white;
    border-radius: 5px;
    padding: 0px;
}

.navbar-option a {
    text-decoration: none;
}
.navbar-option.selected{
    box-shadow: inset 0px -2px 1px #a55a0a;
}

/*Pagination*/

.pagination{
	flex-wrap: wrap;
	justify-content: center;
}
.pagination a{
	width: 95%;
	margin-top: 5px !important;
	text-align: center;
}


#site-header{
	height: 65px;
	position: fixed;
	z-index: 10;
}
#mobile-navbar, #mobile-menu{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    width: 100%;
    background-color: #404040;
    background: #343434;
    background: -moz-linear-gradient(top, #343434 0%, #232323 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #343434), color-stop(100%, #232323));
    background: -webkit-linear-gradient(top, #343434 0%, #232323 100%);
    background: -o-linear-gradient(top, #343434 0%, #232323 100%);
    background: -ms-linear-gradient(top, #343434 0%, #232323 100%);
    background: linear-gradient(top, #343434 0%, #232323 100%);
}
#site-logo{
    margin: 0 auto;
    padding: 0px;
    position: static;
}
#mobile-navbar a#menu-icon{
    height: 32px;
    width: 80px; /*This is done to be equal to the with of the other icons 
    and let the logo in the middle of the menu*/ 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
#mobile-navbar .secondary-icons{
    width: 80px;
    height: 32px;
    z-index: 100;
    display: flex;
    align-items: center;
}
.search-icon, .person-icon{
    height: 32px;
}
.secondary-icons a{
    height: 100%;
    width: 100%;
        display: flex;
    justify-content: center;
    align-items: center;

}
#mobile-menu ul{
    width: 100%;
}
#mobile-menu ul li, #loggedin-menu ul li{
    width: 100%;
    padding: 10px;
    border-bottom: 1px dotted lightgrey;
}
#mobile-menu ul a, #loggedin-menu ul a{
    text-decoration: none;
    color: white;
    height: 100%;
    width: 100%;
}
#loggedin-menu{
    text-align: right;
    background-color: lightgrey;
    display: none;
}


div.footer-columns section {
    width: 100%;
    display: flex;
    
    border-bottom: 2px dotted lightgrey;
}
#site-footer{
	margin-top: 50px;
}
#site-footer ul{
	width: 60%;
}
#site-footer h3{
	width: 40%;
}




.answer .votes-section{
	width: 19.6%;
}
.answer .votes-section .vote{
	flex-direction: column;
}

.answer .votes-section .vote .vote-count-post {
    margin: auto;
}


/*Tags Section*/

.tags-selector{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 30px;
}

.selectable-tab {
    margin: 0px;
    width: 30%;
    text-align: center;
}


.afterdawn-network, .top-ad-space, #sitewide-navigation{
    display: none;
}

.mobile-top-ad {
	display: block;
	text-align:center;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 15px;
	margin-top: 15px;
	max-width:95%;
	min-height:250px;
}

form.sitewide-search {
    float: none; 
    margin-right: 0px;
    display: flex;

    align-items: center;
}
input.sitewide-search-submit{
    margin: 0 5px}



.menu {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 150;
}
.loggedin-menu{
    display: flex;
    justify-content: flex-end;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 150;
}

.menu--visible {
    pointer-events: auto;
}

.app-menu {
    background-color: #fff;
    color: #fff;
    position: relative;
    max-width: 400px;
    width: 90%;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    -webkit-transform: translateX(-103%);
            transform: translateX(-103%);
    display: flex;
    flex-direction: column;
    will-change: transform;
    z-index: 160;
    pointer-events: auto;   
    padding-top: 5px;         
}
.app-menu2 {
    background-color: #fff;
    color: #fff;
    position: relative;
    max-width: 400px;
    width: 90%;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    -webkit-transform: translateX(115%);
            transform: translateX(115%);
    display: flex;
    flex-direction: column;
    will-change: transform;
    z-index: 160;
    pointer-events: auto; 
    padding-top: 5px;           
}
.menu--visible .app-menu, .menu--visible .app-menu2 {
    -webkit-transform: none;
            transform: none;
}


.menu--animatable .app-menu, .menu--animatable .app-menu2 {
    transition: all 130ms ease-in;
}

.menu--visible.menu--animatable  .app-menu, .menu--visible.menu--animatable .app-menu2{
    transition: all 330ms ease-out;
}

.menu::after, .loggedin-menu::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    will-change: opacity;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0,0,0.3,1);
}

.menu--visible.menu::after, .menu--visible.loggedin-menu::after {
    opacity: 1;
    pointer-events: auto;
}



.app-menu2 li:not(:first-child) {
    padding: 20px 10px;
    border-bottom: 1px double #4e4e6536;
}

.app-menu a, .app-menu2 a{
    text-decoration: none;
    color: #414141;
    padding: 20px 10px;
    border-bottom: 1px double #4e4e6536;
}

.app-menu2__user-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.app-menu2__user-info img {
    margin-right: 15px;
}

.app-menu2__user-info .user-points {
    background-color: #539b54;
    padding: 0 8px;
    height: 16px;
    margin-left: 10px;
}

.app-menu2__user-info .user-points.positive {
    background-color: #539b54;
    color: #000;
}

.app-menu2__user-info .user-points.negative {
    background-color: #ab4445;
    color: #fff;
}

.app-menu2 .close-menu{
    margin-right: 0px;
    margin-left: auto;
}
.close-menu{
    display: block;
    text-indent: -999em;
    width: 40px;
    height: 40px;
    background-image: url("https://assets.afterdawn.fi/x2fi/responsive/img/close.png"),none;
    background-size: initial;
    background-repeat: no-repeat;
    background-position: 0px ;
    overflow: hidden;
    border-bottom: none !important;;
    padding: 0px !important;
    margin-right: auto;
    margin-left: 10px;
    margin-bottom: 30px;
}


form.answer-form textarea{
    width: 95%;
}

form.answer-form footer label{
    white-space: inherit;
}

#log-out{
    background-color: #ca0000d9;
    color: white;
    text-align: center;
    text-shadow: 0 2px #0000007d;
}

#log-in{
    background-color: #67C400;
    color: white;
    text-shadow: 0px 2px #0000007d;
    text-align: center;
    box-shadow: 0px 3px #00000047;
}

#kysy{
    background-image: url(https://assets.afterdawn.fi/x2fi/images/x2fisprites.png);
    background-position: 0 -407px;
    display: block;
    width: 85px !important;
    height: 85px;
    padding: 0 !important;
    margin: auto;
    border-radius: 43px !important;
}

#kysy li {
    display: none;
}

.kysy-button.only-mobile {
    margin: 0px;
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 8;
}
.kysy-button.only-mobile a{
    width: 60px !important;
    height: 60px !important;
    background-image: url(https://assets.afterdawn.fi/x2fi/responsive/img/kysybuttons.png);
    background-position: -1px -5px;
}
.kysy-button.only-mobile a:hover {
    background-color: transparent !important;
    background-position: -72px -3px !important;
}
.only-mobile{
    display: block;
}
.hide-mobile{
    display: none;
}

/*
	Animations on tabs
*/

.tag-category-wrapper{
    height: 270px;
}
.tag-category{
    position: absolute;
    width: auto;
}
#users-highlight .users-list, .tag-category{

    height: auto;
    background-color:#fff;
    display: none;


}   
#users-highlight .users-list{
    
    position: initial;
}

.users-list.left-hide, .tag-category.left-hide{
    transform: translateX(-120%); 
}
.users-list.right-hide, .tag-category.right-hide{
    transform: translateX(120%); 
}

#users-highlight .users-list.selected, .tag-category.selected{
    display: flex;
    transform: translateX(0%);
    width: 90%;
    z-index: 1;
    max-height: 260px;
}


/*
	New Answers
*/

.login-required .login-overlay {
    flex-direction: column;
    justify-content: space-evenly;
}

.login-column{
    margin-top: 0px;
}

.login-required .login-button{
    margin-bottom: 10px;
}


nav.sub-menu{
	display: none;
}

.mobile-ad{
    width: 100%;
    height: 270px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: greenyellow;
}
.ad{
    width: 250px;
    background-color: white;

}

/*
	Tag Page CSS
*/

.main-column .tag-category-wrapper{
    height: auto;
}
#tag-list{
    width: 95%;
    margin:auto; 
    max-height: 605px;
    overflow: hidden;
}
.one-tag-wrapper{
    width: 50%;
}
.one-tag-wrapper span{
    color: #666;
    font-size: .8em;
}

/*
	Users-page CSS
*/

.page-search{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;

    border-radius: 5px;
}
.page-search input{
    width: 100%;
    height: 25px;
    margin-top: 5px;
}
#top-contributors-list{
    width: 100%;
}
.one-user {
    width: 48%;
}
.user-about{
    display: none;
}

/*
	Selected tag CSS
*/

.selected-tag{
    flex-direction:column;
    align-items: center;
}


/*
	Single User page CSS
*/

.user-header{
    text-align: center;
    margin-bottom: 10px;
}

.user-wrapper{
    flex-wrap: wrap;
    justify-content: center;
    align-items: normal;

}
.user-wrapper img{
    width: 100px;
    height: 100px;
    position: absolute;
    z-index: 3;
    border: 3px solid white;
    box-shadow: 1px 1px 4px rgba(10, 30, 0, 0.3);
    border-radius: 10px;
    margin-top: -20px;
}
.user-wrapper ul{
    width: 85%;
    margin: auto;
    height: 180px;
    align-items: center;
    padding-top: 36px;
}
.user-wrapper ul li{
    margin-left: 0px;
}
.user-wrapper .total-score{
    z-index: 3;
    margin-left: 0px;
    margin-top: -50px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: initial;
}


/*
	
	Fancy-box custom CSS

*/

.fancy-buttons a{ 
    width: 40%;
}


/*

	Askpage CSS

*/

.form-header.final {
    align-items: center;
    flex-direction: column;
}

/*Login & register CSS*/

.main-column {
    padding-top: 20px;
}

.main-area > h1 {
    margin-left: 0;
}
.main-area > form {
    display: flex;
    flex-direction: column;
    margin: 0px;
}
.main-area > form > label{
    margin: 10px 0px;
}
.main-area > form > input{
    margin: 0px;
    height: 30px;
    padding-left: 10px;
    width: 95%;
}
.main-area > form > input:selected{
    border-bottom: 1px solid lightblue;
}
.main-area > form > footer > input{
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-top: 30px;
}
.login-extras{
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.login-extras a{
    color: #6C6C6C;
}
input.basic-button{
    width: 60%;
    margin: 0px;
    min-width: 100px;
    height: 30px;
}

@media (max-width: 580px) {
    .votes-section .admin-links a.modify-link {
        width: 30px;
        height: 30px;
        min-width: 30px;
        background-size: 60%;
    }

    .votes-section .admin-links a.delete-link {
        width: 30px;
        height: 30px;
        min-width: 30px;
        background-size: 60%;
    }
}

h1.brand-header, h2.brand-header{
    text-align: center;
}
.one-row label input{
    width: 85%;
}
.personal-details .one-row label, .item-label{
    width: 100%;
}
.one-row{
    flex-wrap: wrap;
}

#login_form,
#join_form {
    margin-left: 25px;
}

section.short-article form.user-input-form {
    margin-left: 30px;
}

.user-input {
    width: 70%;
}

input.basic-button {
    width: 71%;
}

@media (max-width: 500px){
    .user-input {
        width: 91%;
    }

    input.basic-button {
        width: 93%;
    }
}

@media (max-width: 370px){
    .one-user {
    width: 100%;
    }
    .user-wrapper ul{
    width: 95%;
    }
}
