/*
Copyright (C) 2024 keithc

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
/* 
    Created on : Jul 25, 2024, 2:05:10 PM
    Author     : keithc
*/
#h1 { 
    display: block;
    font-size: 2em;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

#h2 {
    display: block;
    font-size: 1.5em;
    margin-top: 0.83em;
    margin-bottom: 0.83em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

#h3 { 
    display: block;
    font-size: 1.17em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

#h4 { 
    display: block;
    margin-top: 1.33em;
    margin-bottom: 1.33em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

/* 
 * Always set the map height explicitly to define the size of the div element
 * that contains the map. 
 */

#map {
    width:100%;
    height:100%;
    float: left;
    transition: width .10s ease-in-out;
}

/* The sidepanel menu */
.sidepanel {
    height: 100%; /* Specify a height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0;
    left: 0;
    padding-left: 0px;
    padding-right: 0px;
    background-color: #fff; /* White*/
    overflow-x: scroll; /* Disable horizontal scroll */
    overflow-y: scroll;
    padding-top: 20px; /* Place content 20px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidepanel */
}

.sidepanelText {
    width: 100%;
    float: left;
}

.nileText {
    width: 80%;
    float: left;
}

.nileTimeline {
    width: 20%;
    float: left;
}

.dynasties {
    float: right;
}

/* 
 * Optional: Makes the sample page fill the window. 
 */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* When you mouse over the navigation links, change their color */
.sidepanel a:hover {
    color: #f1f1f1;
}

/* Position and style the side panel close button (top right corner) */
.sidepanel .closebtn {
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    float: right;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

.imageInsert {
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

.HomeBtn {
    display: block;
    margin-top: 6px;
    margin-right: 6px;
    float: right;
}

#intro {
     margin-left: 30px;
     margin-right: 30px;
     float: left;
}

#siteChoice {
    margin-top: 0px;
    margin-left: 30px;
    width: 520px;
    clear: left;
    float: left;
}

#siteChoiceMenus {
    width: 300px;
    float: left; 
    margin-left: 0px; 
    margin-bottom: 30px;
}

.siteMenu {
    width: 180px;
    float: left;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.siteMenuNote {
    width: auto;
    margin-top: 10px;
    float: left;
    clear: left;
}

.siteMenuTitle {
    width: 60px;
    margin-top: 10px;
    margin-left: 30px;
    float: left;
    clear: left;
}

#mapExample {
    margin-left: 60px;
    width: 360px; 
    clear: left; 
    float: left;
}

#mapNote {
    margin-left: 60px;
    margin-top: 0px;
    width: 400px;
    float: left;
}

#userGuide {
    width: 560px;
    height: 60px;
    clear: left;
    float: left;
}

#pleaseWait {
    color: blue;
    width: 180px;
    height: 60px;
    float: left;
    margin-left: 60px;
    display: none;
}

#innerFooter {
}

#outerFooter {
  width:100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* Style the Image Used to Trigger the Modal */
#photoImg {
  z-index: 2; /* Sit just below top */
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#photoImg:hover {opacity: 0.7;}

/* The Modal */
#photoModal {
  position: absolute;
  display: none;
  left: 320px;
  top: 200px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: absolute; /* Stay in place */
  z-index: 2; /* Sit just below top */
  padding-top: 0px; /* Location of the box */
  width: 320px; /* Full width */
  height: 230px; /* Full height */
  overflow: hidden; /* disable */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 320px;
  height: 180px;
  max-width: 320px;
}

#photoTextLegend {
    width: 320px;
    height: 30px;
    background-color: white;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#photoCaption {
  margin: auto;
  display: none;
  z-index: 1; /* Sit on top */
  white-space: pre-line;
  width: 320px;
  height: 50px;
  line-height: 30px;
  text-align: center;
  padding-top: 2px; /* Location of the box */
  padding-bottom: 0px;
  font-weight: bold;
  color: black;
  background-color: white;
  font-size: 16px;
  float: left;
}

#mapButton {
  z-index: 1; /* Sit on top */
  width: 80px;
  height: 30px;   
  line-height: 30px;
  text-align: center;
  padding-top: 2px; /* Location of the box */
  padding-bottom: 0px;
  font-weight: bold;
  color: blue;
  background-color: white;
  font-size: 16px;
  float: right;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Photo Close Button */
#photoClose {
  position: absolute;
  display: none;
  z-index: 1; /* Sit on top */
  top: 10px;
  right: 20px;
  text-shadow: 2px 2px black;
  color: white;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

/* The Photo Next Button */
#photoNext {
  position: absolute;
  display: none;
  z-index: 1; /* Sit on top */
  top: 80px;
  right: 20px;
  text-shadow: 2px 2px black;
  color: white;
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s;
}

/* The Photo Previous Button */
#photoPrevious {
  position: absolute;
  display: none;
  z-index: 1; /* Sit on top */
  top: 80px;
  left: 20px;
  text-shadow: 2px 2px black;
  color: white;
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s;
}

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

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