* {
	box-sizing: border-box;
}

img {
	width: 64px;
	height: 64px;
}

h1 img {
	width: 28.9px;
	height: 40px;
}

.invert {
	filter: invert(1);
}

body {
	font-family: Arial, sans-serif;
	background-color: #f5f8fa;
	margin: 0;
	padding: 0;
}

a {
	color: #1f5d81;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

header {
	grid-area: header;
	background-color: #cc0000;
	color: white;
	padding: 10px 20px;
	height: 80px;
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
}

nav {
	flex-grow: 1;
	text-align: center;
}

nav h1 {
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

nav h1 a {
	color: #fff;
	font-size: 14pt;
	font-weight: 200;
	letter-spacing: 10px;
	text-transform: uppercase;
}

header .menu {
	color: white;
	display: flex;
	align-items: center;
	gap: 20px;
}

header .menu a img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid white;
}

header label {
	font-size: 1rem;
}

main {
	display: grid;
	grid-template-areas:
		"nav input"
		"nav howls";
	grid-template-columns: auto minmax(0, 1fr);
	gap: 20px;
	max-width: 850px;
	margin: 20px auto;
}

#top {
	position: absolute;
	top: 0;
	visibility: hidden;
}

#backToTop {
	position: fixed;
	bottom: 50px;
	right: 20px;
	background-color: #990000;
	color: white;
	padding: 10px 15px;
	border-radius: 5px;
	cursor: pointer;
	z-index: 1;
}

nav.container {
	grid-area: nav;
	width: 200px;
	flex-grow: 0;
	padding: 10px;
	max-height: 250px;
	position: sticky;
	top: 68px;
}

nav ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

nav ul li {
	padding: 10px 5px;
	border-bottom: 1px solid #666;
	cursor: pointer;
}

nav ul li:hover {
	background-color: #f5f8fa;
}

nav ul li:last-of-type {
	border-bottom: none;
}

.container {
	background: #fff;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.container:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.userContainer {
	background: #ffffff;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
}

#howlInput {
	width: 100%;
	grid-area: input;
}

#howlInput.container {
	display: flex;
	flex-direction: column;
}

#howlInput textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	resize: none;
}

#howlInput button {
	align-self: flex-end;
	background-color: #f5f8fa;
	border: 2px solid #990000;
	color: #990000;
	padding: 10px 20px;
	border-radius: 10px;
	cursor: pointer;
	margin-top: 10px;
	font-weight: bold;
}

#profileSection {
	grid-area: input / input / howls / howls;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.profileInfo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

#profileName {
	margin: 0 0 5px 0;
	color: black;
}

#profileUsername {
	margin: 0;
	color: black;
}

#followButton {
	background-color: white;
	border: 2px solid white;
	color: #990000;
	padding: 8px 20px;
	border-radius: 20px;
	cursor: pointer;
	font-weight: bold;
	font-size: 14px;
	margin-left: auto;
}

#followButton:hover {
	background-color: #f5f8fa;
}

#followButton.following {
	background-color: transparent;
	color: white;
	border: 2px solid white;
}

#followButton.following:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.followingSection {
	background: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.followingHeader {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #990000;
}

.followingUser {
	display: flex;
	align-items: center;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 8px;
	transition: background-color 0.2s;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.followingUser:hover {
	background-color: #f5f8fa;
	text-decoration: none;
}

.followingAvatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	margin-right: 12px;
	object-fit: cover;
}

.followingInfo {
	flex: 1;
}

.followingName {
	font-weight: bold;
	color: #14171a;
	margin: 0 0 5px 0;
}

.followingUsername {
	color: #666;
	margin: 0;
	font-size: 14px;
}

.noFollowing {
	color: #666;
	text-align: center;
	font-size: 14px;
}

/********** HOWLS **********/

#howlsSection {
	grid-area: howls;
	width: 100%;
}

#howlsHeader {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #990000;
}

#howlList {
	grid-area: howls;
	width: 100%;
}

.howl {
	margin-bottom: 10px;
}

.howl:last-child {
	margin-bottom: 0;
}

.howl .user {
	font-weight: bold;
	margin-bottom: 5px;
}

.howl .content {
	margin-bottom: 10px;
}

.howl .actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	font-size: 0.85em;
}

.userInfo {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

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

.avatar {
	margin: 10px;
}

footer {
	background-color: #444;
	color: #aaa;
	font-size: 8pt;
	letter-spacing: 1px;
	padding: 25px;
	text-align: center;
	text-transform: uppercase;
}

main.profile-page {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 850px;
	margin: 20px auto;
	grid-template-areas: none;
	grid-template-columns: none;
}
