* {
	margin: 0;
	padding: 0;
}

html {
	background-color: #A7C7E8;
}

.font-raleway {
	font-family: 'Raleway', sans-serif;
}

.font-dosis {
	font-family: 'Dosis', sans-serif;
}

.auto {
	width: 90vw;
	margin: auto;
}

/* Navigation bar CSS */
header {
	position: fixed;
	z-index: 1;
}

nav {
	width: 100vw;
	overflow: auto;
	transition: 0.3s;
}

nav div {
	float: right;
	margin: 20px 15px 20px 30px;
	padding: 8px;
}

nav a {
	margin: 20px 15px;
	padding: 8px;
	text-decoration: none;
	color: black;
	font-size: 18px;
	transition: 0.3s;
}

nav a:hover {
	color: white;
	transition: 0.3s;
	letter-spacing: 1px;
}

#logo {
	margin-left: 30px;
	border: 1px solid black;
	border-radius: 100%;
	float: left;
}

#logo:hover, .social-media:hover {
	letter-spacing: 0px;
	border-color: white;
}

.social-media {
	margin: 20px 0px;
}

.active {
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
	background-color: rgba(128,155,206,1);
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
	transition: 0.3s;
}

.active a {
	color: white;
}

.active #logo, .active .social-media {
	border-color: white;
}

.active a:hover {
	color: #320E3B;
}

.active #logo:hover, .active .social-media:hover {
	letter-spacing: 0px;
	border-color: #320E3B;
}

/* First section of main webpage */

.fullscreen {
	width: 100vw;
} 

.container-div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100vh;
}

#homepage-image {
	background: url(../img/IMG_5538.jpeg) no-repeat bottom;
	background-size: cover;
	background-attachment: fixed;
}

#homepage-image h1 {
	font-size: 50px;
	letter-spacing: 10px;
	text-align: center;
}

#homepage-image h1, #homepage-image h3, #homepage-image ul {
	font-weight: normal;
	margin: 0 auto;
	color: white;
	background-color: rgba(0,0,0,0.4);
}

#homepage-image h3 {
	text-align: center;
}

#homepage-image h3, #homepage-image ul {
	font-size: 20px;
	list-style: none;
}

/* This is for typewriter*/

.line-1{ 
    border-right: 2px solid rgba(255,255,255,.75);
    white-space: nowrap;
    overflow: hidden;   
}

/* Animation */
#homepage-image li:nth-child(1){
	animation: typewriter-one 1.5s steps(10, end) 1s 1 normal both,
            blinkTextCursor 700ms steps(10, end) infinite normal;
}

#homepage-image li:nth-child(2){
  	animation: typewriter-two 1.8s steps(11, end) 3s 1 normal both,
            blinkTextCursor 700ms steps(11, end) infinite normal;
}

#homepage-image li:nth-child(3){
  	animation: typewriter-three 2.5s steps(20, end) 6s 1 normal both,
            blinkTextCursor 700ms steps(20, end) infinite normal;
}

@keyframes typewriter-one{
  from{width: 0;}
  to{width: 4.1em;}
}

@keyframes typewriter-two{
  from{width: 0;}
  to{width: 5.5em;}
}

@keyframes typewriter-three{
  from{width: 0;}
  to{width: 8.5em;}
}

@keyframes blinkTextCursor{
  from{border-right-color: rgba(255,255,255,.75);}
  to{border-right-color: transparent;}
}

/* Second section of main webpage */

#summer-plans, #experiences {
	height: auto;
}

#summer-plans {
	background-color: #A7C7E8;
}

#summer-plans h2, #education h2, #experiences h2 {
	font-size: 50px;
	margin: 70px auto;
	color: #320E3B;
}

#summer-information {
	display: flex;
	justify-content: space-around;
	margin: 0px auto 70px;
}

#summer-information i {
	font-size: 300px;
	color: white;
}

#summer-information div {
	width: 50vw;
	padding: 30px 0px;
	margin: 0px;
}

#summer-information h3 {
	text-align: center;
	font-size: 35px;
	margin-bottom: 20px;
	color: white;
}

/* Third section of main webpage */

#education {
	background-color: #809BCE;
	min-height: 100vh;
	height: auto;
}

#education-image {
	/*background: url(https://images.unsplash.com/photo-1501349800519-48093d60bde0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2850&q=80) no-repeat center;
	background-size: cover;*/
	background-color: #320E3B;
	text-align: center;
}

#education-image h2 {
	color: #CCDBDC;
}

.school {
	background-color: #A7C7E8;
	padding: 30px;
	margin: 30px 0px;
	width: 50vw;
	border-radius: 20px;
	box-shadow: 1px 1px rgba(0,0,0,0.2);
}

#andover {
	float: right;
}

/* Fourth sectoin */

#experiences {
	min-height: 100vh;
}

#experiences .auto {
	margin: 0px auto 70px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-around;
}

.experience {
	position: relative;
	min-width: 200px;
	width: 20vw;
	height: 200px;
	margin: 10px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #320E3B;
  overflow: hidden;
  width: 0;
  height: 100%;
  transition: .5s ease;
}

.experience:hover .overlay {
  width: 100%;
}

.text {
  /*white-space: nowrap;*/ 
  color: white;
  font-size: 20px;
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

/* Fifth section: About; */
#about {
	background-color: #320E3B;
}

#about-image {
	background: url(../img/trin.jpg) no-repeat center;
	background-size: cover;
	border-radius: 100%;
	height: 500px;
	width: 500px;
	transition: 0.3s;
}

#about-image:hover {
	cursor: pointer;
	height: 520px;
	width: 520px;
	transition: 0.3s;
}

#about .auto {
	width: auto;
}

.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	padding-top: 100px; /* Location of the box */
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0);
	background-color: rgba(167,199,232,0.9);
}

.modal-content {
	margin: auto;
	padding: 50px;
	display: block;
	background-color: #F7F7FF;
	width: 70vw;
	height: 300px;
	box-shadow: 0.5px 0.5px rgba(0,0,0,0.4);
}

#img01 div {
	height: 1px;
	background-color: lightgrey;
	width: 500px;
	margin: 10px auto 20px;
}

#img01 h3{
	font-size: 30px;
	text-align: center;
}

#img01 ul {
	margin-left: 100px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Footer */
footer {
	width: 100vw;
	margin: 30px 0px;
	text-align: center;
	font-size: 20px;
	color: #320E3B;
}

/* Phone design! */
@media only screen and (max-width: 500px) {
	#about-image {
		height: 300px;
		width: 300px;
		transition: 0.3s;
	}

	#about-image:hover {
		height: 320px;
		width: 320px;
		transition: 0.3s;
	}
}