* {
	box-sizing: border-box;
	font-family: "Open Sans", sans-serif;
}

body, html {
	background-color: black;
	color: #fff;
	padding: 0 !important;
	margin: 0;
	position: relative;
}

h2 {
	font-size: 2.5em;
	font-weight: 400;
}

#menu-button {
	cursor: pointer;
	display: none;
}


#menu {
	position: absolute;
	position: fixed;
	background-color: #fff;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	text-align: left;
	z-index: 10;
	transform: translateX(100%);
	display: none;
	transition: 0.3s;

	> ul {
		padding-top: 4em;
		margin: 0 auto;
		display: flex;
		flex-direction: column;
		width: max(50%, 400px);
		gap: 2em;
		color: #2A7C6F;

		> li {
			cursor: pointer;
			color: #2A7C6F;
			list-style-type: none;

			> p {
				font-size: 1.2em;
			}
		}
	}

	#cancel-button {
		position: absolute;
		top: 40px;
		right: 40px;
		cursor: pointer;
	}
}

#header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 0 min(5%, 3em);
	background-color: white;
	width: 100%;
}

.logo-title {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 2em;
	color: #2A7C6F;
	font-family: sans-serif;
}

#nav-items {
	color: black;
	margin-right: 5%;

	> ul {
		display: flex;
		flex-direction: row;
		list-style-type: none;
		gap: 0;

		> li{
			cursor: pointer;
			transition: 300ms;
			padding: 0 1em;
			line-height: 1em;
			font-size: 0.9em;
			font-weight: 300;
			text-align: center;
		}

		> .active {
			background-color: rgb(201, 201, 201);
			transition: none;
		}
	}
}

#nav-items > ul > li:hover {
	cursor: pointer;
	transition: 300ms;
	background-color: #F4F2EC;
}

#nav-items > ul > .active:hover {
	cursor: pointer;
	transition: 0;
	background-color: #F4F2EC;

}

.nav-item-label {
	font-size: 1.1em;
}

.carousel {
	height: 40em;
	background-color: #fff;
	width: 100%;
	border-bottom: 2px solid #fff;
	display: flex;
	overflow-x: hidden;
	position: relative;

	> img {
		height: 100%;
		min-width: 100%;
		object-fit: cover;
		animation: display 18s infinite;
		position: absolute;
		top: 0;
		left: 0;
	}
}


@keyframes display {
  0% {
    transform: translateX(200px);
    opacity: 0;
  }
  16.67% {
    transform: translateX(0);
    opacity: 1;
  }
  33.33% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-200px);
    opacity: 0;
  }
  100% {
    transform: translateX(-200px);
    opacity: 0;
  }
}


.carousel > img:nth-child(2) {
  animation-delay: 6s;
}
.carousel > img:nth-child(3) {
  animation-delay: 12s;
}

#welcome {
	border: 1px solid #2A7C6F;
	text-align: center;
	height: 30em;
	background-color: #2A7C6F;
	font-family: "Open Sans", sans-serif;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.welcome-text {
	width: max(50%, 400px);
	text-align: left;

	> p{
		font-family: Arial, Helvetica, sans-serif;
		line-height: 1.75em;
		font-size: 18px !important;
		font-weight: 400;
		letter-spacing: normal;
	}
}

#news-and-events {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	background-color: #fffefc;
	color: #2A7C6F;
	justify-content: center;
	align-items: center;

	> img {
		/* width: 50%; */
		flex: 1;
		object-fit: cover;
	}
}

.news-and-events-info {
	width: max(400px, 50%);
	padding: 3em;
	display: flex;
	flex-direction: column;
	align-items: start;
	text-align: left;

	> ul{
		text-align: left;
		margin: 0 auto;
		padding-left: 0;

		> li{
			margin-bottom: 2em;
			list-style-type: none;
			display: flex;
			flex-direction: row;
			align-items: flex-start;
			gap: 2em;
		}
	}
}

#message-from-the-dean {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 3em;
	padding: 4em 10%;
	background-color: #2A7C6F;
}

#message-from-the-dean {
	> img {
		box-shadow: -10px 10px #fff;
		width: min(480px, 90%);
	}

	> div > p {
		font-size: 18px;
		line-height: normal;
	}
	
}

#footer {
	text-align: center;
	font-weight: 300;
	color: #2A7C6F;
	background-color: #fff;
	border: 1px solid white;
}


/* Media queries */

/* Laptpos and larger devices */
@media (min-width: 1250px) {
	#message-from-the-dean {
		flex-wrap: nowrap;
	}
}

/* Smaller than laptops, large tablets */
@media(max-width: 1024px) {
	body {
		position: relative;
	}
	#nav-items {
		display: none;
	}

	#menu, #menu-button {
		display: block;
	}
}

@media (max-width: 760px) {
	.welcome-text > h2{
		font-size: 2em;
	}
	
	#news-and-events > img {
		width: 100% !important;
	}

	.news-and-events-info {
		width: 100%;
	}

	
	.logo-title {
		padding-top: 1em;
		display: flex;
		flex-direction: column;
		width: 100vw;
		text-align: center;
		gap: 0;

		> img {
			height: 2.5em;
		}

		> .text {
			font-size: 0.8em;
	
			> p {
				line-height: 1em
			};
		}

	}
	
}

.dropdown {
	position: relative;
	padding: 1em;
	> button {
		background-color: green;
		padding: 1em;
		color: black;
		border-radius: 0;
	}
}

.dropdown-contents {
	position: absolute;
	display: none;
	top: 100%;
	left: 0;
	width: 200%;
  z-index: 1;
	background-color: #fffefc;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-contents a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
	transition: 300ms;
}

.dropdown-contents a:hover {background-color: #F4F2EC;}

.dropdown:hover .dropdown-contents {
	display: block;
}

.menu-dropdown {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1em;
}

#student-sub-menu {
	transition: 300ms;
	display: none;
	> ul {
		list-style-type: none;

		> li > a {
			text-decoration: none;
		}
	}
}