.profilePage {
	grid-template-columns: 600px 1fr;
	grid-template-rows: none;
	grid-template-areas: "infoGrid map";
	padding-right: 24px;
	width: 100%;
	position: relative;
	display: grid;
	gap: 24px;
	box-sizing: border-box;
}

.profileGrid {
	display: flex;
	flex-direction: column;
	grid-gap: 48px;
	grid-area: infoGrid;
	margin: 48px auto;
	/* grid-template-rows: "photoInfo";
	grid-template-columns: 140px  minmax(0, 1fr);
	grid-template-areas: */
		/* "photo 		info"
		"connectRT 	connectRB"
		"connectT 	connectB"
		"connect 	connect"
		"linkT 		linkB"
		"link 		link"
		"interestT 	interestB"
		"interest 	interest"; */
}

.connectButtonGrid {
	grid-area: connectB;
	display: flex;
	gap: 16px;
}

.photoAndInfoRow {
	grid-template-columns: 108px 1fr;
	display: grid;
	gap: 24px;
	box-sizing: content-box;
	padding: 0 24px;
}

#photoCell {
	grid-column: 1;
	height: fit-content;
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: space-around;
	align-items:last baseline;
}

#profPhoto {
	display: block;
	margin-right: 0;
	width: 100px;
	height: 100px;
	border-radius: 60px;
	border-width: 4px;
	border-style: solid;
	border-color: #333;
	background-color: #ddd;
	text-align: center;
	box-shadow: 0  4px 8px rgba(0,0,0,0.2);
	
}

#profInitials {
	font-size: 55px;
	font-weight: bold;
	color: #444;
	height: 55px;
	line-height: 100px;
	font-family: "Garamond", "Georgia", "Times New Roman", "Serif";
}


#qr-button {
	width: 108px;
	margin-top: 16px;
	padding: 8px;
	background: rgb(255,255,255);
	background: linear-gradient(145deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 48%, rgba(241,241,241,1) 63%);
}

#qr-button-icon {
	align-self: end;
	width: 30px;
}


#profInfo {
	grid-column: 2;
	margin-left: 0px;
	margin-right: 24px;
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: space-evenly;
}

#nameLarge {
	word-break: normal;
	overflow-wrap: break-word;
}

#mapShowID {
	grid-area: map;
	width: auto; 
	height: auto;
	border-radius: 12px;
	box-shadow: 0px 2px 8px rgba(0,0,0,0.5);
	overflow: hidden;
	margin: 0;
	box-sizing: border-box;
}

.editButtons {
	display: inline-block;
}

#editProfileLink {
	grid-area: linkB;
	transition: 0.5s;
}

.linkRow {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	grid-template-areas: 
		"linkT 	linkT"
		"link 	link";
	column-gap: 24px;
	row-gap: 16px;
	justify-content: center;
}

.linkTitle {
	grid-area: linkT;
	margin-top: 0px;
	margin-bottom: 0px;
	justify-self: center;
}

.linkRowUser.linkRow {
	grid-template-areas: 
		"linkT 	linkB"
		"link 	link";
}

.linkTitleUser.linkTitle {
	justify-self: end;
}
	
.linkBoxes {
	grid-area: link;
	text-align: center;
}



.interestRow {
	display: grid;
	grid-template-rows: auto auto;
	grid-template-areas: 
		"interestT 	interestT"
		"interest 	interest";
	column-gap: 24px;
	row-gap: 16px;
	justify-content: center;
	
}

.interestRowUser.interestRow {
	grid-template-areas: 
		"interestT 	interestB"
		"interest 	interest";
}

.interestTitle {
	grid-area: interestT;
	margin-top: 0px;
	margin-bottom: 0px;
	justify-self: center;
}

.interestTitleUser.interestTitle {
	justify-self: end;
}

.interestBoxes {
	grid-area: interest;
	display: block;
	margin-top: 0px;
	padding: 0px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.interestBox {
	display: flex;
	gap: 12px;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	color: #fff;
	width: 150px;
	min-height: 240px;
	vertical-align: text-top;
	background-color: #444;
	border-radius: 5px;
	transition: 0.2s;
	padding: 24px 0;
}

.interestBox:hover {
	background-color: #eee;
	color: #222;
	box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.profIntPhoto {
	width: 100px;
	height: 100px;
	border-radius: 100px;
	border-width: 6px;
	border-style: solid;
	border-color: #eee;
}

.profIntText {
	text-align: center;
	font-weight: 300;
}

.intType {
	width: 50px;
	height: auto;
}

.prof-btn-wrap {
	margin-top: 8px;
	white-space: normal;
}

#addInterestLink {
	grid-area: interestB;
}

.connectionRow {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	grid-template-areas: 
		"connectT 	connectB"
		"connect 	connect";
	column-gap: 24px;
	row-gap: 16px;
	justify-content: center;
	align-items: center;
}

.connectionTitle {
	grid-area: connectT;
	margin: 0;
	justify-self: end;
}

.connectionBoxes {
	grid-area: connect;
	overflow: hidden;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	gap: 5px;
	width: 100%;
}


.connectionBox {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	color: #333;
	width: 80px;
	height: 110px;
	vertical-align: middle;
	background-color: #eee;
	transition: 0.2s;
	gap: 8px;
	
}

.connectionBox:hover {
	background-color: #777;
	border-width: 3px;
	border-color: #222;
	border-radius: 5px;
	color: #eee;
	box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.profConText {
	display:block;
    text-align: center;
    word-wrap: break-word;
    margin: 8px 0;
	font-size: 12px;
	vertical-align: bottom;
}

.profConPhoto {
	margin: 5px 10px 0px 10px;
	width: 50px;
	height: 50px;
	border-radius: 50px;
	border-width: 4px;
	border-style: solid;
	border-color: #333;
	background-color: #bbb;
	text-align: center;
}

#profConInitials {
	font-size: 30px;
	font-weight: bold;
	color: #555;
	height: 30px;
	line-height: 50px;
	font-family: "Garamond", "Georgia", "Times New Roman", "Serif";
}

.requestRow {
	width: fit-content;
	margin: 0 auto;
	border-radius: 5px;
	background-color: #fff;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: normal;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	cursor: pointer;
	transition: 0.2s;
}

.requestRow:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

#connectionActions {
	grid-area: response;
	display: flex;
	gap: 24px;
	vertical-align: middle;
	margin: 0px;
	text-decoration: underline;
}

.connectionActionsButton {
	width: auto;
	font-size: large;
	font-weight: 700;
	border-radius: 100px;
	padding: 12px 24px;
	background: rgb(255,255,255);
	background: linear-gradient(145deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 48%, rgba(241,241,241,1) 63%);
	box-sizing: border-box;
	text-decoration: none;
}

#continueButton {
	font-weight: bold;
	text-align: center;
	background-color: #ccc;
	white-space: pre-wrap;
}

#continueButton:hover {
	background-color: #777;
}

#conF* {
	font-weight: bold;
	text-align: center;
	vertical-align: text-bottom;
}


#contButtonText {
	font-weight: bold;
}


.requestTitle {
	grid-area: connectRT;
	margin-top: 0px;
	margin-bottom: 0px;
}

.requestRow a:hover {
	text-decoration: none;
}

.requestRow:active {
	transform: scale(0.9);
}



#requestActions {
	grid-area: connectRB;
	display: inline;
}

#photoUpdateInfo {
	display: none;
	opacity: 0;
	border: solid 3px #333;
	border-radius: 5px;
	padding: 8px 12px;
	font-size: 14px;
	background-color: #444;
	color: #eee;
	transition: opacity 0.3s;
}

#linkHint {
	color: #666;
	font-size: 19px;
}


@media only screen and (max-width: 850px) {

	.profilePage {
		grid-template-rows: 1fr 300px;
		grid-template-columns: none;
		grid-template-areas: "infoGrid" "map";
	}

	#profInfo {
		margin: 0;
	}

}

@media only screen and (max-width: 1200px) {
	#conF7 {
		display: none;
	}
}

@media only screen and (max-width: 1100px) {
	#conF6 {
		display: none;
	}
}

@media only screen and (max-width: 1000px) {
	#conF5 {
		display: none;
	}
}

@media only screen and (max-width: 900px) {
	#conF4 {
		display: none;
	}
}

@media only screen and (max-width: 800px) {
	#conF3 {
		display: none;
	}
}

/*For mobile devices*/
@media only screen and (max-width: 500px) {

	.profConText { 
		font-size: 10px;
	}

	#date {
		font-size: 0.8em;
	}

	.connectButtonGrid {
		grid-gap: 0px;
	}

	.profilePage {
		padding: 0;
	}

	#profInfo form {
		width: 150px;
	}

	.photoAndInfoRow {
		padding-right: 0;
		padding-left: 0;
	}

	.profileGrid {
		margin-top: 16px;
	}

	
	.linkBox {
		width: 120px;
	}

	.interestBox {
		width: 120px;
	}

	.connectionBox {
		width: 60px;
	}

	.profConPhoto {
		margin-right: 0;
		margin-left: 0;

	}
}
