:root{
	--bg-color: #1c1c1c;
	--card-bg-color: #2c2c2c;
	--card-border-color: #444444;
	--btn-background-color: #444444;
	--btn-border-color: #555555;
	--btna-background-color: #777;
	--font-color: #ffffff;
}
*{
	box-sizing: border-box;
	font-family: Arial;
	color: var(--font-color);
}

body{
	margin: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100vh;
	background-color: var(--bg-color);
	gap: 32px;
}

header{
	flex: 0 0 auto;
	width: 100%;
	padding: 10px 20px;
	border-bottom: 1px solid var(--card-border-color);
	background-color: var(--card-bg-color);
	display: flex;
	align-items: center;
	gap: 20px;
}

main{
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-left: min(200px, calc(15% - 50px));
	padding-right: min(200px, calc(15% - 50px));
	padding-bottom: 40px;
}



.smallpad{
	padding: 0px 32px;
}

.card{
	display: flex;
	background-color: var(--card-bg-color);
	padding: 20px;
	border-radius: 20px;
	gap: 10px;
	border: 1px solid var(--card-border-color);
	box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.5);
}

.autogrid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.autogrid2{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.smallgrid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.smallgrid .user-img{
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
}

.smallgrid .model-name{
	font-size: 16px;
}

.smallgrid a{
	font-size: 14px;
}

.row{
	display: flex;
	flex-direction: row;
}

.column{
	display: flex;
	flex-direction: column;
}

.baseline{
	align-content: baseline;
}

.grid21{
	display: grid;
	grid-template-columns: minmax(0px, 2fr) minmax(0px, 1fr);
}

@media (max-width: 900px) {
    .grid21 {
        grid-template-columns: 1fr;
    }
}

.grid11{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gap{
	gap: 10px;
}

.gap2{
	gap: 20px;
}

.pad{
	padding: 10px;
}


.date{
	align-self: center;
	text-wrap: nowrap;
}

.padlr{
	padding-left: 20px;
	padding-right: 20px;
}

.w100{
	width: 100% !important;
}


.h100{
	height: 100% !important;
}

.flex1{
	flex: 1;
}

.flex100{
	flex: 100;
}

.wrap{
	flex-wrap: wrap;
}

.hmin{
	height: min-content;
}

.user-img{
	border-radius: 50%;
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	object-fit: cover;
	position: relative;
}

.user-img img{
	border-radius: 50%;
}

.logo{
	display: flex;
	width: 60px;
	height: 60px;
	flex: 0 0 60px;
}

.logo img{
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.35));
	object-fit: contain;
}


img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#mainImg-box, .mainimg-box{
	width: 100%;
	aspect-ratio: 4 / 3;
	background-color: var(--bg-color);
	border-radius: 10px;
}

#mainImg, .mainimg{
	width: 100%;
	height: 100%;
	object-fit: contain;
	border: 1px solid var(--card-border-color);
	border-radius: 10px;
	aspect-ratio: 4 / 3;
	background-color: var(--bg-color);
}

#renderBox{
	display: flex;
	width: 100%;
	height: 100%;
	min-height: 200px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--card-border-color);
	background-color: var(--bg-color);
	justify-content: center;
	align-items: center;
}

.img-scroller{
	display: flex;
	border-radius: 10px;
	height: min-content;
	gap: 10px;
	overflow-x: scroll;
    overflow-y: hidden;
	padding-bottom: 10px;
}

.thumb{
	width: 150px;
	height: 90px; 
	overflow: hidden;
	flex: 0 0 150px;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid var(--card-border-color);
}

.thumb:hover {
	transform: scale(0.95);
	
}



.desc-image{
	border-radius: 10px;
	overflow: hidden;
}

.align-start{
	align-content: flex-start;
}

.big-user-img{
	border-radius: 50%;
	width: 200px;
	height: 200px;
	object-fit: cover;
	overflow: hidden;
	position: relative;
	top: -120px;
	margin: 0px 20px;
	margin-bottom: -120px;
}

.img-user-preview{
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 50%;
	background-color: var(--bg-color);
	border: 1px solid var(--card-border-color);
	cursor: pointer;
}

.bg-profile-img{
	width: 100%;
	height: 304px;
	overflow: hidden;
	position: absolute;
	top: 80px;
	left: 0;
	z-index: -1;
}

.user-profile-box{
	margin-top: 120px;
}

.bio{
	background-color: var(--bg-color);
	padding: 20px;
	border-radius: 10px;
	border: 1px solid var(--card-border-color);
	flex: 1;
}

button, .button{
	border: none;
	background-color: var(--btn-background-color);
	border: 1px solid var(--btn-border-color);
	color: var(--font-color);
	padding: 0px 20px;
	height: 40px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
}

.active{
	outline: 2px solid var(--btna-background-color);
}
.statystyki{
    display: flex;
	flex-direction: row;
    align-items: center;
    gap: 10px;
	justify-content: end;
}

.statystyki .row{
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background-color: var(--btn-background-color);
	border: 1px solid var(--btn-border-color);
	padding: 0px 10px;
	height: 40px;
	cursor: pointer;
	transition: background-color 0.3s;
	border-radius: 10px;
	flex: 1;
}


.statystyki .row:hover, button:hover, .button:hover{
	background-color: var(--btn-border-color);
}


.statystyki .row:active, button:active, .button:active{
	transition-duration: 0.05s;
	background-color: var(--btna-background-color);
}

.model-name{
	font-size: 20px;
	font-weight: bold;
	margin: 2px 0px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 100%;
	width: 100%;
}

.nomargin{
	margin: 0px;
}

.nopadding{
	padding: 0px;
}

.thumbail{
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 3 / 2;
}

.model-name-box{
	max-width: calc(100% - 60px);
	width: calc(100% - 60px);
	overflow: hidden;
	mask-image: linear-gradient(90deg,black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, black 95%, transparent 100%);
}

a {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

.comment-author{
	margin-top: 5px;
	font-size: 20px;
	font-weight: bold;
}

.comment-date{
	margin-top: 5px;
	color: gray;
	justify-self: flex-end;
	text-wrap: nowrap;
}

.comment-content{
	max-width: 100%;
	text-wrap: wrap;
	word-wrap: break-word;
}

.comment > hr{
	width: 100%;
	border-color: var(--btn-border-color);
	border-style: solid;
}

small.comment-date{
	margin-top: 2px;
}

.comment a{
	align-self: center;
}

.mini-comment{
	max-height: 80px;
	overflow: hidden;
	mask-image: linear-gradient(190deg,black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, black 50%, transparent 100%);
}

hr{
	border-color: var(--card-border-color);
	border-style: solid;
}

.column > hr{
	width: 100%;
	margin: 0px;
}

.row > hr{
	height: 100%;
	margin: 0px;
}

.search{
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

form{
	margin: 0;
}

input[type="text"], input[type="password"], textarea, select, input[type="email"], datalist, input[list]{
	background-color: var(--bg-color);
	border: 1px solid var(--btn-border-color);
	color: var(--font-color);
	padding: 8px 12px;
	height: 40px;
	width: 200px;
	border-radius: 10px;
}

select option:checked {
    background-color: var(--card-bg-color);
	border: 1px solid var(--btn-border-color);

}

select option{
	padding: 10px;
	border-radius: 10px;
	
}

textarea{
	height: auto;
}

.search button{
	height: 40px;
	width: 40px;
}

.user-name{
	font-size: 24px;
	font-weight: bold;
	text-align: center;
}

.wfc{
	width: fit-content;
}

.sortowanie{
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	align-self: flex-end;
	justify-self: flex-end;
}

.kategorie{
	border-radius: 0px 20px 20px 0px;
	max-height: calc(100vh - 144px);
	overflow-y: auto;
	-webkit-clip-path: inset(0 round 0px 20px 20px 0px);
	clip-path: inset(0 round 0px 20px 20px 0px);
	min-width: fit-content
}

.kategorie .button{
	text-wrap: nowrap;
}



.dropdown > img{
	position: relative;
	z-index: 2;
}

.dropdown a{
	width: 100%;
}

.dropdown-box{
	display: none;
	position: absolute;
	min-width: min-content;
	flex-direction: column;
	right: 0px;
	top: 0px;
	padding: 10px;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0);
	padding-top: 57px;
	clip-path: polygon( calc(100% - 60px) 0%, 100% 0%, 100% 100%, 0% 100%, 0% 63px);
	border-radius: 25px;
}

.user-img > img{
	cursor: pointer;
}

.dropdown-content{
	background-color: var(--card-bg-color);
	border: 1px solid var(--card-border-color);
	border-radius: 10px;
	padding: 10px 10px;
	white-space: nowrap;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-box{
	display: flex;
}

#mainPreview{
	width: 100%;
	aspect-ratio: 4 / 3;
	background-color: var(--bg-color);
	border-radius: 10px;
}

#imagePreview{
	width: 100%;
	height: 100%;
	object-fit: contain;
	border: 1px solid var(--card-border-color);
	border-radius: 10px;
	aspect-ratio: 4 / 3;
	display: none;
}

.thumbnail{
	max-width: 150px;
	max-height: 90px; 
	object-fit: contain;
	border: 1px solid var(--card-border-color);
	background-color: var(--bg-color);
	border-radius: 10px;
	flex: 0 0 150px;
	cursor: pointer;
}

.remove-block{
	width: min-content;
	align-self: flex-end;
}

.block-image-preview{
	border-radius: 10px;
	max-width: 100%;
	height: auto;
}



input[type="file"]::file-selector-button {
    background-color: var(--btn-background-color);
    border: 1px solid var(--btn-border-color);
    color: var(--font-color);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
    height: 40px;
    margin-right: 10px;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--btn-border-color);
}

input[type="file"]::file-selector-button:active {
    background-color: var(--btna-background-color);
}

.textnowrap{
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


img.err {
	display: none;
}

#avatarPreviewCurrent {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 50%;
	background-color: var(--bg-color);
	border: 1px solid var(--card-border-color);
	cursor: pointer;
}

#coverPreviewCurrent {
	width: 100%;
	min-height: 100px;
	object-fit: cover;
	border-radius: 10px;
	background-color: var(--bg-color);
	border: 1px solid var(--card-border-color);
	cursor: pointer;
}


.pinned-projects-list{
	background-color: var(--bg-color);
	padding: 10px;
	border-radius: 10px;
	border: 1px solid var(--card-border-color);
	max-height: 500px;
	min-height: 100px;
	overflow-y: scroll;
	overflow-x: hidden;
}

*::-webkit-scrollbar {
	width: 10px;
	height: 10px;
	background-color: transparent;
}

*::-webkit-scrollbar-thumb {
	background-color: var(--btn-background-color);
	border: 1px solid var(--btn-border-color);
	border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
	background-color: var(--btna-background-color);
	border: 1px solid var(--btna-border-color);
}


.msg-box{
	display: flex;
	flex-direction: column;
	position: fixed;
	left: 20px;
	top: 76px;
	z-index: 9999;
	gap: 10px;
}

.msg, .error{
	height: 40px;
	border-radius: 10px;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(0,0,0,0.45);
	width: fit-content;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0px 6px 0px 10px;
	background-color: #e74c3c;
	display: flex;
	gap: 8px;
}
.msg{
	background-color: #2ecc71;
	animation: msg-fade 6s ease forwards;
}


.close{
    cursor: pointer;
	padding: 2px;
}

@keyframes msg-fade{
	0%{opacity:1}
	75%{opacity:1}
	100%{opacity:0;}
	100%{display:none;}
}

.previev_img_box{
	width: 130px;
	height: 100px;
	border-radius: 15px;
	cursor: pointer;
	background-color: var(--bg-color);
	position: relative;
}

.previev_img_box_card{
	width: 100%;
	height: auto;
	min-height: 31px;
	border-radius: 15px;
	cursor: pointer;
	background-color: var(--bg-color);
	position: relative;
}

.previev_img_box .add, .previev_img_box_card .add{
	border: 2px dashed var(--btn-border-color);
	width: 100%;
	height: 100%;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.previev_img_box img, .previev_img_box_card img{
	width: 100%;
	height: 100%;
	border-radius: 15px;
	object-fit: cover;
	border: 1px solid var(--card-border-color);
}

.previev_img_box .close, .previev_img_box_card .close, .text_box_card .close, .tag_label .close{
	position: absolute;
	top: 5px;
	right: 5px;
	background-color: #e74c3c;
	border-radius: 50%;
	font-size: 15px;
	width: 20px;
	height: 20px;
	display: none;
	align-items: center;
	justify-content: center;
	color: var(--font-color);
	cursor: pointer;
}

.text_box_card .close, .previev_img_box_card .close{
	display: flex;
}

.text_box_card{
	position: relative;
	width: 100%;
}

.text_box_card textarea{
	padding-right: 25px;
	border-radius: 15px;

}


.tag_label{
	height: 30px;
	padding: 0px 5px 0px 10px;
	border-radius: 15px;
	background-color: var(--bg-color);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tag_label .close{
	position: unset;
	display: flex;
}

input{
	max-width: 100%;
}

small{
	color: gray;
}

.warning{
	color: #e74c3c;
	font-weight: bold;
}