
* {box-sizing: border-box;} /*forgot what this does*/

/*this prevents 'float' from overflowing*/
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

header
{
	text-align: center;
	width: 100%;
	background-color: black;
	padding: 0.6em;
	color: #ccc;
}

footer
{
    margin-top: 1em;
    padding-top: 1em;
    padding-bottom: 1em;
    background-color: black;
}

body
{
	font-family: "Arial Rounded MT Bold", sans-serif;
	text-align: center;
	margin: 0;
	word-break: break-word;
    background-color: #333;
    color: #bbb;
}

#logo
{
	display: inline-block;
	font-family: Arial, serif;
	font-size: 2.5em;
	font-weight: bold;
}

.ReplyFormLink
{
	display: inline-block;
	font-weight: bold;
	cursor: pointer;
	color: green;
}
.Reply2ReplyForm
{
	display: inline-block;
	font-weight: bold;
	cursor: pointer;
	color: green;
	margin-top: 0.2em;
}
.ReplyingTo
{
	font-style: italic;
}

hr
{
	margin-bottom: 1em;
}

/* Full-width input fields */
input[type=text], input[type=password]
{
	width: 100%;
	display: inline-block;
	padding: 0.8em 0;
	margin-top: 0.3em;
	margin-bottom: 1.3em;
	background-color: #f1f1f1; /*a grey tone*/
	color: black;
}

.description
{
	display: inline-block;
	padding-top: 0.5em ;
	padding-bottom: 0.5em ;
}

.StartDiscussion
{
	display: inline-block;
	color: green;
	cursor: pointer;
	font-weight: bold;
	padding-top: 0.1em;
	font-family: cursive;
	font-size: 1.3em;
}

.Discussion
{
    /*border: solid 0.1em lightgrey;*/
    text-align: left;
    margin-left: 0.6em;
    margin-right: 0.6em;
}

.PostComment
{
	text-align: left;
    display: inline-block;
    margin-bottom: 0.6em;
    width: 80%;
    /*border: black groove 0.01em;*/
    border-radius: 1em;
    padding: 0.5em;
}

.ResponseNameAndDate
{
	display: inline-block;
	width: 100% ;
    text-align: left;
}

#Comment , #Response
{
	width: 100%;
	padding: 0.8em 0;
	margin-top: 0.3em;
	margin-bottom: 1.3em;
	background-color: #f1f1f1; /*a grey tone*/
	color: black;
	font-family: cursive;
}

.Replies
{
	display: inline-block;
	width: 70%;
	background-color: lightskyblue ;
	border-radius: 0.4em;
	margin: 0.1em;
	float: right;
	text-align: left;
	padding: 0.6em;
	color: #333;
}

input[type=text]:focus, input[type=password]:focus
{
	background-color: #ddd; /* a tone of grey */
	outline: none;
}

button /* all buttons have these properties */
{
	color: white;
	padding: 0.8em;
	cursor: pointer;
	opacity: 0.9;
	border: none;
}

button:hover
{
	opacity:1;
}

/* 
clear floats
the submit and cancel buttons were overstepping the border
the next block of code prevents floats from over stepping 
*/
.FloatFix::after 
{
	content: "";
	clear: both;
	display: table;
}

.container
{
    display: none;
	font-family: "Arial Rounded MT Bold", sans-serif;
	position: fixed; /*appears in same position, even after scroll*/
	z-index: 1;  /*appear on top of page*/ 
	width: 100%;
	height: 100%;
	overflow: auto; /*enable scroll if needed*/
	left: 0; /*relative positioning from nearest ancestor */
	top: 0; /*relative positioning from nearest ancestor */
	background-color: rgba(0, 0, 0, 0.6); /* a dark blue tone #474e5d, rgb=71,78,93 the 0.5 is the opacitys*/
}
.ReplyContainer
{
    display: none;
	font-family: "Arial Rounded MT Bold", sans-serif;
	position: fixed; /*appears in same position, even after scroll*/
	z-index: 1;  /*appear on top of page*/ 
	width: 100%;
	height: 100%;
	overflow: auto; /*enable scroll if needed*/
	left: 0; /*relative positioning from nearest ancestor */
	top: 0; /*relative positioning from nearest ancestor */
	background-color: rgba(0, 0, 0, 0.6); /* a dark blue tone #474e5d, rgb=71,78,93 the 0.5 is the opacitys*/
}

#DiscussionForm /* form elements */
{
	position: relative;
	color: black; /*writing color*/
	text-align: left;
	opacity: 1; /* no transparency */
	padding: 1em;
	/*padding-top: 0;*/
	background-color: #fefefe; /* a whitish tone */
	margin: 6% auto; /*auto side margin so positioned in center*/ 
	border: 0.1em solid #888; 
	width: 60%; /* depends on screen width */
}
#ReplyDiv /* form elements */
{
	position: relative;
	color: black; /*writing color*/
	text-align: left;
	opacity: 1; /* no transparency */
	padding: 1em;
	/*padding-top: 0;*/
	background-color: #fefefe; /* a whitish tone */
	margin: 6% auto; /*auto side margin so positioned in center*/ 
	border: 0.1em solid #888; 
	width: 60%; /* depends on screen width */
}

.ReplyButtonAlone , .SubmitButtonAlone
{
	background-color: #0E0;
    border-radius: 5%;
    border-radius: 2.5em;
    padding: 0.5em;
}

.LikeSide
{
    /*border-right: solid 0.1em black;*/
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    padding-right: 0.45em;
    display: inline-block;
    cursor: pointer;
}
.DislikeSide
{
	border-left: solid 0.1em black;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    display: inline-block;
}
.ReplyLikeSide
{
	/*border-right: solid;*/
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    padding-right: 0.45em;
    display: inline-block;
    cursor: pointer;
}
.ReplyDislikeSide
{
	border-left: solid 0.1em black;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    display: inline-block;
}

.LikeOrDislike
{
	display: inline-block;
    border: solid 0.1em black;
    border-radius: 17%;
    padding-left: 0.75em;
    padding-right: 0.75em;
    /*padding-top: 0.25em;*/
    /*padding-bottom: 0.35em;*/
    margin-left: 0.5em;
    margin-right: 1em;
    margin-top: 0.2em;
}

.LikeButton
{
	cursor: pointer;
    padding-right: 0.1em;
}
.DislikeButton
{
	cursor: pointer;
    padding-left: 0.30em;
    padding-right: 0.1em;
}

.SubmitButtonSpan
{
	display: inline-block;
	width: 100%;
	text-align: center;
	font-weight: bold;
}

.close /* the close button 'x' */
{
	font-weight: bold;
	font-size: 2em;	
	color: #474e5d; /* a dark blue tone #474e5d*/
	position: absolute; /*position relatiove to parent*/
	right: 2%;
	top: 0;
	display: inline-block;
}

.close:hover, .close:focus
{
	color: #f44336; /* a redish tone */
	cursor: pointer;
}

.PostError , .ReplyError
{
	color: red;
	display: none;
}

#PostError_Hateword , #ReplyError_Hateword
{
	font-weight: bold;
	color: red ;
}

#X_CloseForm
{
	/*display: inline-block;*/
	position: absolute;
	right: 1%;
	top: 1%;
	/*float: right;*/
	color: red;
	cursor: pointer;
	border: 0.1em solid black;
	width: 1em;
	height: 1em;
	font-size: 1em;
	font-weight: bold;
}

.PostImgDiv
{
	display: inline-block;
    width: 40%;
}
.ReplyImgDiv
{
	display: inline-block;
    width: 50%;
}
.PostImg , .ReplyImg
{
	max-width: 100%;
	max-height: 80vh;
}

.YouTubePostVidDiv, .PostShortsDiv 
{
	display: inline-block;
	width: 40%;
	text-align: center;
}
/*.PostShortsDiv
{
	display: inline-block;
    max-height: 100vh ;
}*/

.YouTubeReplyVidDiv, .ReplyShortsDiv
{
    display: inline-block;
    width: 100%;
    text-align: center;
}

.Nickname , .ReplyNickname
{
	font-style: italic;
}

.NavPageNumbers
{
 	border: solid black 0.2em;
    display: inline-block;
    margin: 0.2em;
    padding-left: 0.3em;
    padding-right: 0.3em;
    cursor: pointer;
    background-color: black;
    color: blueviolet;
}
.PageBeingShown
{
    border: none;
    background: none;
    color: grey;
    cursor: auto;
}

nav
{
	margin-bottom: 1em;
}

/* for medium screens e.g. iPads in portrait mode */
@media only screen and (max-width: 980px)
{
	#DiscussionForm , #ReplyDiv
	{
		width: 80%;
	}
	.ReplyImgDiv
	{
		width: 50%;
	}
}
@media only screen and (max-width: 860px)
{
	.ReplyImgDiv
	{
		width: 56%;
	}
}
@media only screen and (max-width: 820px)
{
	.PostImgDiv , .YouTubePostVidDiv , .PostShortsDiv
	{
		width: 45%;
	}
}
@media only screen and (max-width: 530px)
{
	.PostImgDiv , .YouTubePostVidDiv , .PostShortsDiv
	{
		width: 50%;
	}
}
@media only screen and (max-width: 510px)
{
	.PostImgDiv , .YouTubePostVidDiv , .PostShortsDiv
	{
		width: 54%;
	}
}
@media only screen and (max-width: 482px)
{
	.PostImgDiv , .YouTubePostVidDiv , .PostShortsDiv
	{
		width: 64%;
	}
}
@media only screen and (max-width: 470px)
{
	.PostImgDiv , .YouTubePostVidDiv , .PostShortsDiv
	{
		width: 70%;
	}
}
@media only screen and (max-width: 400px)
{
	.PostImgDiv , .YouTubePostVidDiv , .PostShortsDiv
	{
		width: 75%;
	}
}
@media only screen and (max-width: 300px)
{
	.PostImgDiv , .YouTubePostVidDiv , .PostShortsDiv
	{
		width: 90%;
	}
}
@media only screen and (max-width: 210px)
{
	.PostImgDiv , .YouTubePostVidDiv , .PostShortsDiv
	{
		width: 100%;
	}
}
@media only screen and (max-width: 760px)
{
	.ReplyImgDiv
	{
		width: 62%;
	}
}
@media only screen and (max-width: 700px)
{
	.ReplyImgDiv
	{
		width: 69%;
	}
}
@media only screen and (max-width: 650px)
{
	.ReplyImgDiv
	{
		width: 75%;
	}
}
@media only screen and (max-width: 565px)
{
	.ReplyImgDiv
	{
		width: 84%;
	}
}
@media only screen and (max-width: 530px)
{
	.ReplyImgDiv
	{
		width: 90%;
	}
}
@media only screen and (max-width: 430px)
{
	.ReplyImgDiv
	{
		width: 100%;
	}
}

@media only screen and (max-width: 350px)
{
	#logo
	{
		font-size: 2em;
	}
}
@media only screen and (max-width: 240px)
{
	#logo
	{
		font-size: 1.7em;
	}
}
@media only screen and (max-width: 200px)
{
	#logo
	{
		font-size: 1.2em;
	}
}

/* for smaller screens e.g. phones in landscape mode */
@media only screen and (max-width: 600px)
{
	#DiscussionForm , #ReplyDiv
	{
		width: 90%;
	}
	.SubmitButtonAlone
	{
		width: 100%;
	}
}
