:root {
    --orange: #FA9665;
    --light: #FDF4F1;
    --green: #28502E;
    --purple: #62466B;
    --blue: #337CA0; 
    --shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
}
.green {
    background: var(--green);
    color: #FFFFFF;
}
.purple {
    background: var(--purple);
    color: #FFFFFF;
}
.blue {
    background: var(--blue);
    color: #FFFFFF;
}
.light {
    background: var(--light);
}
.orange {
    background: var(--orange);
}
html {
    max-width: 1920px;
    margin: auto;
}
body {
    font-family: 'Play', sans-serif;
    font-size: 16px;
    margin: 0;
}
h1 {
    font-family: 'Bruno Ace', cursive;
    font-size: 32px;
    margin: 0;
}
h2 {
    font-family: 'Overpass Mono', monospace;
    background: var(--orange);
    position: relative;
    left: -16px;
    padding: 4px 16px;
    width: 100%;
    margin: 0;
}
:is(.explore , .evolution) h2 {
    font-family: 'Play', sans-serif;
    font-size: 16px;
    background: none;
}
h3 {
    font-weight: 700;
    margin: 0
}
a {
    color: black;
    text-decoration: none;
}
i {
    font-size: 24px;
}
.button {
    background: var(--orange);
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-weight: 700;
    width: max-content;
    height: fit-content;
    box-shadow: var(--shadow); 
}
section {
    padding: 1em;
}
.two-columns {
    display: grid;
    gap: 1em;
}
.rows {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* Header*/

header {
    background: var(--light);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: inherit;
    padding: 1em;
    max-width: 80em;
    margin: auto;
}
.header-content {
    font-weight: 700;
    display: flex;
    gap: 1em;
    justify-content: end;
    align-items: center;
    background: inherit;
}
.header-border p {
    margin: 0;
}
.closing-time {
    flex: 1;
    text-align: end;
}

.header-border > .green {
    border-radius: 0.5em;
    padding: 2px 1em;
}
.header-border {
    padding: 0.5em;
    border: solid 1px var(--orange);
    border-radius: 0.5em;
}
.logo img {
    width: 120px;
}
nav,
#menu-checkbox,
#search-checkbox {
    display: none;
    background: inherit;
}
nav >* {
    margin: 1em;
}
nav li {
    display: block;
    margin: 1em 0;
}
nav ul {
    padding: 0;
}
nav a {
    display: block;
    background: var(--orange);
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
}
#menu-checkbox:checked ~ nav {
    display: flex;
    flex-direction: column-reverse;
    position: absolute;
    top: 100%;
    width: 100%;
    right: 0;
    z-index: 1;
}
.search-box {
    display: flex;
    position: relative;
    justify-content: end;
    background: inherit;
}
.search-icon {
    z-index: 2;
}
.search {
    width: 0;
    position: absolute;
    background: inherit;
    padding: 0.5em 0;
    border: none;
    overflow: hidden;
    transition: all 1s ease-in;
}
#search-checkbox:checked ~ .search{
    border-bottom: solid 1px;
    width: 100%;
}

/* Footer */
footer section {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.newsletter {
    justify-content: center;
    align-items: center;
}
.subscribe {
    background: #FFFFFF;
    border-radius: 1em;
    padding: 0.2em;
}
#email {
    border: none;
    height: 3em;
}
.footer {
    justify-content: space-between;
}
.social-media_icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 0.5em;
    padding: 0.5em;
}
/* Index */
.hero {
    background-image: url(../images/Enterance.jpg);
    background-color: #00000069;
    height: 200px;
    background-size: cover;
    background-blend-mode: overlay;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.hero h1 {
    grid-column: 1/3;
    color: var(--orange);
}
.hero p {
    font-family: 'Overpass Mono', monospace;
    font-size: 20px;
    color: #FFFFFF;
    place-self: center left;
}
.hero a {
    place-self: center;
}
.hero img {
    display: none;
}
.introduction {
    align-self: center;
}
.wrapper {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    height: 200px;
    background-size: contain;
}
.highlighted {
    background-image: url(../images/Mammoth_big.jpg);
}
.intro-robotics-ai {
    background-image: url(../images/Robot.jpg);
}
.intro-cosmology {
    background-image: url(../images/Astronaut.jpg);
}
.info-box {
    width: calc(100% - 200px);
    min-width: 160px;
    padding: 0.5em;
    background: var(--light);
}


.intro-image {
    margin: 16px 0;
}
.intro-image img {
    max-width: 100%;
}
.article {
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: relative;
    background-color: var(--light);
}
.article > h3 {
    padding: 16px;
    text-align: center;
}
.article > p {
    flex: 1;
    padding: 0 1em;
}
.article div {
    height: 240px;
    background-size: cover;
    background-position: center top;
    display: inherit;
    flex-direction: column-reverse;
}
.tag {
    width: fit-content;
    margin: 4px 8px;
    padding: 4px;
    border-radius: 8px;
}
.rocket-race {
    background: url(../images/Children_building_rocket.jpg);
}
.night-museum {
    background: url(../images/Dinosaur.jpg);
}
.aeronautics {
    background: url(../images/Sheila_widnall.jpg)
}

/* About*/

.image-text-blocked {
    display: grid;
    gap: 1em;
}
.text-blocked {
    margin: 0 1em;
    background: #FFFFFF;
    position: relative;
    top: -2em;
    box-shadow: var(--shadow);
    padding: 1em;
}
.map {
    width: 100%
}
.food,
.shop {
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.food {
    background-image: url(../images/Cafe_workers.jpg);
}
.shop {
    background-image: url(../images/Toy.jpg);
}
.cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}
.center {
    margin: 16px 25%;
}

/* Contact*/

.contact-info {
    justify-content: space-around;
}
.contact-info div {
    display: inherit;
    align-items: center;
    gap: 1em;
}
.contact-form {
    padding: 1em;
    background: var(--light);
    box-shadow: var(--shadow);
    border-radius: 1em;
    gap: 0.2em;
}
.contact-form input {
    max-width: 20em;
}
#message {
    resize: none;
}
.get-involved-points h3 {
    width: fit-content;
    position: relative;
    padding: 4px 16px;
    left: -16px;
}
/* Explore*/
.explore-main {
    background-color: #0F1D2A;
    color: #FFFFFF;
}
.explore {
    background-image: url(../images/explore_bg.jpeg);
    background-size: contain;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-position: top center;
    gap: 0.5em;
}
.explore-header {
    background: #0F1D2A;
    color: #FFFFFF;
}
.explore-header a {
    color: #FFFFFF;
}


:is(.cosmology , .biology , .evolution ) {
    justify-self: end;
}
.explore-info {
    position: relative;
    padding: 16px;
    width: 200px;
    border-radius: 8px;
    box-shadow: inset 4px 4px 4px rgba(0, 0, 0, 0.25);
}
.explore-info p {
    margin: 0;
}
.heading {
    box-shadow: none;
    padding: 0;
}
.long-text {
    display: none;
}

/* School*/

.school-hero {
    position: relative;
    margin: auto;
}
.school-hero img {
    max-width: 100%;
}
.school-select input[type="radio"] {
    display: none;
}
.school {
    padding: 1em;
    display: none;
}
.select-class {
    display: flex;
}
.select-class label {
    width: 100%;
    text-align: center;
    padding: 16px
}
.select-class label:hover {
    text-decoration: underline;
}

#primary-checkbox:checked ~ .primary{
    display: block;
}
#middle-checkbox:checked ~ .middle{
    display: block;
}
#secondary-checkbox:checked ~ .secondary{
    display: block;
}

/* Evolution*/

.evolution-html {
    scroll-snap-type: y mandatory;
    background: var(--light);
}
.evolution-html header,
.evolution-html footer {
    scroll-snap-align: start;
}

.evolution div {
    background-size: cover;
    scroll-snap-align: start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: end;
}
.evolution-info {
    display: inherit;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    box-shadow: inset 0px 0px 4px 5px rgba(0, 0, 0, 0.25);
}
.evolution p {
    margin: 0;
}
.dinosaur {
    background-image: url(../images/dinosaurs.jpg);
    background-position: center;
}
.human {
    background-image: url(../images/cavemen.jpg);
    background-position: left;
}
.future {
    background-image: url(../images/robotics-desktop.jpg);
    background-position: right;
}
.evolution-general {
    background-image: url(../images/Mammoth_big.jpg);
    background-position: center;
}

@media (min-width: 600px) {
    h2 {
        width: fit-content;
        max-width: 30em;
    }
    .two-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    section {
        max-width: 80em;
        margin: auto;
    }
    /* Header*/

    .header-content {
        align-items: baseline;
    }
    nav {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 1em;
    }
    .search-box {
        align-self: center;
    }
    #search-checkbox:checked ~ .search{
        width: 23em;
    }
    nav >* {
        margin: 0;
    }
    nav ul {
        display: flex;
        flex-direction: row;
        gap: 1em;
    }
    nav a {
        background: none;
        padding: 0;
        box-shadow: none;
    }
    .header-border {
        grid-column: 1/3;
    }
    .hamburger-icon {
        display: none;
    }
    .underline a {
        color: var(--orange);
    }
    /* Footer */
    /* Index */
    .hero-background {
        background: linear-gradient(var(--light),#FFFFFF); 
    }
    .hero {
        height: 700px;
        background: none;
        grid-template-rows: repeat(2, auto);
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .hero-images {
        grid-column: 2/4;
        grid-row: 1/3;
        align-self: center;
        display: inherit;
        gap: 16px;
    }
    .hero-images img {
        width: 100%;
        display: block;
        border-radius: 8px;
    }
    .hero h1 {
        grid-column: 1/3;
        grid-row: 1;
        align-self: center;
        font-size: 3em;
    }
    .hero p {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        justify-self: left;
        color: black;
    }
    .hero a {
        grid-column: 1;
        grid-row: 2;
        place-self: unset;
    }
    .hero-image-one {
        grid-column: 1;
        grid-row: 1/3;
        align-self: center;
        justify-self: end;
    }
    .hero-image-two {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
    }
    .hero-image-three {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }

    .highlighted {
        grid-row: 1/3;
        height: 100%;
        flex-direction: column-reverse;
        position: relative;
        background-size: cover;
    }
    .highlighted .info-box {
        box-sizing: border-box;
        width: 100%;
        min-height: 100px;
    }
    
    .article-wrapper {
        flex-direction: row;
    }
    /* About*/
    
    /* Contact*/
    .get-involved-points {
        flex-direction: row;
    }
    /* Explore*/
    
    /* School*/
    
    
    .primary {
        background-image: url(../images/Children_building.jpg);
        background-size: 66%;
        background-repeat: no-repeat;
        background-position: right;
    }
    .school >* {
        width: 33%;
    }
    /* Evolution*/

    .evolution div {
        flex-direction: row;
        align-items: end;
    }
    .evolution-info {
        position: relative;
        width: 40%;
        margin: 16px;
    }
}
@media (min-width: 1000px) {
    .short-text {
        display: none;
    }
    .long-text {
        display: block;
    }
    :is(.cosmology , .robotics , .evolution , .heading) {
        justify-self: center;
    }
    .explore-info {
        display: flex;
        flex-direction: column;
        width: 300px;
        position: relative;
    }
    .image-text-blocked {
        grid-template-columns: repeat(2,1fr);
    }
    .text-blocked {
        left: -4em;
        top: 0;
        place-self: center;
    }
}
@media (hover: hover) {
    .button:hover {
        color: #FFFFFF;
    }
    :is(.wrapper , .article):hover {
        box-shadow: var(--shadow);
        translate: -0.5em -0.5em; 
        transition: all 300ms ease-out;
    }
    :is(.cosmology , .biology , .evolution ):hover {
        right: 1em;
    }
    :is(.ecology , .robotics):hover {
        left: 1em;
    }
    li a:hover {
        color: var(--orange);
    }
}
