@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');

/*setting bg color to winter as default - js will change it*/
:root {
    --bgcolor: #808082;
    --bgcolor_tint: #262627; 
    
    --switches-bg-color: #808082;
    --switches-label-color: white ;
    --switch-bg-color: white;
    --switch-text-color: #808082;
}

body {
  background-color: var(--bgcolor);
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 100%;
  }

.container {
  	width: 90%;
  	margin-left: auto;
  	margin-right: auto;
  	background-color: var(--bgcolor);
  	}

.date-header {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 9vw;
    text-align: center;
    border-bottom: double;
    margin: 0;
    }

#divider{
    	border-top: 1px solid #fff;
    }

h3.info {
    text-align: center;
    font-size: 5vw;
    font-weight: 300;
    margin: 0;
/*    display: inline;*/
    }

.row {
    /* border: 1px solid green; */
    padding-left: 20px;
    padding-right: 20px;
	
	width: 500px;
	margin: 0 auto;
	
	margin-bottom: 50px;
	margin-top: 50px;
    }

.col {
    float: left;
    width: 33.3%;
    text-align: center;
	
	width: 110px;
	height: 110px;
/*	border: 2px solid #fff;*/
	padding-left: 25px;
	padding-right: 25px;
    }

.last{
    clear: left;
    }

.calinfo {
	  text-align: center;
    font-weight: 100;
    margin: 0;
    }

a.callink {color: white; text-decoration: underline; text-decoration-style: dotted;}
a.callink:link {color: #fff;}
a.callink:visited {color: #fff;}
a.callink:hover {color: crimson;}
a.callink:active {color: #fff;}

.labels {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-weight: 200;
    padding-left: 10px;
    padding-right: 10px;
    width: 92%;
    margin-left: auto;
    margin-right: auto;
    }

.labels>div {
     text-align: center;
     padding: 10px;
     margin: 12px 0;
     border-radius: 6px;
     width: 4.34%;
     }


progress[value] {
    width: 100%;
    height: 5px;
    background-color: var(--bgcolor_tint);
    }

progress::-webkit-progress-bar {
    background-color: var(--bgcolor_tint);
    }

progress::-webkit-progress-value {
    background-color: #fff;
    border-right: 3px solid crimson;
    }

    /* for the flip */
    /* using the flexgrid layout */

     .flipcard {
       perspective: 800;
       -moz-perspective: 800;
       -webkit-perspective: 800;
       margin: .5em auto;
       width: 100%;
       transform-style: preserve-3d;
       -moz-transform-style: preserve-3d;
       -webkit-transform-style: preserve-3d;
       transition: .5s;
       -moz-transition: .5s;
       -webkit-transition: .5s;
       border: 1px solid var(--bgcolor_tint);
     }

     .flipcard:hover {
       /* box-shadow: 0 0 1em black; */
     }
     .flipcard.flipped {
       transform: rotateY(-180deg);
       -moz-transform: rotateY(-180deg);
       -webkit-transform: rotateY(-180deg);
     }
     .flipcard .face {
       padding: 1em;
       text-align: center;
       backface-visibility: hidden;
       -moz-backface-visibility: hidden;
       -webkit-backface-visibility: hidden;
     }
     .flipcard .front {
       display: block;
/*
       background-image: url("city-lines.png");
       background-repeat: no-repeat;
       background-position: center bottom;
       background-size: contain;
       background-size: 100% auto;
*/

     }
     .flipcard.flipped .front {
       display:none;
     }
     .flipcard .back {
       background: #fff;
       color: var(--bgcolor);
/*       border: 3px solid #f2f2f3;*/
       transform: rotateY(180deg);
       -moz-transform: rotateY(180deg);
       -webkit-transform: rotateY(180deg);
       display:none;
     }
     .flipcard.flipped .back {
       display:block;
/*
       background-image: url("line-mountains.png");
       background-repeat: no-repeat;
       background-position: center bottom;
       background-size: contain;
       background-size: 100% auto;
*/
     }

     .grid-container {
         display: grid;
         grid-template-columns: 1fr 1fr;
         row-gap: 0px;
         column-gap: 20px;
         text-align: center;
         width: 100%;
         margin-left: auto;
         margin-right: auto;
     }

     .therow {
       grid-column: span 2;
     }

     .border-left {
     	width: 20px;
     	display: block;
     	height: 100%;
     	background-color: #C1D0DA;
     	opacity: 1;
     	position: absolute;
     	left: 0;
     	top: 0;
     	}

     .border-right {
     	width: 20px;
     	display: block;
     	height: 100%;
     	background-color: #2D7345;
     	opacity: 1;
     	position: absolute;
     	right: 0;
     	top: 0;
     	}

     .border-txt {
     	font-size: 1rem;
    	color: var(--bgcolor);
    	text-transform: uppercase;
    	letter-spacing: 3px;
    	position: absolute;
    	bottom: 30%;
    	left: 0;
   	 	margin-left: -15px;
   	 	-webkit-transform: rotate(270deg);
    	}

     .changeLoc {
     	cursor: pointer;
     	}

    /* container for all of the switch elements
        - adjust "width" to fit the content accordingly
    */
    .switches-container {
        width: 16rem;
        position: relative;
        display: flex;
        padding: 0;
        position: relative;
        background: var(--switches-bg-color);
        line-height: 3rem;
        border-radius: 0rem;
        border: 2px solid #fff;
        margin-left: auto;
        margin-right: auto;
    }

    /* input (radio) for toggling. hidden - use labels for clicking on */
    .switches-container input {
        visibility: hidden;
        position: absolute;
        top: 0;
    }

    /* labels for the input (radio) boxes - something to click on */
    .switches-container label {
        width: 50%;
        padding: 0;
        margin: 0;
        text-align: center;
        cursor: pointer;
        color: var(--switches-label-color);
    }

    /* switch highlighters wrapper (sliding left / right)
        - need wrapper to enable the even margins around the highlight box
    */
    .switch-wrapper {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 48%;
        padding: 0.15rem;
        z-index: 3;
        transition: transform .5s cubic-bezier(.77, 0, .175, 1);
        /* transition: transform 1s; */
    }

    /* switch box highlighter */
    .switch {
        border-radius: 0rem;
        background: var(--switch-bg-color);
        height: 100%;
    }

    /* switch box labels
        - default setup
        - toggle afterwards based on radio:checked status
    */
    .switch div {
        width: 100%;
        text-align: center;
        opacity: 0;
        display: block;
        color: var(--switch-text-color) ;
        transition: opacity .2s cubic-bezier(.77, 0, .175, 1) .125s;
        will-change: opacity;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* slide the switch box from right to left */
    .switches-container input:nth-of-type(1):checked~.switch-wrapper {
        transform: translateX(0%);
    }

    /* slide the switch box from left to right */
    .switches-container input:nth-of-type(2):checked~.switch-wrapper {
        transform: translateX(100%);
    }

    /* toggle the switch box labels - first checkbox:checked - show first switch div */
    .switches-container input:nth-of-type(1):checked~.switch-wrapper .switch div:nth-of-type(1) {
        opacity: 1;
    }

    /* toggle the switch box labels - second checkbox:checked - show second switch div */
    .switches-container input:nth-of-type(2):checked~.switch-wrapper .switch div:nth-of-type(2) {
        opacity: 1;
    }

#sun-container {
    width: 80%;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    }

#rise {
    width: 40%;
    margin-right: auto;
    }

#set {
    width: 40%;
    margin-left: auto;
    }

.sunrise-label {
    text-align: center;
    font-size: 3vw;
    margin: 0;
    }

.sunrise {
    text-align: center;
    font-size: 5vw;
    margin: 0;
    transition: width 2s, height 4s;
    }

.sunset {
    text-align: center;
    font-size: 5vw;
    margin: 0;
    }

.mysize {
    font-size: 4vw;
    }

.mysize_moon {
    font-size: 2vw;
    }


.myDir {
/*	color: whiteSmoke;*/
	font-size: 2vw;
	}

.moon-info {
/*    color: rebeccapurple;*/
    color: #fff;
    }

.moon-info span {
	display: inline;
}

#moonage {
	display: inline;
}

/*
.loc {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4em;
    opacity: .2;
    }
*/

i {
    margin-left: 15px;
    margin-right: 15px;
    }
       
	
.flipcard .back span {
    background: #fff;
       color: var(--bgcolor);
    width:100%;
    height:.1em;
    display:inline-block;
    }

.flipcard .back i {
    background: #fff;
       color: var(--bgcolor);
    }

.fullday {
    width: 100%;
    background-color: #a6a6a8;
    font-size: 1em;
    text-align: center;
    margin: 0;
    }

.longestday {
    width: 65%;
    background-color: #c0c0c1;
    font-size: 1em;
    text-align: center;
    margin: 0;
/*
    margin-left: auto;
    margin-right: auto;
*/
    }

.shortestday {
    width: 38%;
    background-color: #f2f2f3;
    font-size: 1em;
    text-align: center;
    margin: 0;
    color: #c0c0c1;
/*
    margin-left: auto;
    margin-right: auto
*/
/*    padding-bottom: 25px;*/
    }

.horizontal .progress-bar {
    float: left;
    height: 45px;
    width: 100%;
    padding: 12px 0;
    }

.horizontal .progress-track {
    position: relative;
    width: 100%;
    height: 20px;
    background: #666;
    }

.horizontal .progress-fill {
    position: relative;
    background: orange;
    height: 20px;
    width: 50%;
    color: #fff;
    text-align: center;
    font-family: "Lato","Verdana",sans-serif;
    font-size: 12px;
    line-height: 20px;
    }

.wrapper {
    width:100%;
    display:block;
    overflow:hidden;
    margin:0 auto;
    background-color: var(--bgcolor);
    border-radius:4px;
    border: 5px solid #fff;
    }

.chart-title {
    text-align: center;
    font-weight: 200;
    margin: 0;
    }

canvas{
      background-color: var(--bgcolor);
      margin-left: auto;
      margin-right: auto;
      }

#footnote {
      font-size: 2vw;
      text-align: center;
      margin-bottom: 85px;
      font-weight: 200;
      }

.steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 200px;
  background-color: var(--bgcolor_tint);
  padding: 8px;
  margin-left: auto;
  margin-right: auto;
  }

.step {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: background 1s;
  display: flex; /*  or inline-flex */
  align-items: center;
  justify-content: center;
  position: relative;
}

  #winter {
    background: #808082;
    border: 2px solid #808082;
  }

  #spring {
    background-color: #B8C923;
    border: 2px solid #B8C923;
  }

  #summer {
    background-color: #33B7DE;
    border: 2px solid #33B7DE;
  }

  #fall {
    background-color: #E0712B;
    border: 2px solid #E0712B;
  }

.mooncontainer {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
   grid-auto-flow: column;
/*	border: 2px solid crimson;*/
}

.mooncontainer div {
/*	border: 2px solid orange;*/
}

svg {
	width: 33%;
	margin: 0 auto;
	display: block;
}

ul {
/*
  list-style-type: none;
  padding: 0;
  margin: 0;
*/
}

.imageHolder {
/*	border: 2px solid #000;*/
	object-fit: contain;
}

.imageHolder img{
  height: 18vh;
  width: 100%;
  object-fit: contain;
}

#newmoondate, #fullmoondate {
	text-align: center;
	margin-top: -20px;
	font-size: 1.2em;
}
