/* Stylesheet for Philosophy Timeline */

/* Import google fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Roboto+Slab:wght@700&family=Sanchez:ital@0;1&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Quintessential&display=swap');

/* Global default styles */

* {
	margin: 0;

	padding: 0;
	border: none;
	box-sizing: border-box;
}

body {
	font-family: 'Sanchez', serif;
	font-weight: 300;
	color: #5a5a5a;
	background-color: #FCF8F1;
	max-width: 1200px;
	margin:auto;
	margin-top:1.3em;
}

#outer-div {
	margin:0 3em 0 3em;
}

/* Define paragraph.  Encourage hyphenation. Justified text. 
	very small gap between paragraphs.  Small indentation on first line.

*/

p {
	word-wrap: break-word;
	overflow-wrap: break-word;
	text-align: justify;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
	margin-bottom: 0.2em;
	text-indent:1.2rem;
}

/* First paragraph should not be indented */

p:first-of-type {
	text-indent:0;
}

/* Main headings - Formal serif style */

h2, h3 {
	font-family: 'Roboto Slab', serif;
	letter-spacing: 2px;
	color: #2d2d2d;
}

/* Formal display serif style */
h1 {
font-family: 'Merriweather', serif;
}

#logo {
	float: left;
	font-size: 1.5rem;
	margin-left: 0rem;
	margin-bottom:1rem;
	color:#2d2d2d
}

header>a {
	text-decoration: none;
}

header>h2 {
	font-family: 'Quintessential', cursive;	font-style:normal;
	font-size:xx-large;
}

/* Navigation links */

#menu {
	font-size: 1.1em;
	letter-spacing: 2px;
	float: right;
}

#menu li {
	display: inline;
	margin-right: 30px;
}

#menu a {
	text-decoration: none;
	color: inherit;
}

#menu a:hover {
	border-bottom: 1px solid #7a7a7a;
}

#menu .active {
	border-bottom: 1px solid #7a7a7a;
}

#main-content {
	clear: both;
	display: flex;  /* middle column is of flexible width */
	justify-content: space-around;
	align-items: stretch;
}

#main-content h3 {
	margin-bottom: 0.5em;
	margin-top:0;

}

#main-content h4 {
	margin-bottom: 0.3em;

}

/* Styling main content */

.column {
	float: left;
	padding-right: 1.2rem;
}

#main-image {
	width: 10em;
	flex-shrink: 0
}

#main-image>img {
	width: 100%;
}

#timeline-intro {
	flex: 1;
}

#timeline-intro > h2 {
	margin-bottom:0.7rem;
}

/* Styling timeline on right0hand-side */

#timeline {
	width: 18em;
	flex-shrink: 0;  /* of fixed width */
	text-align:left;
}

/* Clear floats after the columns */
#main-content:after {
	content: "";
	display: table;
	clear: both;
}

#timeline h4 {
	margin-top: 0.8em;
	margin-bottom: 0.3em;
	font-size:0.9rem;

}

#timeline a {
	color:#5a5a5a;
	text-decoration:none;
	font-size:0.8rem;
	display:block;
}

#timeline a:hover {
	background-color: #E0DACF;
}

/* Footer styling for social media links */

.social-networks {
	text-align: center;
}

.social-networks>li {
	display: inline;
}

.social-networks i {
	font-size: 160%;
	margin: 1%;
	padding: 5%;
	color: #3a3a3a;
}

/* Styling for sign-up form */
.form-section {
    clear: both;
    background-size: cover;
    background-position: center;
    height: 900px;
}

.signup-form {
    
    margin-top:3em;
    color: #fff;
    background-color: rgba(79, 74, 74, 0.6);
    max-width: 400px;
    position:relative;
    padding:30px;
}

.signup-form h2 {
    color:  #FCF8F1;
    margin-bottom: 20px;
}

.text-input {
    background: transparent;
    color:  #FCF8F1;
    width: 100%;
    height: 25px;
    margin: 5px 0 20px 0;
    border: 1px solid #fafafa;
    border-radius: 2px;
}

.text-input:hover {
    border-color: #f16c6b;
}

.join-button {
    margin-top:20px;
    border-radius: 2px;
    padding: 15px 32px 15px 32px;
    text-align: center;
    font-size: 100%;
    background-color: #5a5a5a;
    color:  #FCF8F1;
    display:block;
}

.join-button:hover {
    background-color: #fafafa;
    color: #5a5a5a;;
}

/* Responsive styling */

@media (max-width: 60rem) {
	/*  Move menu to the left and under the title for narrower screens. */
	
	#menu {
		float: left;
		margin: 1em;
		margin-left:0;
	}
  }

@media (max-width: 50rem) {
	/*  Move menu to the left and under the title for narrower screens. */

	#main-image {
		width: 0em;
	}

	#logo {
		margin-left:0;
	}
	
	.column {
		padding:0;
	}

	#main-content {
		margin:0;
	}

	#timeline {
		padding-left:1rem;
	}

	#outer-div {
		margin:0;
		margin-left:2rem;
		margin-right:2rem;
	}
}

/* Mobile and below */

@media (max-width: 43rem) {
	/*  Move menu to the left and under the title for narrower screens. */
	#main-content {
		display:block;
	}

	.column {
		padding:0;
	}

	#outer-div {
		margin:0;
		margin-left:1rem;
		margin-right:1rem;
	}

	#timeline {
		margin-top:1.5rem;
		padding-left:0;
	}
}