button{
  display: block;
  margin: 0 0 5PX 5px;

  padding:0.35em 1.2em;
  border:0.1em solid #FFFFFF;
  background-color: transparent;
  font-family:'Roboto',sans-serif; 
  font-weight:300;
  color:#FFFFFF;
  transition: all 0.2s;
}
button:hover{
  color:#000000;
  background-color:#FFFFFF;
}

#container{
  text-align: center;
}

.sun {
    position: absolute;
    top: -5px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: #ff8;
    box-shadow: 
      0 0 3px 0 #ff8,
      0 0 6px 0 #ff8,
      0 0 12px 0 #ff8,
      0 0 25px 0 #ff8,
      0 0 50px 0 #ff8,
      0 0 100px 0 #ff8,
      0 0 200px 0 #ff8;
  }
  .moon {
    position: absolute;
    top: 50px;
    left: 300px;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: #eee;
    box-shadow: 
      0 0 3px 0 #eee,
      0 0 6px 0 #eee,
      0 0 12px 0 #eee,
      0 0 24px 0 #eee;
  }
  .globe {
    position: absolute;
    top: 25px;
    left: 30%;
    width: 400px;
    height: 400px;
    margin: 3em auto;
    overflow: hidden;
    border-radius: 200px;
    transition: transform 200ms linear;
    /* transform: rotate(23.4deg); */
    background: url(earthmap.jpg) 0 0;
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
    box-shadow: inset 20px 0 80px 6px rgba(0, 0, 0, 1);
  }
  .globe:before {
    /* [1] Again, break the flow to show this as an overlay */
  position: absolute;
  top: 0;
  left: 0;

  /* [2] Again, give it all the available space */
  width: 100%;
  height: 100%;

  /* [3] Duh. */
  content: '';

  /* [4] Add some shape and overlay effect to it */
  opacity: .2;
  border-radius: 50%;
  background: radial-gradient(circle at 100px 100px, #fff, #000);
  }
  .globe:after {
    /* [1] Break the flow to show this as an overlay */
    position: absolute;
    top: 0;
    left: 0;
  
    /* [2] Make it take all the space available in the box (ahem... globe!) */
    width: 100%;
    height: 100%;
  
    /* [3] Make sure this has no generated content, as we want this just for fancy purposes */
    content: '';
  
    /* [4] Give it some shape and shadow */
    border-radius: 50%;
    box-shadow: -80px 15px 80px 10px rgba(0,0,0,.9) inset;
  }
  .beacon {
    position: absolute;
    z-index: 2;
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    /* Override anchor defaults */
    color: #fff;
    text-decoration: none;
    transition-duration: 1s;
  }
  .beacon:before {
    content: "";
    position: absolute;
    z-index: 3;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border: 1px solid #fff;
    box-shadow: 0 0 4px 0 #fff;
    animation: signal 2s infinite ease-out;
  }
  /* Make the location easy to click by expanding the clickable area from 4px to 20px and space for the text on :hover. */
  .beacon:after {
    content: "";
    position: absolute;
    z-index: 4;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    text-indent: 25px;
    line-height: 20px;
  }
  .beacon:hover:after,
  .beacon:focus:after {
    content: attr(data-location);
  }
  
  @keyframes signal {
    0% { transform: scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
  }
  
  [data-location=Japan] { top: 110px; left: -90px; }
  [data-location=India] { top: 160px; left: -235px; }
  [data-location=Iceland] { top: 51px; left: -435px; }
  [data-location="New Zealand"] { top: 290px; left: -20px;  }
  
  .surface {
    position: relative;
    width: 800px;
    height: 400px;
    margin-left: 0px;
    line-height: 0;
    animation: axis 20s linear infinite;
  }
  
  @keyframes axis {
      0% { margin-left: 0px; }
      100% { margin-left: 840px; }
  }
  @keyframes rotate {
    0% {background-position: 0 0;}
    100% {background-position: 840px 0;}
  }
  
  
  html { background: #000; }
  *,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;}
  /* The Modal (background) */
.modal {
  display: block; /* 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: 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.4); /* Black w/ opacity */
}
div.gallery {
  border: 1px solid #ccc;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}
/* Modal Content */
.modal-content {
  display: block;
  background-color: transparent;
  font-weight:300;
  color:#FFFFFF;
  position: absolute;
  text-align: center;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 24px;
  width: 80%;
  margin: 0 auto;
}
#my-modal{
  justify-content: center;
	align-items: center;
  display: flex;
}
.japan-container-modal {
  display: none;
  background-color: transparent;
  font-weight:300;
  color:#FFFFFF;
  position: absolute;
  text-align: center;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 24px;
  width: 80%;
  margin: 0 auto;
}
.iceland-container-modal {
  display: none;
  background-color: transparent;
  font-weight:300;
  color:#FFFFFF;
  position: absolute;
  text-align: center;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 24px;
  width: 80%;
  margin: 0 auto;
}
.india-container-modal {
  display: none;
  background-color: transparent;
  font-weight:300;
  color:#FFFFFF;
  position: absolute;
  text-align: center;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 24px;
  width: 80%;
  margin: 0 auto;
}
.nz-container-modal {
  display: none;
  background-color: transparent;
  font-weight:300;
  color:#FFFFFF;
  position: absolute;
  text-align: center;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 24px;
  width: 80%;
  margin: 0 auto;
}


/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 40px;
  font-weight: bold;
  position: absolute;
  top: 8px;
  right: 16px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
#text:after {
	content: "";
	animation: spin 20s forwards;
}

#help::after{
  content: "Click anywhere on the screen to exit!";
	animation: helptext 5s infinite;
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, -50%);
  margin: 0 auto;
}

@keyframes helptext {
  0% {
    color: white;
    opacity: 0.7;
    }
    50% {
      color: white;
      opacity: 0.2;
      } 
      100% {
        color: white;
        opacity: 0.7;
        } 
}

@keyframes spin {
  0% { 
    content:"WPI has an extraordinary opportunity to leverage our student project sites around the world to build a platform for sharing voices and perspectives on meaningful topics. "; 
  }
  25% { content:"Recording climate change stories engages students with communities on a topic of universal urgency, and in ways that transcend common barriers."; }
  50%{content: "Our students have learned that parts of the world are increasingly affected more than others. ";}
  75%{content: "These stories have the potential to enable a kind of citizen science. ";}
  100%{content: "We will continue to add more perspectives as we continue our global conversations.";}
}

#text{
	animation: pulse 30s;
  
}


@keyframes pulse {
	0% {
	color: white;
  opacity: 1;
	}
	12.5%{
  opacity: 0;
  }
	25% {
		color: white;
    opacity: 1;
	}
	37.5%{
    opacity: 0;
  }
  50%{
    color: white;
    opacity: 1;
  }
  62.5%{
    opacity: 0;
  }
  75%{
    color: white;
    opacity: 1;
  }
  87.5%{
    opacity: 0;
  }
	100% {
		color: white;
    opacity: 1;
	}
}
@-webkit-keyframes fadeinout {
  0%,100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes fadeinout {
  0%,100% { opacity: 0; }
  50% { opacity: 1; }
}


.topnav #myLinks {
  display: none;
}
a.icon {
  background: black;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
}
.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}
.topnav .icon:hover {
  background-color: #ddd;
  color: black;
}

.active {
  
  color: white;
  height:50px;
}