@import url('https://fonts.cdnfonts.com/css/jura');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #315FA4;
    --lightblue: #94EAFC;
    --charcoal: #36454F;
    --ashgray: #B2BEB5;
    --warmgray: #3E3E3E;
    --bg-box: #D9D9D9;
}

h1, h2, h3 {
    font-family: 'Jura', sans-serif;
}

.bold {
    font-weight: 600;
    color: var(--charcoal);
}

.italic {
    font-style: italic;
    color: var(--charcoal);
}

body {
    min-height: 100vh;
    font-family: 'Barlow', sans-serif;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

.active {
    text-decoration: underline;
}

.dropdown-active {
    background-color: var(--charcoal);
}

/* HEADER */

.desktop-menu {
    display: none;
}

header {
    display: flex;
    background-color: black;
    flex-direction: row;
    justify-content: space-between;
}

.logo {
    padding: 1rem;
}

.science-museum-logo {
    height: 2.5rem;
}

/* DROPDOWN MENU */

.drop-btn {
    background-color: black;
    color: white;
    padding: 1.2rem 3rem;
    font-size: 2rem;
    border: none;
    cursor: pointer;
}

.drop-btn:hover {
    color: var(--blue);
}

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

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

.dropdown-content a {
    color: white;
    padding: 1rem;
    padding-right: 0;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--blue);
}

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

.dropdown:hover .drop-btn {
    background-color: black;
} 

/* HERO */

.hero-img {
    display: flex;
    object-fit: cover;
    width: 100%;
    height: 50vh;
    z-index: 1;
}

.hero {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-text {
    max-width: 600px;
}

.hero-text h2 {
    padding-top: 2rem;
}

/* LIGHTNING ANIMATION */

.lightning-effect {
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 2;
    position: absolute;
    transition: 1s, 1s, 1000ms ease-in-out;
}

.lightning-effect:hover {
    background-color: #315FA4;
    opacity: 0.5;
    transition: all 2000ms ease-out;
    transition: 1s, 1s, 1000ms ease-in-out;
}

/* MAIN */

.hero-text {
    padding: 1rem;
}

.hero-text p {
    padding-top: 1rem;
}

.blue-btn {
    background-color: var(--blue);
    color: white;
    font-family: 'Jura', sans-serif;
    border: none;
    padding: 0.7rem;
    font-size: 1.3rem;
    border-radius: 6px;
    margin-top: 1rem;
    cursor: pointer;
}

.blue-btn:hover {
    background-color: var(--ashgray);
    color: var(--charcoal);
}

.article-img {
    width: 100%;
    height: 40%;
}

.article-text {
    padding: 1rem;
}

.article-text p {
    padding-top: 1rem;
}

/* EVENTS */

.event-box {
    background-color: var(--ashgray);
    width: 100%;
    height: 40%;
    padding: 1rem;
    margin-bottom: 1rem;
}

.event-img {
    width: 100%;
    height: 30vh;
    object-fit: cover;
}

.event-box h2, p, h3 {
    padding-top: 1rem;
}

.event-info {
    display: flex;
    padding: 1rem;
    justify-content: space-between;
    align-items: flex-end;
}

.event-icon {
    color: var(--blue);
    padding-right: 1rem;
}

.event-info-box ul {
    list-style-type: none;
    line-height: 1.5rem;
}

.event-btn:hover {
    background-color: white;
}

.guided-tour-btn, .event-btn {
    max-width: 100px;
}

/* BOOKING */

.booking {
    display: flex;
    flex-direction: column;
}

.booking a {
    color: white;
    text-decoration: none;
}

.booking-box {
    display: flex;
    width: 100%;
    justify-content: space-between;
    background-color: #36454F;
    color: white;
    padding: 1.5rem;
    margin-top: 0.5rem;
}

.sum {
    display: flex;
    width: 100%;
    padding: 1rem;
    justify-content: space-between;
}

.edit {
    cursor: pointer;
}

.edit:hover, a:hover {
    color: var(--lightblue);
}

.ordering-icon-and-text {
    display: flex;
    gap: 1rem;
}

.h2-booking {
    margin-bottom: 1rem;
}

.about-event {
    background-color: white;
}

/* Module box */

.dark-layer-behind-module-box {
    width: 100%;
    height: 150vh;
    background-color: var(--charcoal);
    opacity: 80%;
    position: fixed;
    z-index: 20;
}

.module-box {
    z-index: 21;
    position: fixed;
    margin: 1rem;
    background-color: var(--ashgray);
    height: 600px;
    min-width: 290px;
    top: 2rem;
}

.module-box a {
    color: white;
    text-decoration: none;
}

.module-box a:hover {
    color: var(--lightblue);
}

.book-boxes-module {
    padding-left: 1rem;
    padding-right: 1rem;
}

.module-title {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.x-out {
    cursor: pointer;
}

.x-out:hover {
    color: var(--blue);
}

.minus-plus {
    display: flex;
    justify-content: space-between;
    width: 3.5rem;
}

.confirm-btn, .event-btn {
    width: 100%;
}

.icon {
    cursor: pointer;
}

.icon:hover {
    color: var(--lightblue);
}

.none {
    color: var(--ashgray);
}

/* Confirmed order */

.confirmed-order {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    text-align: center;
    min-width: 320px;
    min-height: 300px;
}

.order-check {
    font-size: 8rem;
    color: darkseagreen;
}

/* FOOTER */

main {
    margin-bottom: 3rem;
}

footer {
display: flex;
flex-direction: row;
background-color: black;
color: white;
margin-top: auto;
bottom: 0;
width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
}

.socials {
    padding: 2rem;
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.socials a i:hover {
    color: var(--blue);
}

/* Medium-minus */
@media (min-width: 375px) {

    .module-box {
        height: 600px;
        min-width: 320px;
        top: 2rem;
        left: 1rem;
    }

    .event-btn {
        max-width: 100%;
    }

    .guided-tour-btn {
        max-width: 100px;
    }

}

/* Medium-medium */
@media (min-width: 425px) {

    .module-box {
        height: 600px;
        min-width: 350px;
        top: 2rem;
        left: 1rem;
    }

    .guided-tour-btn {
        max-width: 100%;
    }
}

/* Medium-plus */
@media (min-width: 450px) {

    .module-box {
        height: 600px;
        min-width: 70%;
        top: 2rem;
        left: 5rem;
    }

    .flex-article-texts {
        display: flex;
        justify-content: space-between;
        padding-left: 2rem;
        padding-right: 2rem;
        gap: 2rem;
    }
}

/* Large (desktop) */
@media (min-width: 1024px) {

    .module-box {
        max-height: 600px;
        min-width: 600px;
        top: 2rem;
        left: 20rem;
    }

    main {
        margin-left: 10rem;
        margin-right: 10rem;
    }

    header, footer {
        padding-left: 10rem;
        padding-right: 10rem;
    }

    .dropdown {
        display: none;
    }

    .desktop-menu {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        align-items: center;
        color: white;
        padding-right: 2rem;
        font-family: 'Jura', sans-serif;
        font-size: 1.2rem;
    }
    .desktop-menu a {
        color: white;
    }

    .desktop-menu a:hover {
        color: var(--lightblue);
    }

    .article-boxes {
        display: flex;
        gap: 2rem;
        align-content: space-around;
        margin-top: 1rem;
    }

    .article {
        width: 50vw;
        background-color: var(--bg-box);
        margin-bottom: 1rem;
    }

    .article-img, .event-img {
        height: 40vh;
        width: 100%;
        object-fit: cover;
    }

    .event-boxes-div {
        display: flex;
        gap: 1rem;
    }

    .event-box {
        width: 40vw;
    }

    .guided-tour-btn, .event-btn {
        max-width: 100px;
    }

    .booking-box-div {
        display: flex;
        gap: 2rem;
        justify-content: flex-start;
    }
}

/* Large (desktop) */
@media (min-width: 1200px) {

    .guided-tour-btn, .event-btn {
        max-width: 100%;
    }
}