*{
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
}

body{
  color: rgb(235, 232, 240);    
  margin: 3rem;

  display: grid;
  grid-template-areas: 
  "header     header      header      header"
  "bio        bio     bio     bio"
  "projects   projects    projects        projects"
  "projects   projects    projects        projects"
  "footer     footer      footer      footer";

  font-family: 'Source Sans Pro, sans-serif';
  background-image: url('../media/tower_TEMP.png');background-size:cover;background-position: center; background-attachment: fixed; background-repeat: repeat-y;
}

@media screen and (min-width: 470px)
{
  #contactDropdown{
    display: none;
  }
  body{
    background-image: url('../media/tower_TEMP.png');background-size:cover;background-position: center; background-attachment: fixed; background-repeat: repeat-y;
  }
}
@media screen and (max-width: 470px)
{
  #contact{
    display: none;
  }

  .subpageLink {
    padding-left: 20%;
  }
}

header{
  background-color: #4991a5;;

  grid-area: header;

  margin-left: -3rem;
  margin-right: -3rem;
  margin-top: -3rem;
  margin-bottom: 0.5rem;

  padding: 0.5rem;
  padding-bottom: 0.4rem;
}

#navigation {
  font-size: 18px;
}

@media screen and (max-width: 470px)
{
  #navigation{
    padding-left: 0.01rem;
    padding-right: 0.01rem;
    font-size: 0.01px;
    text-align: center;
  }

  .dropdown-content
  {
    text-align: left;
  }
}

#navigation a{
  text-decoration: none;
  color: rgb(235, 232, 240); 
  font-size: 18px;
}

#navigation a:visited {
  color: rgb(235, 232, 240); 
}

#navigation a:link {
  color: rgb(235, 232, 240); 
} 
#navigation :focus{
  color: #b893fc;
} 
#navigation a:hover{
  color: rgb(208, 140, 240);
}
#navigation a:active{
  color: #e8acf0;
}

#title{
  margin-left: 0.5rem;
  margin-bottom: -1rem;
  margin-top: -1rem;
}

/* Dropdown Button */
.dropbtn {
  background-color: #4991a5;
  color: rgb(232, 229, 236);

  margin-left: 0rem;
  padding: 16px;
  padding-top: 5px;

  font-size: 18px;

  border: none;
  cursor: pointer;
  border-radius: 3px;

  width: 6rem;
  height: 2rem;

  grid-area: projects;
  grid-column-start: 0;
  grid-column-end: 1;
}

.dropbtn:hover, .dropbtn:focus {
  background-color: #42899d;
  color: rgb(232, 229, 236);
}

.dropdown {
  position: relative;
  display: inline-block;
  margin-top: 0.02rem;
  z-index: 9999;
}

.dropdown-content {
  display: none;
  position: absolute;

  background-color: #42899d;
  border: #6358a1;

  border-radius: 5px;
  min-width: 140px;

  margin-left: 0.5rem;
  width: auto;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;

  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #4991a5;
  border-radius: 3px;
}
.show {display:block;}

.tooltip-text {
  visibility: hidden;
  position: absolute;
  z-index: 1;
  color: white;
  font-size: 12px;
  background-color: #515264;
  border-radius: 4px;
  padding: 5px 5px 5px 5px;
  top: 40px;
  left: -50%;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
}

.tooltip {
  position: relative;
  display: inline-block;
  text-align: center;
}

.subpageLink a{
  text-decoration: none;
  font-size: 20px;
}
.subpageLink a:focus{
  text-decoration-line: underline;
} 
.subpageLink a:hover{
  text-decoration-line: underline;
}

/* Standard Links */
a{
  text-decoration: none;
}
a:link, a:visited{
  color: #f3b577;
} 
a:focus{
  color: #fcce93;
  text-decoration-line: underline;
} 
a:hover{
  color: rgb(244, 155, 87);
  text-decoration-line: underline;
}
a:active{
  color: #f0d8ac;
}

h1, h2, h3, h4{
  font-family: 'Rowdies', cursive;
  font-weight: normal;
  font-size: 27px;
}

h2{
  margin-top: 4rem;
}

h4{
  font-size: 20px;
}

#bio h4{
  margin-bottom: 0.25rem;
}

#bio a{
  font-size: 20px;
  text-decoration: none;
}

img{
  border-radius: 3px;
  border: #22305c;
  border-style: solid;
  border-width: 3px;
}

header img{
  float: right;
  width: 8rem;

  margin-bottom: -.25rem;
  margin-right: -.5rem;
  border-radius: 0px;
  border: none;
}
#contact {
  grid-area: contact;
  text-align: right;
  margin-top: -2rem;
  padding-right: 1rem;
}

#contact a:visited, #contact a:link{
  color: rgb(232, 229, 236);
}

h1 a {
  font-family: 'Rowdies', cursive;
  font-weight: normal;
  font-size: 27px;
  text-decoration: none;
}

/* Table */
table-wrapper {
  width: min(900px, 100% - 3rem);
  margin-inline: auto;
}

table {
  width: 100%;
  background-color: #4991a5;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: left;
}

th {
  background-color: #4991a5;
}

tr:nth-of-type(2n)
{
  background-color: #2d747e;
}

@media (max-width: 650px) {

  th {
    display: none;
  }
  td {
    display: grid;
    grid-template-columns: 15ch auto;
  }

  th, td {
    padding: 0.5rem;
  }

  td::before {
    content: attr(data-cell) ": ";
    font-weight: 700;
    text-transform: capitalize;
  }
}

/* Slides */
* {box-sizing:border-box}

/* Slideshow container */
.slides-container {
  /*max-width: 1000px;*/
  position: relative;
  margin: auto;
  text-align: center;
  z-index: 0;
}

/* Hide the images by default */
.slides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: relative;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

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

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
  text-decoration: none;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 20px;
  padding: 8px 12px;
  position: relative;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}