:root {
	--background-color: #232946;
	--primary-color: #3c4469;
	--accent-color: #5a628a;
	--highlight-color: #6c759b;

	--secondary-one: #8e87ff;
	--secondary-two: #6c63ff;
	--secondary-three: #4b45cc;

	--text-light: #e4e4e4;
	--text-muted: #b4b4b4;

	--tint-green: #10b981;
	--tint-yellow: #fbbf24;
	--tint-red: #ef4444;
	--tint-blue: #60a5fa;

	--font-main: 'Nunito', sans-serif;
}

* {
	font-family: var(--font-main);
	-ms-overflow-style: none;
	scrollbar-width: none;
}

*::-webkit-scrollbar {
	display: none;
}

html {
	font-weight: 600;
	background-color: var(--background-color);
	color: var(--text-light);
}

body {
	overflow: hidden;
	margin: 0;
}

ion-icon {
	color: var(--text-light);
	font-size: 20px;
}

button, .button, .menu-item, .footer-button, .newpost-button {
	cursor: pointer;
	border: none;
	outline: none;
}

.centered {
	padding: 120px 0;
	text-align: center;
}

.app-icon {
	height: 160px;
	width: 160px;
	border-radius: 20%;
	border: 5px solid var(--accent-color);
}

#signin-modal {
	display: none;
}

#signup-modal {
	display: none;
}

#setup-modal {
	display: none;
}

.welcome-container {
	background-color: var(--primary-color);
	border-radius: 20px;
	width: 340px;
	height: auto;
	margin-top: 150px;
	margin-left: calc((100% - 340px) / 2);
	margin-right: calc((100% - 340px) / 2);
}

.welcome-container h1 {
	text-align: center;
	padding: 10px 0;
	margin: 0;
}

.welcome-container textarea {
	border-radius: 15px;
	margin: 10px 20px 0 20px;
	width: calc(100% - 40px);
	border: none;
	outline: none;
	background-color: var(--accent-color);
	font: inherit;
	font-size: 18px;
	color: var(--text-light);
	height: 40px;
	resize: none;
	overflow: hidden;
	line-height: 40px;
	font-weight: 700;
	padding: 0 10px;
}

#signin-modal .welcome-container {
	margin-top: 200px;
	margin-left: calc((100% - 340px) / 2);
	margin-right: calc((100% - 340px) / 2);
}

#signup-username, #signup-confirm {
	margin-bottom: 30px;
}

#signin-password {
	margin-bottom: 10px;
}

input[type="checkbox"] {
	appearance: none;
	opacity: 0;
	position: absolute;
	width: 0;
	height: 0;
}

.checkbox {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-color: var(--accent-color);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	vertical-align: middle;
	margin-right: 10px;
}

.checkbox-input:checked + .checkbox::after {
	content: '';
	position: absolute;
	top: 2.5px;
	left: 7px;
	width: 5px;
	height: 10px;
	border: solid var(--text-light);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.signin-checkbox {
	display: flex;
	align-items: center;
	margin: 0 0 0 25px;
}

.welcome-container textarea::placeholder {
	color: var(--text-muted);
}

.welcome-container textarea:focus {
	outline: none;
}

.welcome-container .button {
	border-radius: 15px;
	margin: 0 20px 15px 20px;
	width: calc(100% - 80px);
	font: inherit;
	font-size: 18px;
	height: 20px;
	resize: none;
	overflow: hidden;
	line-height: 20px;
	font-weight: 700;
	text-align: center;
	background-color: var(--accent-color);
}

#signin-user {
	margin: 30px 20px 15px 20px;
}

.avatar-icon {
	height: 30px;
	width: 30px;
	border-radius: 50%;
	border: 3px solid var(--accent-color);
}

.title {
	font-size: 50px;
	font-weight: 700;
}

.button {
	text-decoration: none;
	font-size: 28.5px;
	font-weight: 700;
	display: inline-block;
	border-radius: 20px;
	text-align: center;
	padding: 15px 20px;
	background-color: var(--primary-color);
	color: var(--text-light);
}

.button:hover {
	background-color: var(--highlight-color);
}

.button:nth-of-type(1) {
	margin-right: 10px;
}

.button:nth-of-type(2) {
	margin-left: 10px;
}

.site-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: auto;
	margin: 0;
}

.tab {
	background-color: var(--primary-color);
	border-radius: 15px;
	margin: 15px 15px 0 15px;
	height: 40px;
	border: 2px solid var(--accent-color);
}

.tab button {
	background-color: inherit;
	color: var(--text-light);
	float: left;
	height: 40px;
	text-align: center;
	margin: auto;
	padding: 0 15px;
	transition: 0.3s;
	font-size: 16px;
	line-height: 40px;
	font-weight: 700;
}
  
.profile-icon {
	height: 30px;
	width: 30px;
	border-radius: 50%;
	border: 3px solid;
	object-fit: contain;
}

.tab-item:hover {
	background-color: var(--accent-color);
	transition: 0.15s ease-in;
}

.tab button.active {
	background-color: var(--accent-color);
	transition: 0.15s ease-in;
}

.tab button:first-of-type {
	border-radius: 13px 0 0 13px;
}

.tab button:last-of-type {
	float: right;
	padding: 0 10px;
	border-radius: 0 13px 13px 0;
}

.tab-menu {
	display: none;
	position: fixed;
	z-index: 1;
	top: 65px;
	right: 15px;
	width: fit-content;
	height: 40px;
	background-color: var(--primary-color);
	border-radius: 15px;
	border: 2px solid var(--accent-color);
}

.menu-item {
	display: inline-block;
	background-color: inherit;
	color: var(--text-light);
	height: 40px;
	text-align: center;
	margin: auto;
	padding: 0 15px;
	transition: 0.3s;
	font-size: 16px;
	line-height: 40px;
	font-weight: 700;
}

.menu-item:hover {
	background-color: var(--accent-color);
}

.menu-item:first-of-type {
	border-radius: 13px 0 0 13px;
}

.menu-item:last-of-type {
	border-radius: 0 13px 13px 0;
}

.tab-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	position: absolute;
	margin: 0 15px;
	opacity: 0;
	pointer-events: none;
}

.tab-content.active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
	transition: opacity 0.3s ease;
}

.tab-title {
	text-align: center;
	font-size: 35px;
	font-weight: 700;
}

.newpost-view {
	background-color: var(--primary-color);
	border-radius: 15px;
	margin: 10px 0 10px 0;
	height: 100px;
	border: 2px solid var(--accent-color);
}

.newpost-button {
	background-color: var(--accent-color);
	color: var(--text-light);
	text-align: center;
	transition: 0.3s;
	font-size: 20px;
	line-height: 40px;
	float: right;
	height: 40px;
	margin: 15px 15px 0 0;
	padding: 0 15px 0 15px;
	border-radius: 10px;
	font-weight: 700;
}

.newpost-button:hover {
	background-color: var(--highlight-color);
}

.post-textarea {
	margin: 17px 0 0 15px;
	width: calc(100% - 15px - 15px - 64.81px - 15px);
	border: none;
	background-color: var(--primary-color);
	font: inherit;
	font-size: 20px;
	color: var(--text-light);
	height: 40px;
	resize: none;
	overflow: hidden;
	line-height: 30px;
	font-weight: 700;
}

.post-textarea::placeholder {
	color: var(--text-muted);
}

.post-textarea:focus {
	outline: none;
}

#count {
	margin: 10px 20px 0 0;
	font-size: 18px;
	float: right;
	color: var(--text-muted);
	font-weight: 700;
}

.messages-container {
	width: 100%;
	height: calc(100% - 65px);
}

.covnersations-view, .chat-view {
	width: 100%;
	height: 100%;
	transition: transform 0.4s ease;
}

.conversations-view {
	display: flex;
	flex-direction: column;
	z-index: 1;
}

.chat-view {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
	z-index: 2;
	background-color: var(--primary-color);
	border-radius: 15px;
	border: 2px solid var(--accent-color);
	transform: translateX(100%);
}

.chat-view.active {
	display: flex;
	transform: translateX(0);
}

.conversations-view.slide-left {
	transform: translateX(-100%);
	display: none;
}

.conversations-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	border-bottom: 2px solid var(--accent-color);
}

.new-conversation {
	font-size: 20px;
	cursor: pointer;
	background-color: var(--accent-color);
	height: 25px;
	width: 25px;
	text-align: center;
	line-height: 25px;
	border-radius: 5px;
}

.new-conversation:hover {
	background-color: var(--highlight-color);
}

.conversation-list {
	display: flex;
	flex-direction: column;
	margin: 10px 0;
	overflow-y: auto;
	flex-grow: 1;
}

.conversation-item {
	display: flex;
	height: 40px;
	background-color: var(--accent-color);
	border-radius: 10px;
	padding: 5px;
	cursor: pointer;
	margin: 0 0 10px;
}

.conversation-item:hover {
	background-color: var(--highlight-color);
}

.convo-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-right: 10px;
}

.convo-info {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.convo-displayname {
	font-weight: bold;
	color: var(--text-light);
}

.convo-lastmessage {
	font-size: 0.9rem;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.messages-header {
	position: relative;
	display: flex;
	align-items: center;
	height: 3rem;
	border-bottom: 2px solid var(--accent-color);
}

.messages-button {
	position: relative;
	z-index: 2;
	margin-left: 1rem;
	font-size: 1rem;
	cursor: pointer;
}
  
.messages-label {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-weight: bold;
	font-size: 1.1rem;
	white-space: nowrap;
	z-index: 1;
}
  
.messages {
	padding: 1rem;
	overflow-y: auto;
	flex-grow: 1;
}

.message {
	display: flex;
	align-items: flex-end;
	margin-bottom: 1rem;
}

.message-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin: 0 0.5rem;
	border: 2px solid var(--accent-color);
}

.bubble {
	max-width: 60%;
	padding: 0.8rem;
	border-radius: 1rem;
	background-color: var(--accent-color);
	color: var(--text-light);
}

.message.incoming {
	flex-direction: row;
}

.message.outgoing {
	flex-direction: row-reverse;
}

.newmessage-container {
	display: flex;
	padding: 10px;
	border-top: 2px solid var(--accent-color);
}

.newmessage-textarea {
	flex-grow: 1;
	border-radius: 15px;
	background-color: var(--accent-color);
	border: 2px solid var(--highlight-color);
	font: inherit;
	font-size: 16px;
	color: var(--text-light);
	height: 40px;
	resize: none;
	overflow: hidden;
	line-height: 16px;
	font-weight: 700;
	padding: 12px 10px;
}

.newmessage-textarea::placeholder {
	color: var(--text-muted);
}

.newmessage-textarea:focus {
	outline: none;
}

.newmessage-button {
	background-color: var(--accent-color);
	border: 2px solid var(--highlight-color);
	color: var(--text-light);
	transition: 0.3s;
	font-size: 16px;
	line-height: 40px;
	float: right;
	height: 40px;
	padding: 0 15px;
	margin: 0 0 0 10px;
	border-radius: 15px;
	font-weight: 700;
}

.newmessage-button:hover {
	background-color: var(--highlight-color);
}

#followed-users {
	display: none;
}

.users-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background-color: #f9f9f9;
	border-top: 1px solid #ddd;
}

.followed-user {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

.followed-user:hover {
	background-color: #f0f0f0;
}

.followed-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 12px;
}

.followed-info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.followed-displayname {
	font-weight: bold;
	font-size: 14px;
	color: #333;
}

.followed-username {
	font-size: 12px;
	color: #777;
}

.start-chat-button {
	padding: 6px 12px;
	font-size: 13px;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.start-chat-button:hover {
	background-color: #0056b3;
}

.profile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: var(--primary-color);
	border-radius: 20px;
	border: 2px solid var(--accent-color);
	height: 90px;
	padding: 0 10px;
}

.profile-image {
	height: 70px;
	width: 70px;
	border: 2px solid var(--accent-color);
	border-radius: 25%;
	margin-right: 10px;
}

.profile-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	margin-right: auto;
}

.profile-displayname {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-light);
	float: left;
	clear: left;
}

.profile-username {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-light);
	float: left;
	clear: left;
	margin-top: -4px;
}

.profile-stats {
	display: flex;
	float: left;
	clear: left;
	justify-content: center;
	margin-top: 5px;
	gap: 5px;
}

.profile-stat {
	display: flex;
	flex-direction: column;
	text-align: center;
	background-color: var(--accent-color);
	border-radius: 7.5px;
	cursor: default;
	padding: 2.5px 5px;
}

.profile-statlabel {
	color: var(--text-light);
	font-size: 12px;
	line-height: 12px;
}

.profile-following {
	color: var(--text-light);
	font-size: 12px;
	line-height: 12px;
}

.profile-followers {
	color: var(--text-light);
	font-size: 12px;
	line-height: 12px;
}

.profile-button {
	background-color: var(--accent-color);
	color: var(--text-light);
	border-radius: 15px;
	cursor: pointer;
	font-size: 14px;
	line-height: 14px;
	font-weight: 700;
	padding: 10px;
	margin-top: -25px;
}

.profile-button:hover {
	background-color: var(--highlight-color);
}

.modal {
	display: none;
	position: fixed;
	z-index: 1;
	padding-top: 100px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: none;
	background-color: rgb(0, 0, 0, 0.3);
}

.modal-content {
	position: relative;
	background-color: var(--primary-color);
	margin: auto;
	padding: 0;
	width: 80%;
	border-radius: 20px;
	border: 2px solid var(--accent-color);
}

.modal-header {
	padding: 2px 16px;
	color: var(--text-light);
	border-bottom: 2px solid var(--accent-color);
	text-align: center;
}

.close {
	color: var(--primary-color);
	float: right;
	font-size: 28px;
	font-weight: 700;
}

.close:hover, .close:focus {
	color: #000;
	text-decoration: none;
	cursor: pointer;
}

.header-text {
	font-size: 24px;
	line-height: 10px;
	font-weight: 700;
	margin-bottom: 20px;
}

.modal-body {
	padding: 2px 16px;
}

.body-text {
	font-size: 18px;
	font-weight: 700;
}

.modal-label {
	display: block;
	color: var(--text-light);
	font-size: 16px;
	font-weight: 700;
	margin-top: 15px;
	padding: 5px;
	line-height: 16px;
}

.modal-input {
	display: block;
	background-color: var(--accent-color);
	color: var(--text-light);
	border: 2px solid var(--accent-color);
	border-radius: 10px;
	width: 100%;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 15px;
	padding: 5px;
	line-height: 16px;
}

.modal-input:focus {
	outline: none;
}

.modal-footer {
	padding: 2px 16px;
	color: var(--primary-color);
	border-top: 2px solid var(--accent-color);
}

.footer-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--text-light);
	font-size: 18px;
	font-weight: 700;
	padding: 7.5px 10px;
	margin: 10px 0;
	border-radius: 12.5px;
}

.footer-button:hover {
	background-color: var(--highlight-color);
}

.footer-button:last-of-type {
	float: right;
}

.update-avatar {
	display: block;
	border: 5px solid var(--accent-color);
	background-size: 100%;
	height: 150px;
	width: 150px;
	border-radius: 22.5%;
	margin-top: 15px;
}

#edit-avatar {
	display: none;
}

#avatar-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--text-light);
	cursor: pointer;
	border-radius: 15px;
	text-align: center;
	padding: 10px 15px;
	font-size: 20px;
	font-weight: 700;
	line-height: 20px;
	margin-top: calc(50% - 15px);
}

#avatar-button:hover {
	background-color: var(--highlight-color);
}

.post {
	background-color: var(--primary-color);
	border-radius: 20px;
	margin: 0 0 10px 0;
	height: auto;
	border: 2px solid var(--accent-color);
}

.post-header {
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	height: 54px;
	border-bottom: 1px solid var(--accent-color);
}

.post-avatar {
	display: inline-block;
	height: 35px;
	width: 35px;
	margin: 10px 0 6px 10px;
	border: 2px solid var(--accent-color);
	border-radius: 25%;
}

.post-info {
	display: inline-block;
	margin: 10px 0 0 5px;
	vertical-align: top;
}

.post-displayname {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-light);
	float: left;
	clear: left;
}

.post-username {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-light);
	float: left;
	clear: left;
	margin-top: -2.5px;
}

.post-content {
	font-size: 15px;
	font-weight: 700;
	margin: 5px 10px;
	color: var(--text-light);
	height: auto;
}

.post-footer {
	height: auto;
	border-top: 1px solid var(--accent-color);
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	text-align: right;
	padding: 5px 0;
}

.post-actions {
	display: inline;
	vertical-align: middle;
	align-items: center;
	height: 20px;
}

.post-like {
	display: flex;
	align-items: center;
	margin-left: 10px;
	cursor: pointer;
	float: left;
}

.like-count {
	color: var(--text-light);
	margin-left: 2.5px;
	cursor: default;
}

.post-comment {
	display: flex;
	align-items: center;
	margin-left: 10px;
	cursor: pointer;
	float: left;
}

.comment-count {
	color: var(--text-light);
	margin-left: 2.5px;
	cursor: default;
}

.post-delete {
	margin-left: 10px;
	cursor: pointer;
	float: left;
}

.post-date {
	font-size: 15px;
	font-weight: 700;
	margin: 0 10px;
	color: var(--text-light);
}

#view-post {
	display: none;
}

#view-profile {
	display: none;
}

.modal-open {
	overflow: hidden;
}

.global-modal {
	position: absolute;
	background-color: rgb(200, 200, 200, 0.3);
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
}

.postmodal-container {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--background-color);
	border-radius: 20px;
	margin: 20px;
	padding: 10px;
	height: calc(100% - 60px);
}

.postmodal-post {
	background-color: var(--primary-color);
	border-radius: 20px;
	height: auto;
	border: 2px solid var(--accent-color);
}

.postmodal-header {
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	height: 54px;
	border-bottom: 1px solid var(--accent-color);
}

.postmodal-avatar {
	display: inline-block;
	height: 35px;
	width: 35px;
	margin: 10px 0 10px 10px;
	border: 2px solid var(--accent-color);
	border-radius: 25%;
}

.postmodal-info {
	display: inline-block;
	margin: 10px 0 0 5px;
	vertical-align: top;
}

.postmodal-displayname {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-light);
	float: left;
	clear: left;
}

.postmodal-username {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-light);
	float: left;
	clear: left;
	margin-top: -2.5px;
}

.postmodal-content {
	font-size: 15px;
	font-weight: 700;
	margin: 5px 10px;
	color: var(--text-light);
	height: auto;
}

.postmodal-footer {
	height: auto;
	border-top: 1px solid var(--accent-color);
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	text-align: right;
	padding: 5px 0;
}

.postmodal-date {
	font-size: 15px;
	font-weight: 700;
	margin: 0 10px;
	color: var(--text-light);
}

.comment-container {
	flex: 1;
	overflow-y: auto;
}

.comment {
	background-color: var(--primary-color);
	border-radius: 20px;
	margin: 10px 0 0 0;
	height: auto;
	border: 2px solid var(--accent-color);
}

.comment-header {
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	height: 54px;
	border-bottom: 1px solid var(--accent-color);
}

.comment-avatar {
	display: inline-block;
	height: 35px;
	width: 35px;
	margin: 10px 0 6px 10px;
	border: 2px solid var(--accent-color);
	border-radius: 25%;
}

.comment-info {
	display: inline-block;
	margin: 10px 0 0 5px;
	vertical-align: top;
}

.comment-displayname {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-light);
	float: left;
	clear: left;
}

.comment-username {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-light);
	float: left;
	clear: left;
	margin-top: -2.5px;
}

.comment-content {
	font-size: 15px;
	font-weight: 700;
	margin: 5px 10px;
	color: var(--text-light);
	height: auto;
}

.comment-footer {
	height: auto;
	border-top: 1px solid var(--accent-color);
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	text-align: right;
	padding: 5px 0;
}

.comment-actions {
	display: inline;
	vertical-align: middle;
	align-items: center;
	height: 20px;
}

.comment-like {
	display: flex;
	align-items: center;
	margin-left: 10px;
	cursor: pointer;
	float: left;
}

.comment-like-count {
	color: var(--text-light);
	margin-left: 2.5px;
	cursor: default;
}

.comment-delete {
	margin-left: 10px;
	cursor: pointer;
	float: left;
}

.comment-date {
	font-size: 15px;
	font-weight: 700;
	margin: 0 10px;
	color: var(--text-light);
}

.newcomment-container {
	display: flex;
	align-items: center;
	justify-content: stretch;
}

.newcomment-textarea {
	flex: 1;
	border-radius: 15px;
	margin: 20px 0 0 0;
	background-color: var(--primary-color);
	border: 2px solid var(--accent-color);
	font: inherit;
	font-size: 16px;
	color: var(--text-light);
	height: 40px;
	resize: none;
	overflow: hidden;
	line-height: 36px;
	font-weight: 700;
	padding: 2px 0 2px 10px;
}

.newcomment-textarea:focus {
	outline: none;
}

.newcomment-button {
	background-color: var(--primary-color);
	border: 2px solid var(--accent-color);
	color: var(--text-light);
	transition: 0.3s;
	font-size: 16px;
	float: right;
	height: 40px;
	padding: 0 10px;
	margin: 20px 0 0 10px;
	border-radius: 15px;
	font-weight: 700;
}

.newcomment-button:hover {
	background-color: var(--accent-color);
}

.profilemodal-container {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--background-color);
	border-radius: 20px;
	margin: 20px;
	padding: 10px;
	height: calc(100% - 60px);
}

#profilemodal-container.posts-container {
	flex: 1;
	overflow-y: auto;
}