/*font/margin/padding for entire website */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body{
    animation: transitionIn 0.5s;
    background: var(--primary-color);
}

/*For nav bar */
@keyframes transitionIn{
    from{
        opacity: 0;
        transform: translatey(100px);
    }
    to{
        opacity: 1;
        transform: translatey(0px);
    }
}

/*front page css */
.header {
    min-height: 100vh;
    width:100%;
    background-image: url(img/imageedit_3_4432434666.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}

/*nav bar css*/
nav {
    display: flex;
    padding: 0% 6%;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 90%;
    z-index: 1;
}
nav img {
    width: 75px;
}

#logo-text{
    width: 150px;
}
.nav-links {
    flex: 1;
    text-align:right;
    padding-right: 30px;
}
.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 32px;
    position: relative;
    
}
.nav-links ul li a, .nav-links ul li p {
    color: var(--tertiary-color);
    text-decoration: none;
    font-size: 13px;
}

.nav-links ul li::after {
    content:'';
    width: 0%;
    height:2px;
    background: #f44336;
    display:block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after {
    width: 100%;
}

/*Mars mode slider*/
#fish-icon {
    width: 50px;
}
#plant-icon {
    width: 40px;
}
.toggle {
    margin-left: 8px;
    margin-right: 8px;
    padding-left:30px;
    padding-right:30px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 62px;
    height: 32px;
    display: inline-block;
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    outline: none;
    border: none;
    cursor: pointer;
    background-color: #707070;
    transition: background-color ease 0.3s;
  }
  
  .toggle:before {
    content: "on off";
    display: block;
    position: absolute;
    z-index: 2;
    width: 28px;
    height: 28px;
    background: #fff;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    font: 10px/28px Helvetica;
    text-transform: uppercase;
    font-weight: bold;
    text-indent: -22px;
    word-spacing: 37px;
    color: #fff;
    text-shadow: -1px -1px rgba(0,0,0,0.15);
    white-space: nowrap;
    
    transition: all cubic-bezier(0.3, 1.5, 0.7, 1) 0.3s;
  }
  
  .toggle:checked:before {
    left: 32px;
  }

/* Mars mode color change */
:root {
    --primary-color: rgb(15, 172, 25);
    --secondary-color: white;
    --tertiary-color: rgb(14, 201, 27);
    --quartery-color: white;
    --quintary-color: black;
}
.dark-theme{
    --primary-color: rgb(27, 167, 243);
    --secondary-color: white;
    --tertiary-color: rgb(27, 167, 243);
    --quartery-color: white;
    --quintary-color: black;
}

/*Bobbing arrow animation */
.arrow{
    position: absolute;
    top: 93%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.arrow span{
    display: block;
    width: 7px;
    height: 6px;
    border-bottom: 5px solid var(--tertiary-color);
    border-right: 5px solid var(--tertiary-color);
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 4s infinite;
}
.arrow span:nth-child(2){
    animation-delay: -0.4s;
}
.arrow span:nth-child(3){
    animation-delay: -0.8s;
}
/*key frames for arrow animation */
@keyframes animate {
    0%{
        opacity: 0;
        transform: rotate(45deg) translate(-20px,-20px);
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
        transform: rotate(45deg) translate(20px,20px);
    }
} 
#banner {
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0.05%;
    bottom: 92vh;
    z-index: 0;

}
  #canvas {
    position: absolute;
    top: 90%;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
} 

/*Additional styling for the nav bar when scrolling*/
.scrolling-active{
    background-color: var(--primary-color);
    box-shadow: 0 3px 1rem rgba(0,0,0,.1);
    z-index: 1;
    transition-property: background-color;
    transition-duration: .25s;
}
/*Additional styling for the nav bar text color when scrolling*/
.scrolling-active ul li a{
    color: var(--secondary-color); 
}

.scrolling-active ul li p{
    color: var(--secondary-color); 
}

/* Front Page Title */
.text-box {
    width: 50%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1 {
    font-size: 69px;
    color: white;
    line-height: 80px;
}
.text-box p {
    margin: 10px 0 50px;
    font-size: 19px;
    color: white;
}
.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 12px 34px;
    font-size: 18px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover {
    border: 1px solid #f44336;
    background: #f44336;
    transition: 0.5s;
}

nav .fa {
    display: none;
}

/* course info */
.course {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1 {
    font-size: 36px;
    font-weight: 600;
}
p {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col {
    flex-basis: 31%;
    background: var(--primary-color);
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.4s;
}
h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.course-col:hover {
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}

/*Hot destination css */
.destination{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 65px;
    background: var(--primary-color)
}
.destination h1 {
    color: var(--secondary-color);
}
.destination-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.destination-col img {
    width: 100%;
    display: block;
}
.layer{
    background: transparent;
    height:100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover {
    background:rgba(255, 255, 255, 0.7);
}
.layer h3 {
    width: 100%;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/* Main page image links to other pages */
.linker {
    width:80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    background: var(--primary-color);
}
.linker h1 {
    color: var(--secondary-color);
}
.linker h3 {
    color: var(--secondary-color);
}
.linker-col{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    cursor: pointer;
}
.linker-col img{
    width: 100%;
    border-radius: 10px;
}
.linker-col p {
    padding: 0;
}
.linker-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}
.linker-col img:hover {
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.7);
}

/* Citizens' reviews of our planet and services.*/
.testimonials {
    width: 80%;
    margin: auto;
    padding-top: 100px;
    text-align: center;
    background: var(--primary-color);
    
}
.testimonials h1 {
    color: var(--secondary-color);
}
.testimonials h3 {
    color: var(--secondary-color);
}
.testimonial-col{
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: var(--primary-color);
    padding: 25px;
    cursor: pointer;
    display: flex;

}
.testimonial-col .pfp {
    height: 60px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
    border: 3px solid white;
}
.testimonial-col p {
    padding: 0;
}
.testimonial-col h3{
    margin-top: 15px;
    text-align: left;
}
.testimonials #stars {
    height: 25px;
}

.vl {
    border-left: 6px solid var(--secondary-color);
    height: 205px;
  }

  /* Button link for travel packages */
.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.2)), url(img/5ef2cf36b0982856b6c38d7f_Invasive-Species-Banner.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
    background-color: var(--primary-color);
}
.cta h1{
    color: white;
    margin-bottom: 40px;
    padding: 0;
}

/*Contact us footer */
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
}
.footer h4 {
    margin-bottom: 15px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--secondary-color);
}
.icons {
    display: flex;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-left: 45%;
    margin-bottom: 10px;
}
.icons a {
    color: var(--secondary-color);
}
.gg-facebook:link, .gg-instagram:link, .gg-google:link, .gg-twitter:link {
    color:var(--secondary-color);
}
.gg-facebook:hover, .gg-instagram:hover, .gg-twitter:hover, .gg-google:hover {
    color:var(--quartery-color);
}

/* travel packages */
.trav-header {
    background-image: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0)),url(img/AdobeStock_22364410.jpeg);
    min-height: 70vh;
    width:100%;
    background-position: center;
    background-size: cover;
    position: relative;
    
}
.trav-course {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 30px;
    color: var(--secondary-color);
}

.trav-row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.trav-course-col {
    flex-basis: 31%;
    background: var(--primary-color);
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 50px;
    box-sizing: border-box;
    transition: 0.4s;
    border: 3px solid var(--secondary-color);
}
h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.trav-course-col:hover {
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}

/*Geography page */
.geo-header {
    background-image: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0)),url(img/AdobeStock_296962770.jpeg);
    min-height: 70vh;
    width:100%;
    background-position: center;
    background-size: cover;
    position: relative;
}
/* Territories section */
.settle {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 30px;
}
.settle h1 {
    padding-top: 50px;
    text-align: center;
    color: var(--secondary-color);
}
.settle p {
    font-size: 20px;
    color: var(--secondary-color);
}
.mapCaption {
    color: var(--secondary-color);
}
/*Map of mars */
.geomap {
    padding-top: 75px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
}
.settle-des {
    padding-top: 30px;
    padding-bottom: 30px;;
}
.settle-des h2 {
    text-decoration: underline;
}
.settle-des ul li {
    text-align: left;
    color: var(--secondary-color);
    list-style-type: none;
    font-size: 20px;
}
.watmap {
    padding-top: 50px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 55%;
}
/* history 1st half of the section */
.history-header {
    background-image: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0)),url(img/mars-cool-background-3.jpeg);
    min-height: 70vh;
    width:100%;
    background-position: center;
    background-size: cover;
    position: relative;
}
/* visibility of stars on history/tourism page */
.history-header #banner, .tourism-header #banner, .solution-header #banner{
    visibility: hidden;
}
/* history webpage viewport */
.history{
    height: 100vh;
    width: 100%;
}
/* description of how to use rows and circles */
.history-learn-more{
    position: absolute;
    display: flex;
    width: 80vh;
    height: 25vh;
    text-align: center;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
}
  /* Adjusts whole table's position */
.history-inner-table{
    height: 100%;
    padding-top: 10%;
    padding-left: 10%;
    width: 60vh;
    height: 80vh;
}

  /* Adjusts the table's data's text, fill in color and opacity */
.history-inner-table td {
    background-color: rgb(255, 72, 0);  
    opacity: 60%;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color:black;
    font-weight: 600;
    cursor: pointer;
    transition-property: background-color;
    transition-duration: 300ms;
    width: 70%;
    border-radius: 7px;
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.4);
}
/* history table hover over rows */
.history-inner-table td:hover{
    font-weight: 600; 
    background-color: orange;
}
/* container for the circles */
.hidden{
    position: absolute;
    background-image: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url(img/mars-cool-satellite.jpeg);
    background-size: cover;
    border-radius: 55px;
    background-repeat: no-repeat;
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.4);
    height: 90vh;
    width: 125vh;
    left: 35%;
    top: 75%;
}
/*Make the cursor a pointer when hovering over the circles*/
.circles{
    cursor: pointer;
}
  /* position circle1a's main container */
#circle1a {
    position: absolute;
    height: 250px;
    width: 250px;
    left: 50%;
    top: 7%;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
}
/* Position the front and back side of circle1a */
.circle1a-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
/* Position the front and back side 1a */
.circle1a-front, .circle1a-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
#circle1a:hover .circle1a-inner {
    transform: rotateY(180deg);
}
/* Style the front side 1a*/
.circle1a-front {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-landscape.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    border-radius:50%;
    line-height: 230px;
    text-align: center;
    font-size: 35px;
    color: white;
    font-weight: bold; 
}
/* Style the back side of circle1a */
.circle1a-back {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-landscape2.jpg);
    background-size: cover;
    color: white;
    transform: rotateY(180deg);
    border-radius:50%;
    text-align: center;
    line-height: 65px;
    font-size: 7px;
    color: white;
    font-weight: bold;
}
  /* position circle1b's main container */
#circle1b {
    position: absolute;
    height: 250px;
    width: 250px;
    left: 15%;
    top: 45%;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
}
/* Position the front and back side of circle1b */
.circle1b-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
/* Position the front and back side 1b */
.circle1b-front, .circle1b-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
#circle1b:hover .circle1b-inner {
    transform: rotateY(180deg);
}
/* Style the front side for 1b*/
.circle1b-front {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-circle.jpg);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius:50%;

    line-height: 230px;
    text-align: center;
    font-size: 30px;
    color: white;
    font-weight: bold;
}
/* Style the back side of circle1b */
.circle1b-back {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-mountains.jpg);
    background-size: cover;
    transform: rotateY(180deg);
    border-radius:50%;
    text-align: center;
    line-height: 60px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

#circle2a {
    position: absolute;
    border-radius:50%;
    height: 250px;
    width: 250px;
    left: 50%;
    top: 7%;
    perspective: 1000px; 
}
/* Position the front and back side of circle2a */
.circle2a-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
/* Position the front and back side 2a */
.circle2a-front, .circle2a-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
#circle2a:hover .circle2a-inner {
    transform: rotateY(180deg);
}
/* Style the front side 2a*/
.circle2a-front {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-circle2.jpg);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius:50%;

    line-height: 230px;
    text-align: center;
    font-size: 30px;
    color: white;
    font-weight: bold;
}
/* Style the back side of circle2a */
.circle2a-back {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-landscape3.jpg);
    background-size: cover;
    color: white;
    transform: rotateY(180deg);
    border-radius:50%;
    line-height: 65px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}
  /* position circle1a's main container  2b*/
#circle2b {
    position: absolute;
    border-radius:50%;
    height: 250px;
    width: 250px;
    left: 15%;
    top: 45%;
    perspective: 1000px;
}
/* Position the front and back side of circle2b */
.circle2b-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
/* Position the front and back side 2b */
.circle2b-front, .circle2b-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
#circle2b:hover .circle2b-inner {
    transform: rotateY(180deg);
}
/* Style the front side 2b */
.circle2b-front {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-duststorm.jpg);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius:50%;

    line-height: 235px;
    text-align: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
}
/* Style the back side of circle2b */
.circle2b-back {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-duststorm2.jpg);
    background-size: cover;
    color: white;
    transform: rotateY(180deg);
    border-radius:50%;
    line-height: 50px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}
#circle3a {
    position: absolute;
    border-radius:50%;
    height: 250px;
    width: 250px;
    left: 50%;
    top: 7%;
    perspective: 1000px; 
}
/* Position the front and back side of circle3a */
.circle3a-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
/* Position the front and back side 3a */
.circle3a-front, .circle3a-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
#circle3a:hover .circle3a-inner {
    transform: rotateY(180deg);
}
/* Style the front side 3a */
.circle3a-front {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-atmosphere.jpg);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius:50%;

    line-height: 230px;
    text-align: center;
    font-size: 30px;
    color: white;
    font-weight: bold;
}
/* Style the back side of circle3a */
.circle3a-back {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-atmosphere2.jpg);
    background-size: cover;
    color: white;
    transform: rotateY(180deg);
    border-radius:50%;

    line-height: 65px;
    font-size: 6px;
    color: white;
    font-weight: bold;
}
#circle3b {
    position: absolute;
    border-radius:50%;
    height: 250px;
    width: 250px;
    left: 15%;
    top: 45%;
    perspective: 1000px; 
}
/* Position the front and back side of circle3b */
.circle3b-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
/* Position the front and back side 3b */
.circle3b-front, .circle3b-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
#circle3b:hover .circle3b-inner {
    transform: rotateY(180deg);
}
/* Style the front side 3b */
.circle3b-front {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-funfacts.jpg);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius:50%;

    line-height: 230px;
    text-align: center;
    font-size: 35px;
    color: white;
    font-weight: bold;  
}
/* Style the back side of circle3b */
.circle3b-back {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-futurecolony.jpg);
    background-size: cover;
    background-position: 25% 25%;
    transform: rotateY(180deg);
    border-radius:50%;

    line-height: 55px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}
#circle4a {
    position: absolute;
    border-radius:50%;
    height: 250px;
    width: 250px;
    left: 50%;
    top: 7%;
    perspective: 1000px; 
}
/* Position the front and back side of circle4a */
.circle4a-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
/* Position the front and back side 4a */
.circle4a-front, .circle4a-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
#circle4a:hover .circle4a-inner {
    transform: rotateY(180deg);
}
/* Style the front side 4a*/
.circle4a-front {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-distance.jpg);
    background-size: cover;
    background-position: 45% 10%;
    background-repeat: no-repeat;
    border-radius:50%;

    line-height: 230px;
    text-align: center;
    font-size: 35px;
    color: white;
    font-weight: bold; 
}
/* Style the back side of circle4a */
.circle4a-back {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-rocket.png);
    background-size: cover;
    background-position: 25% 25%;
    transform: rotateY(180deg);
    border-radius:50%;

    line-height: 65px;
    font-size: 8px;
    color: white;
    font-weight: bold;
}
  /* position circle1a's main container 4b*/
#circle4b {
    position: absolute;
    border-radius:50%;
    height: 250px;
    width: 250px;
    left: 15%;
    top: 45%;
    perspective: 1000px; 
}
/* Position the front and back side of circle4b */
.circle4b-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
/* Position the front and back side 4b */
.circle4b-front, .circle4b-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
#circle4b:hover .circle4b-inner {
    transform: rotateY(180deg);
}
/* Style the front side 4b */
.circle4b-front {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-satellite.jpg);
    background-size: cover;
    background-position: 25% 25%;
    background-repeat: no-repeat;
    border-radius:50%;

    line-height: 230px;
    text-align: center;
    font-size: 35px;
    color: white;
    font-weight: bold;
}
/* Style the back side of circle4a */
.circle4b-back {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-moon.jpg);
    background-size: cover;
    background-position: 20% 3%;
    color: white;
    transform: rotateY(180deg);
    border-radius:50%;

    line-height: 65px;
    font-size: 11px;
    font-weight: bold;
}
#circle5a {
    position: absolute;
    border-radius:50%;
    height: 250px;
    width: 250px;
    left: 50%;
    top: 7%;
    perspective: 1000px; 
}
/* Position the front and back side of circle5aa */
.circle5a-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
/* Position the front and back side 5a */
.circle5a-front, .circle5a-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
#circle5a:hover .circle5a-inner {
    transform: rotateY(180deg);
}
/* Style the front side 5a */
.circle5a-front {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-paradise.jpg);
    background-size: cover;
    background-position: 45% 10%;
    background-repeat: no-repeat;
    border-radius:50%;

    line-height: 230px;
    text-align: center;
    font-size: 35px;
    color: white;
    font-weight: bold;
}
/* Style the back side of circle5a */
.circle5a-back {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-city.jpg);
    background-size: cover;
    color: white;
    transform: rotateY(180deg);
    border-radius:50%;

    line-height: 65px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}
  /* position circle1a's main container 5b */
#circle5b {
    position: absolute;
    border-radius:50%;
    border-radius:50%;
    height: 250px;
    width: 250px;
    left: 15%;
    top: 45%;
    perspective: 1000px; 
}
/* Position the front and back side of circle5b */
.circle5b-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
/* Position the front and back side 5b */
.circle5b-front, .circle5b-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
#circle5b:hover .circle5b-inner {
    transform: rotateY(180deg);
}
/* Style the front side 5b */
.circle5b-front {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-homes.jpg);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius:50%;

    line-height: 230px;
    text-align: center;
    font-size: 35px;
    color: white;
    font-weight: bold; 
}
/* Style the back side of circle5b */
.circle5b-back {
    border: 3px solid #780E0E;
    background-image: url(../img/mars-comet.jpg);
    background-size: cover;
    background-position: 30% 90%;
    transform: rotateY(180deg);
    border-radius:50%;

    line-height: 48px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}
/* The Modal (background) */
.history-modal-all{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
}

/* Modal Content/Box */
.history-modalContent-all{
    background: var(--quintary-color);
    margin-top: 24%;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 24px;
    border-radius: 6px;
    z-index: 4;
}

/* The Close Button */
.history-close-all {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    border-radius: 50%;
    padding: 5px 6px;
    transition-property: background-color;
    transition-duration: 350ms;
}
/* close hover for history modal */
.history-close-all:hover{
    background-color: #eb5e28;
    color: black;
    text-decoration: none;
    cursor: pointer;
    border-radius: 50%;
}
/*Added background image to the header and positioned it*/
.tourism-header {
    background-image: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0)),url(img/Lantern1.jpeg);
    min-height: 70vh;
    width:100%;
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 1;
}
.solution-header {
    background-image: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0)),url(img/ferret.avif);
    min-height: 70vh;
    width:100%;
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 1;
}
/*Set height, width, and padding for the food chains section*/
.food-chains{
    width: 100%;
    height: 50vh;
    margin: auto;
    text-align: center;
    padding-top: 65px;
    padding-bottom: 65px;
}
.food-chains h1 {
    color: var(--secondary-color)
}

.attractions{
    width: 100%;
    height: 50vh;
    margin: auto;
    text-align: center;
    padding-top: 65px;
    padding-bottom: 150px;
}
.attractions h1 {
    color: var(--secondary-color);
}

input[type=radio] {
    display: none;
}
/*Added transition to the images in the carousel and positioned them*/
.card {
    position: absolute;
    width: 30%;
    height: 100%;
    margin: auto;
    transition: transform 0.4s ease;
    cursor: pointer;
}
/*Set height, width, and flex properties for container*/
.container {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
/*Set position for the cards (images in carousel)*/
.cards {
    position: relative;
    width: 100%;
    height: 100%;
    right: 15.5%;
    margin-top: 10px;
}
/*Set styling for images in carousels*/
.food-chains img, .attractions img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}
/*Styling for when images are pressed in carousel*/
#item-1:checked ~ .cards #food-3, #item-2:checked ~ .cards #food-1, #item-3:checked ~ .cards #food-2 {
    transform: translatex(-40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}
/*Styling for when images are pressed in carousel*/
#item-1:checked ~ .cards #food-2, #item-2:checked ~ .cards #food-3, #item-3:checked ~ .cards #food-1 {
    transform: translatex(40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}
/*Styling for when images are pressed in carousel*/
#item-1:checked ~ .cards #food-1, #item-2:checked ~ .cards #food-2, #item-3:checked ~ .cards #food-3 {
    transform: translatex(0) scale(1);
    opacity: 1;
    z-index: 1;
}
/*Box shadow for when images are pressed in carousel*/
#item-1:checked ~ .cards #food-1 img, #item-2:checked ~ .cards #food-2 img, #item-3:checked ~ .cards #food-3 img {
    box-shadow: 0px 0px 5px 0px rgba(81, 81, 81, 0.47);
}
/*Styling for when images are pressed in carousel*/
#item-4:checked ~ .cards #attractions-6, #item-5:checked ~ .cards #attractions-4, #item-6:checked ~ .cards #attractions-5 {
    transform: translatex(-40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}
/*Styling for when images are pressed in carousel*/
#item-4:checked ~ .cards #attractions-5, #item-5:checked ~ .cards #attractions-6, #item-6:checked ~ .cards #attractions-4 {
    transform: translatex(40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}
/*Styling for when images are pressed in carousel*/
#item-4:checked ~ .cards #attractions-4, #item-5:checked ~ .cards #attractions-5, #item-6:checked ~ .cards #attractions-6 {
    transform: translatex(0) scale(1);
    opacity: 1;
    z-index: 1;
}
/*Box Shadow for when images are pressed in carousel*/
#item-4:checked ~ .cards #attractions-4 img, #item-5:checked ~ .cards #attractions-5 img, #item-6:checked ~ .cards #attractions-6 img {
    box-shadow: 0px 0px 5px 0px rgba(81, 81, 81, 0.47);
}
/*Positioning and animation for modals*/
.modal{
    position: fixed;
    top: 50%;
    background: rbga(0,0,0,0.5);
    z-index: 2;
    display: none;
    animation: modal-open .5s;
  }
 /*Positioning and styling for the modal content*/ 
  .modal-content{
    background: var(--quintary-color);
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 24px;
    border-radius: 6px;
    z-index: 4;
  }
  /*Styling for modal header*/
  .modal-header{
    font-weight: 500;
    padding: 10px 0;
    font-size: 26px;
    color: var(--secondary-color);
  }
  /*Styling for modal body*/
  .modal-body{
    color: var(--secondary-color);
    padding: 15px 0;
  }
  /*Styling and animation for modal-close*/
  .modal-close{
    cursor: pointer;
    background-color: #FFFCF2;
    padding: 5px 6px;
    border-radius: 50%;
    transition-property: background-color;
    transition-duration: 350ms;
  }
  /*Color change when hover on modal close button*/
  .modal-close:hover{
    background-color: #eb5e28;
  }
#history-modal-3b {
    color: var(--secondary-color);
}
#history-modal-5b {
    color: var(--secondary-color);
}
/*Set size and position for form container*/
.form-container{
    width: 450px;
    height: 550px;
    margin: 3% auto;
    background: fff;
    border-radius: 5px;
    position: relative;
    background-image: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0)),url(img/form-bg-2.jpg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
/*styling for form title*/
form h3{
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}
/*Display, positioning, and sizing for form*/
.form-container form{
    width: 100%;
    position: absolute;
    top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
/*Positioning, and sizing for form input text*/
form input{
    width: 50%;
    padding: 10px 5px;
    margin: 5px 0;
    border: 0;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
    color: #fff;
}
/*Positioning, and sizing for form labels*/
label{
    color: #fff;
    text-align: center;
}
/*color for placeholder*/
input::-webkit-input-placeholder {
    color: rgb(214, 209, 209) !important;
    }
/*Styling for submit button*/
input[type=submit]{
    width: 110px;
    height: 35px;
    margin: 25px 10px;
    background: #ff105f;
    border-radius: 30px;
    border: 0;
    outline: none;
    color: #fff;
    cursor: pointer;
    transition-property: background;
    transition-duration: 350ms;
}
/*animation for submit buttonr*/
input[type=submit]:hover{
    background: #ffad06;
}

.dropdown {
    position: relative;
    display: inline-block;
}

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

.dropdown-content a {
    color:rgb(255, 72, 0);
    padding: 12px 55px;
    text-decoration: none;
    display: block;
}

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

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

.insert-header {
    background-image: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0)),url(img/ship.jpg);
    min-height: 70vh;
    width:100%;
    background-position: center;
    background-size: cover;
    position: relative;
    
}
