@import url(https://fonts.googleapis.com/css?family=Averia+Serif+Libre|Bubblegum+Sans|Caveat+Brush|Chewy|Lobster+Two|Nunito);

html {
  height: 100%;
  overflow: hidden;
}

body { 
  background-color: #ECE3CE;
  margin:0;
  padding:0;
	perspective: 1px;
	transform-style: preserve-3d;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
}

.navbar .dropdown-menu-end{ right: auto; left: 0;  }
	.navbar .nav-item .dropdown-menu{  display:block; opacity: 0;  visibility: hidden; transition:.3s; margin-top:0;  }
	.navbar .nav-item:hover .nav-link{ color: #fff;  }
	.navbar .dropdown-menu.fade-down{ top:80%; transform: rotateX(-75deg); transform-origin: 0% 0%; }
	.navbar .dropdown-menu.fade-up{ top:180%;  }
	.navbar .nav-item:hover .dropdown-menu{ transition: .3s; opacity:1; visibility:visible; top:100%; transform: rotateX(0deg); }
  
  .navbar-collapse {
    flex-grow: 0 !important;
  }	
  .bg-primary {
    background-color: #4F6F52 !important; 
  }

  .navbar-brand {
    float: left;
    height: 50px;
    padding: 15px 15px;
    font-size: 25px;
    line-height: 20px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,.55);
  font-size: 20px;
  
}

h1 {
   font-size: 250%
}

p {
  font-size: 140%;
  line-height: 150%;
  color: #333;
}

.slide {
  position: relative;
  padding: 25vh 10%;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  box-shadow: 0 -1px 10px rgba(0, 0, 0, .7);
	transform-style: inherit;
}

.parallax-img {
  position: absolute;
  top: 50%;
  left: 35%;
  width: 320px;
  height: 240px;
  transform: translateZ(.25px) scale(.75) translateX(-94%) translateY(-100%) rotate(2deg);
  padding: 10px;
  border-radius: 5px;
  background: rgba(240,230,220, .7);
  box-shadow: 0 0 8px rgba(0, 0, 0, .7);
}

.parallax-img:last-of-type {
  transform: translateZ(.4px) scale(.6) translateX(-104%) translateY(-40%) rotate(-5deg);
}

.slide:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 0 8px 1px rgba(0, 0, 0, .7);
}

.title {
  width: 50%;
  padding: 5%;
  border-radius: 5px;
  background: rgba(240,230,220, .7);
  box-shadow: 0 0 8px rgba(0, 0, 0, .7);
}

.slide:nth-child(odd) .title {
  margin-left: 0;
  margin-right: auto;
}

.slide:nth-child(even) .title {
  margin-left: auto;
  margin-right: 0;
}

.slide, .slide:before {
  background: 50% 50% / cover; 
}

.header {
  text-align: center;
  font-size: 175%;
  color: #fff;
  text-shadow: 0 2px 2px #000;
  font-family: "Montserrat", sans-serif;
}

#title {
  background-image: url("../svg/physics.svg");
  z-index:2;
}

#title h1 {
 transform: translateZ(.25px) scale(.75);
 transform-origin: 50% 100%;
}

#slide1:before {
  background-image: url("../svg/mechanics.svg");
  transform: translateZ(-1px) scale(2);
}

#slide2 {
  background-image: url("../svg/thermal.svg");
  z-index:2;
}

#slide3:before {
  background-image: url("../svg/electricity.svg");
  transform: translateZ(-1px) scale(2);
}

#slide4 {
  background-image: url("../svg/mechmovement.svg");
  z-index:2;
}

/* ------------------------------------------------ */




/* Footer */

.footer {
  background-color: #4F6F52;
  height: 40%;
  font-family: "Montserrat", sans-serif;
}

.topfooter {
  padding-top: 30px;
  height: 50%;
}

/* ----------------------- */

/* Introduction */

.introduction {
  text-align: center;
}

/* -------- */


/* Gmail */

.emails {
  display: flex !important;
  flex-direction: row;
  padding-left: 20%;
}

.email {
  color: black;
  text-decoration: none;
}

.email:hover {
  color: black;
  text-decoration: none;
}

/* -------------- */

/* Anecdotees */

.anecdotes {
  font-size: 25px;
  font-family: "Caveat", cursive;
}


/* ------ */



/* contacts */

.contacts {
  color: black;
}

/* ---------- */


/* Sections */

.sections {
  text-decoration: none;
  color: black;
  
  border: 1px solid #739072;
  background-color: #739072;
  border-radius: 4px;
  font-size: 1.5em;
}

.sections:hover {
  text-decoration: none;
  color: black;
}

.sections1 {
  text-decoration: none;
  color: black;
  
  border: 1px solid #739072;
  background-color: #739072;
  border-radius: 4px;
  font-size: 1.5em;
}

.sections:hover {
  text-decoration: none;
  color: black;
}

/* ------------- */


/* Material */

a:hover, a:focus{
  text-decoration: none !important;
  outline: none !important;
  
}
.panel-group .panel{
  background-color: #fff;
  border:none;
  box-shadow:none;
  border-radius: 10px;
  margin-bottom:11px;
}
.panel .panel-heading{
  padding: 0;
  border-radius:10px;
  border: none;
}
.panel-heading a{
  color:#816d6d !important;
  display: block;
  border:none;
  padding:20px 35px 20px;
  font-size: 20px;
  background-color:#fff;
  font-weight:600;
  position: relative;
  color:#fff;
  box-shadow:none;
  transition:all 0.1s ease 0;
}
.panel-heading a:after, .panel-heading a.collapsed:after{
  content: "\f068";
  font-family: fontawesome;
  text-align: center;
  position: absolute;
  left:-20px;
  top: 10px;
  color:#816d6d !important;
  background-color:#fff;
  border: 5px solid #fff;
  font-size: 15px;
  width: 40px;
  height:40px;
  line-height: 30px;
  border-radius: 50%;
  transition:all 0.3s ease 0s;
}
.panel-heading:hover a:after,
.panel-heading:hover a.collapsed:after{
  transform:rotate(360deg);
}
.panel-heading a.collapsed:after{
  content: "\f067";
}
#accordion .panel-body{
  background-color:#fbf8f8;
  color:#8C8C8C;
  line-height: 25px;
  padding: 10px 25px 20px 35px ;
  border-top:none;
  font-size:14px;
  position: relative;
}

.text-white{
  text-align: center;
  color:#739072 !important;
  text-transform: uppercase;
}

.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  position: relative;
  border: 4px solid #Fff;
  top: 50%;
  animation: loader 2s infinite ease;
}

.loader-inner {
  vertical-align: top;
  display: inline-block;
  width: 100%;
  background-color: #fff;
  animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  
  25% {
    transform: rotate(180deg);
  }
  
  50% {
    transform: rotate(180deg);
  }
  
  75% {
    transform: rotate(360deg);
  }
  
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loader-inner {
  0% {
    height: 0%;
  }
  
  25% {
    height: 0%;
  }
  
  50% {
    height: 100%;
  }
  
  75% {
    height: 100%;
  }
  
  100% {
    height: 0%;
  }
}

/* ----------------- */