
* {
  box-sizing: border-box;
}

/* Style the body */
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

/* Header/logo Title */
.header {
  padding: 1px;
  text-align: center;
  background: #f9c499;
  color: black;
}

/* Increase the font size of the heading */
.header h1 {
  font-size: 40px;
}

/* Style the navigation bar links */
.navbar {
  overflow: hidden;
  background-color: #9c4a09;
}

.navbar a {
  float: right;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.dropdown {
  float: right;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 16px;  
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: #f9c499;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}



/* Column container */
.row {  
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
}

/* Create two unequal columns that sits next to each other */

/* Sidebar,left column */
.sidebar {
  -ms-flex: 15%; /* IE10 */
  flex: 15%;
  background-color: #fee599;
  padding: 10px;
  align: center;
  text-align: center;
}
.sidebar img {
    position: relative;
    max-height: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    top-margin: 10px;
    padding: 10px;
    -webkit-animation:spin 2s linear;
    -moz-animation:spin 2s linear;
    -animation:spin 2s linear;
    @keyframes spin {
       from {transform:rotate(0deg);}
       to {transform:rotate(180deg);}
    }
}

.sidebar img:hover {
    -webkit-animation:spin 12s linear infinite;
    -moz-animation:spin 12s linear infinite;
    animation:spin 12s linear infinite;
}
@keyframes spin {
   from {transform:rotate(0deg);}
   to {transform:rotate(359deg);}
}


/* Main column */
.main {   
  -ms-flex: 85%; /* IE10 */
  flex: 85%;
  background-color:  #fee599;
  padding: 20px;
}


footer.footer {
padding: 5px;
clear:both;
background-color: #564B47;
color:black;
width: 100%;
}

footer a {
        color: black; 
        }

.footer-segment {
    display: inline-block;
    vertical-align: top;
    width: 32%;
    color:black;
    text-align: center;
}

/* Used for the Gallery */
/* The grid: Four equal columns that floats next to each other */
.column {
  float: left;
  width: 25%;
  padding: 10px;
}

/* Style the images inside the grid */
.column img {
  opacity: 0.8; 
  cursor: pointer; 
}

.column img:hover {
  opacity: 1;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* The expanding image container */
.container {
  position: relative;
  display: none;
}

/* Expanding image text */
#imgtext {
  position: absolute;
  top: 15px;
  left: 15px;
  color: white;
  font-size: 20px;
}

/* Closable button inside the expanded image */
.closebtn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

/* END Gallery */

/* 
Responsive layout - when the screen is less than 700px wide, 
make the two columns stack on top of each other instead of next to each other 
*/
@media screen and (max-width: 700px) {
  .row {   
    flex-direction: column-reverse;
  }
}

/* Responsive layout - when the screen is less than 400px wide,
make the navigation links stack on top of each other instead of next to each other
*/
@media screen and (max-width: 400px) {
  .navbar a {
    float: none;
    width: 100%;
  }
}
