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

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

/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    /* Generic project styles */
    color: #000080;
    font-family: lato, sans-serif;
}

/* headings and theme */

h1,
h2 {
    font-family: lato, san-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00806b;
}

.hidden-heading {
    display: none;
}

/* Header */

header {
    background-color: #ffffff;
    padding: 0 1rem;
    position: fixed;
    z-index: 99;
    width: 100%;
    box-shadow: 0 2px 2px #00806b;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

#theme-menu a {
    text-decoration: none;
    color: inherit;
}

#theme {
    text-align: left;
    font-size: 280%;
    justify-content: center;
    display: inline-flex;
}

/*styling navigation links */

#theme-menu {
    font-size: 15px;
    letter-spacing: 4px;
    list-style-type: none;
}

#theme>li {
    padding-left: 1rem;
}

/*overriding the general text color*/
h2 {
    color: #000080;
}

#theme-menu>li {
    margin-bottom: 1em;
    justify-content: center;
    display: inline;
}

#theme-menu a {
    text-decoration: none;
    color: inherit;
}

/* mouse over link */
#theme-menu a:hover {
    border-bottom: 1px solid #000080;
}

.active {
    border-bottom: 1px solid #000080;
}

/* Navbar styles with dropdown toggle */
nav {
    position: absolute;
    background-color: #ffffff;
    width: 100%;
    left: 0;
    padding: 0 1rem;
    box-shadow: 0 2px 2px #3a3a3a;
    display: none;
    top: 100%;
}


/* Nav toggle */
#nav-toggle:checked~nav {
    display: block;
}

#nav-toggle {
    display: none;
}

.nav-toggle-label {
    font-size: 2rem;
}

/* Main content */
main {
    /* Enlarge main element to push footer down*/
    flex: 1 0 auto;
    /* Add margin at the top to prevent content from being covered by the header */
    margin-top: 47px;
    /* Enable flex properties for child elements */
    display: flex;
    flex-direction: column;
}

#containertxt {
/* Final rgba value sets the opacity so it is semi-transparent */
font-family: Arial, Helvetica, sans-serif, sans-serif;
background-color: rgba(203, 220, 200, 0.5);
font-size: 110%;
text-transform: capitalize;
position: absolute;
bottom: 30px;
width: 30%;
right: 60px;
min-height: 200px;
padding-top: 40px;
padding-left: 10px;
text-align:center;
border-radius: 10px;
}

/*background image*/

#barbg-image {
    height: 600px;
    width: 99%;
    background: url("../images/barbg.jpeg") no-repeat center center/cover;
    margin-top: auto;
    position: relative;

    /* loading page animation zoom effect */
    animation-name: barbg-zoom;
    animation-duration: 5s;
    animation-fill-mode: forwards;
}

/* level of zoom for background image */
@keyframes barbg-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* styling the table for the opening time */

.opening-hours {
    text-align: center;
    color: #000080;
}

/*opening time*/
.opening-tm {
    margin-left: 10%;
    width: 70%;
    padding: 40px;
    text-align: left;
    line-height: 2em;
    display: table;
    justify-content: center;
}

table,
th,
td {
    border: 1px solid;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th,
td {
    padding: 2px;
}

.opening-tm {
    /* Handles responsivity without the need for a media query */
    display: flex;
    flex-wrap: wrap;
}

/* styling the cover text */
.barb-item {
    margin-bottom: 1%;

}

.barb-d {
    padding: 50px;
    margin-top: 1%;
    text-align: center;
    line-height: 2;
    box-shadow: 1px 1px 20px;
    background-color: rgb(199, 218, 199);
    display: flex;
    margin-top: 5%;
}

/* Form */

#signup {
    background-size: cover;
    background-position: 75%;
    padding: 80px 10% 0 10%;
    flex-grow: 1;
}


#signup-form {
    color: #000080;
    background-color: rgba(203, 220, 200, 0.5);
    padding: 30px;
    margin-top: auto;
    border-radius: 25px;
}

#signup-form>h2 {
    color: #000080;
    margin-bottom: 20px;
}


.text-input {
    background: transparent;
    color: #000080;
    width: 100%;
    height: 25px;
    margin: 5px 0 20px 0;
    border: 1px solid #000080;
    border-radius: 2px;
    padding: 0 5px;
    border-radius: 5px;
}


.radio-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.join-button {
    margin-top: 20px;
    border-radius: 2px;
    padding: 15px 32px;
    font-size: 100%;
    background-color: rgba(203, 220, 200, 0.5);
    border: 1px solid #000080;
    border-radius: 5px;
    color: #000080;
}

/*footer containing the social newtork*/
#socialm {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
}

#socialm i {
    font-size: 160%;
    padding: 5%;
    color: #3a3a3a;
}

.copyright {
    text-align: justify;
    text-indent: 1%;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    #photos {
        column-count: 1;
        column-gap: 0;
    }

#theme {
    text-align: justify;
}
}

/* Gallery page */
#photos img {
    width: 100%;
    line-height: 1em;
}

#photos {
    line-height: 0;
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

    /* Header */
    nav {
        display: block;
        position: relative;
        box-shadow: none;
        width: fit-content;
        padding-right: 1rem;
    }

    #theme-menu {
        display: flex;
    }

    #theme-menu>li {
        padding-left: 1rem;
    }

    .nav-toggle-label {
        display: none;
    }

       /* Gallery */
       #photos {
        column-count: 3;
        column-gap: 0;
    }
    #theme {
        font-size: 280%;
        line-height: 75px;
        margin: 0 0.5rem;
    }

    /* Main content */
    main {
        /* Push main content down to accommodate larger header */
        flex: 1 0 auto;
        margin-top: 50px;
    }
}

/* Large devices (laptops and desktops, 992px and up) */
@media screen and (min-width: 992px) {
    #menu a:hover {
        border-bottom: 1px solid #000080;
    }

    .nav-toggle-label {
        display: none;
    }

      /* Gallery */
      #photos {
        column-count: 4;
        column-gap: 0;
    }
}
    @media screen and (min-width: 1200px) {

        /* Reasons section */
        #benefits {
            display: flex;
            flex-direction: row;
        }
    }