@font-face {
  font-family: main_font;
  src: url(Oswald-VariableFont_wght.ttf);
}

/* scrollbar always visible */
html {
  overflow-y: scroll;
}

body {
  background-color: black;
  margin: 0 auto;
  width: 79%;
  font-family: main_font;
  color:white;
  min-height:100vh;
  display:flex;
	flex-direction:column;
}

/* Style the top navigation bar */
nav {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  /* height: 70px; */
  display: flex;
  flex-wrap: wrap;
  align-items:center;
}

.nav_sel{
  text-decoration: underline;
  text-underline-offset: .7em;
}

h1 a {
  font-weight: normal;
  text-decoration: none;
}

.menu {
  margin-left: auto;
}

ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li {
  float: right;
  font-size: larger;
}

h1 a, 
li a,
.prev:hover,
.prev:focus, 
.next:hover,
.next:focus,
.close:hover,
.close:focus {
  color: rgb(211, 183, 0);
  /* color: rgb(14, 14, 10); */
}

.color_selected{
  color: rgb(211, 183, 0);
}

.color_not_selected{
  color: white;
}


li a {
  white-space: nowrap;
  display: block;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* Change the link color to #111 (black) on hover */
li a:hover {
  background-color: #111;
}

/* Create three equal columns that floats next to each other */
.column {
  float: left;
  width: 33.33%;
}

/* Clear floats after rows */ 
#content:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - makes a two column-layout instead of three columns */
@media screen and (max-width: 1500px) {
  .column {
    width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 900px) {
  .column {
    width: 100%;
  }
}

.container_with_margin{
  margin: 1em;
  cursor: pointer;
  /* transition: 0.3s ease; */
}

.still{
  /* border-radius: 1em; */
  width: 100%;
}

/* zoom to fit (1/1.85 = 54.054%) */
.container {
  width: 100%;
  padding-top: 54.054%;
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
}

.thumb{
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.container > .thumb {
  /* display: block; */
  position: absolute;
  top: 50%;
  left: 0;
  min-height: 100%;
  transform: translate(0, -50%);
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .3s ease;
  background-color: #00000058;
  cursor: pointer;
}

.container:hover .overlay, .container:active .overlay {
  opacity: 1;
}

.text {
  color: white;
  margin: 0px;
  /* font-family: Arial, Helvetica, sans-serif; */
  /* font-size: 30px; */
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.video_cont{
  margin: 0 auto;
  max-width: 1500px;
}

#content{
  flex-grow: 1;
  margin-bottom: 5em;
}

#back_arrow{
  position: absolute;
  left: -30px;
  top: -30px;
  padding: 30px;
  text-decoration: none;
  font-weight: bolder;
  font-size: xx-large;
  color: white;
}

#back_arrow:hover{
  color: rgb(211, 183, 0);
}

/* CSS for video descriptions */
.project {
  text-align: center;
  padding-bottom: 20px;
  position: relative;
}

p {
  color:white;
}

/***************************************************
  CSS for the modal
/**************************************************/

/* Style the Image Used to Trigger the Modal */
#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  /* display: block; */
  width: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

/* The Close Button */
.close {
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 16px 32px 16px 32px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

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

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}


/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  transform: translate(0%, -50%);
}

.prev{
  padding: 300px 96px 300px 16px;
}

#left_part {
  width: 50%;
  position: absolute;
}


/* Position the "next button" to the right */
.next {
  padding: 300px 16px 300px 96px;
  right: 0;
  border-radius: 3px 0 0 3px;
}


#footer{
  justify-content: center;
  display: flex;
  visibility: hidden;
}

#links{
  border-top: 0.12em solid white;
  margin-top: 40px;
  width: 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.social_img{
  margin: 6px;
}


#videoWrapper {
  position: relative;
  width: 70%;
  margin: auto;
  padding-bottom: 40%; /* 16:9 x 70%*/
  height: 0;
  display: block;
}
#videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#main_thumb {
  width: 70%;
  margin: auto;
}



#about{
  flex-grow:1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap-reverse;
  justify-items: space-between;
  margin-top: 40px;
}

#about_img{
  flex-grow: 1;
  width: 40%;
  min-width:500px;
}

/* Responsive layout */
@media screen and (max-width: 900px) {
  #about_img {
    min-width:50px;
    width: 100%;
  }
}

#about_txt{
  flex-grow: 1;
  padding-left: 5%;
  font-family:  Arial, Helvetica, sans-serif;
  line-height: 135%;
  width: 20%;
  min-width: 300px;
  text-align: justify;
}