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


/* Responsive Image */
img {
    display:block;
    max-width:100%;
}

* {
    box-sizing: border-box;
}

/* hamburger menu stuff */
.mobile {
    display:block;
}

/* #menu-links only needed for a hamburger menu */
.tablet-desktop {
    display:none;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Header styles */
header {
    justify-content: center;
    width: 100%;
    height: 160px;
    font-family: cursive;
    font-size: 2em;
    background: linear-gradient(rgb(122, 209, 68), #c3e24cff);
}

header img {
    max-width: 100%;
    height: auto;
}

/* Style rules for hamburger menu */
.mobile-nav a {
    text-align:center;
    font-size: 1.5em;
    display: block;
}

.mobile-nav a.menu-icon {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

#hamburger {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 0.8em;
    cursor: pointer;
    background-color: white;
    padding: 3px 8px;
    border-radius: 3px;
    filter: drop-shadow( 0px 0px 3px black);
    color: green;
}


.logo {
    display: block;
    margin: 0 auto;
    transform: translateY(60px);
    filter: drop-shadow( 5px 5px 8px black);
    width: 250px;
}

.logo a {
    display: inline-block;
}

#social-icons {
    position: absolute;
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: rgb(133, 196, 51);
    width: 100%;
}

#social-icons img {
    transform: translateX(30px);
    max-width: 55%;
    padding: 5px;
    height: auto;
    filter: drop-shadow( 2px 2px 1px rgb(64, 64, 64));
}

.contact-info {
    position: absolute;
    top: 8px;
    text-align: center;
    width: 100%;
}

header p {
    color: white;
    text-align: center;
    font-size: 13px;
}

header p a {
    color:white;
    padding: 3px 8px;
    border-radius: 4px;
}

.action {
    display: block;
    font-size: 1.5em;
    color: green;
    text-shadow: rgb(136, 136, 136) 5px 5px 8px;
}

nav {
    width: auto;
    flex: 1;
    font-family:'Impact', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 900;
    font-size: 15px;
    background-image: linear-gradient(rgb(122, 209, 68), #c3e24cff);
}


.events {
    float: left;
    display: block;
    margin: 0 30px;
    border: none;
}


/* Animation for nav hamburger menu */
/* nav before opening everything set to 0: you cannot see it */
    #menu-links {
        max-height: 0;
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;

        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;    /* Allows for animation to occur */

        pointer-events: none;
        width: 100%;
    }
    
    /* animation for ul li for opacity */
    #menu-links.open ul li {
        transform: translateY(0);
    }

    /* hamburger menu open: final view */
    #menu-links.open {
        max-height: 1000px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

nav a {
    display: inline-block;
    padding: 12px 8px;
    text-decoration: none;
    color:white;
}

nav li a {
    float: left;
}

nav li {
    padding: 12px 15px;
    border-top: 2px solid #fff;
    color: white;
    -webkit-text-stroke: 1px black;
}

nav li:first-child {
    border-top:none;
}

nav ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li a {
    color: white;
}

.banner {
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    animation-duration: 1s;
    animation-name: transform;
}

    /* animation for when you go on each page */
    @keyframes transform{
    
        0%{
        transform: translateY(50px);
        opacity: 0;
        }

        100%{
            transform: translateY(0px);
            opacity: 100%;
        }
    }

.banner img {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    transition: 0.2s ease;
}

main {
    clear: both;
    padding: 20px;
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
    font-size: 18px;
    flex: 1;
    margin: 50px;

    animation-duration: 1s;
    animation-name: transform;
}

h1 {
    padding: 20px;
}

#main-text {
    text-align: center;
    margin-bottom: 20px;
}

.main-p {
    margin-bottom: 30px;
}

.italic {
    padding: 25px;
    font-style: italic;
    float: left;
}

.subheading {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align:center;
}

.frame {
    position: relative;
    max-width: 450px;
    margin: 2% auto;
}

.frame img {
    margin: 0 auto;
    display:block;
    max-width:100%;
}

audio {
    display: block;
    margin: 20px auto;
}

video {
    display: block;
    margin: 20px auto;
    max-width: 100%;
}

.button a {
    text-decoration: underline;
    color: black;
}

.pic-text {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    bottom: 0;
    color:#fff;
    width: 100%;
    padding: 20px;
    text-align: center;
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.25em;
    font-weight: bold;
}

.gallery {
    width: 450px;
    height: 300px;
    object-fit: cover;
}

.image-container {
    position: relative;
}

.cap {
    display: block;
    text-align: center;
    font-family: Verdana, Arial, sans-serif;
    text-shadow: 1px 1px 2px #808080;
}

.button {
    color: black;
}

.link a {
    color: black;
}

ul li {
    list-style: none;
    padding: 5px;
}

ul {
    padding: 25px;
}

ul li a {
    color: black;
}

.package {
    max-width: 400px;
    min-width: 300px;
    margin: 0 auto;
    padding: 30px;
    background-image: linear-gradient(rgb(199, 255, 164), rgb(255, 255, 255));
    border-radius: 30px;
}

#packages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

#silver {
    background-image: linear-gradient(rgb(214, 214, 214), rgb(178, 178, 178));
    
}

#gold {
    background-image: linear-gradient(rgb(255, 223, 0), rgb(255, 244, 179));
}

#platinum {
    background-image: linear-gradient(rgb(60, 215, 236), rgb(163, 255, 135))
}

.table {
    margin: 50px auto;
    width: 100%;
}

.price {
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    padding: 25px;
}

table {
    border: 1px solid #000000;
    border-collapse: collapse;
    margin: 0 auto;
    max-width: 80%;
    padding: 15px;
}

th, td {
        border: 1px solid #000;
        padding: 2%;
        text-align: left;
}

td {
        text-align: center;
}

th {
        background-color: #36b712;
        color: #fff;
        font-size: 1.15em;
}

tr:nth-child(odd) {
        background-color: #ccc;
}

.stars {
        margin: 0 auto;
        display: block;
}

.review-text {
        font-size: 15px;
        font-family: 'Trebuchet MS', Helvetica, sans-serif;
}


.gallery {
        margin: 0 auto;
    }


.figure {
        margin: 0 auto;
    }

.caption {
    color:#fff;
    text-shadow: 0 0 5px #000000;
    width: 100%;
    padding: 20px;
    text-align: center;
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.5em;
    font-weight: bold;
}

h4 {
    text-align: center;
    padding: 20px;
}

h3 {
    padding: 80px;
}

h2 {
    padding: 40px;
}

/* infinite image animation */

.carousel {
    margin: 50px auto;
    width: 100%;
    
    mask-image: radial-gradient(circle, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
    display: flex;
    overflow-x: auto;   /* allows for horizontal scrolling */
}

/* gets rid of scrollbar */
.carousel::-webkit-scrollbar {
    display: none;
}

.carousel:hover .group {
    animation-play-state: paused;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5em;
    padding-right: 5em;
    border-radius: 8px;
    flex-shrink: 0;

    animation: spin 35s infinite linear;    /*links the animation to the class, makes it infinite, and makes it linear so it doesn't speed up or slow down */
}

.image {
    flex: 0 0 20em;
    height: 13em;
    border-radius: .2em;
    filter: drop-shadow( 0 0 3px rgb(31, 31, 31));
    align-content: center;
}

/* animation for the carousel */
@keyframes spin {
    from {translate: 0;}
    to {translate: -100%;}
}

#form {
    margin-top: 2%;
    background-image: linear-gradient(rgb(97, 211, 82), rgb(189, 224, 98));
    filter: drop-shadow( 2px 2px 3px rgb(64, 64, 64));
    padding: 2%;
}

#form h2 {
    text-align: center;
}

#form {
    max-width: 600px;
    margin: 0 auto;
}

/* Style rules for form elements */
fieldset, input, select, textarea {
    margin-bottom: 2%;
}

fieldset legend {
    font-weight: bold;
    font-size: 1.25em;
}

label {
    display: block;
    padding-top:3%;
}

form #submit {
    margin: 0 auto;
    border: none;
    display: block;
    padding: 2%;
    background-color: white;
    pointer-events: auto;
    font-size: 1em;
    border-radius: 10px;
}

footer {
    clear: both;
    margin-top: auto;
    transform: translateY(80px);
}

footer p {
    font-family: serif;
    font-size: 10px;
    text-align: center;
    padding:8px;
    background-color: rgb(146, 209, 68);
}

footer p a {
    color: black;
    padding: 4px;
}

/* Media query for desktop viewport */
@media screen and (min-width: 1150px), print {
/* Tablet Viewport: show tablet-desktop, hide mobile class */
    .mobile, .mobile-nav {
        display:none;
    }
    
    #hamburger {
        display: none;
    }

    .tablet-desktop {
        display: block;
    }

    /* Navigation styles for tablet/desktop - make the number of autos match the number */
    
    header {
        float: left;
        height: 140px;
        width: 20%;
        padding-bottom: 0;
        padding: 45px;
    }

    .contact-info {
        transform: translateX(-5px);
    }
        
    .contact-info a:hover {
        background-color: white;
        color: black;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: 0.2s ease;
    }

    .logo {
        position: relative;
        z-index: 10000;
        max-width: 80%;
        min-width: 230px;
        height: auto;
        transform: translateY(-5px);
    }
    
    .heading {
        font-weight: bold;
        font-size: 3em;
        padding: 100px;
    }

    #social-icons {
        position: relative;
    }

    /* Desktop Viewport: Style rules for nav area */
    nav {
        position: relative;
        float:right;
        top: 0;
        width: 80%;
        height: 140px;
        text-align: center;
        font-size: 20px;
        z-index: 9999;
    }
    
    nav ul {
        display: block;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    nav li {
        display: inline-block;
        transform: translateY(40px);
        padding: 12px 15px;
        border-radius: 0;
        margin: 0;
        border: none;
    }

    nav li:hover {
        background-color: white;
        color: black;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        
    }

    nav li:first-child {
        border-top: 0;

    }  

    nav li a {
        padding: 5px;
        float: none;
    }
        

    /* Navigation styles for desktop dropdown */
    nav ul li:hover > ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
    
    nav ul li {
        position: relative;
        transition: 0.2s ease;
    }

    nav ul li:first-child {
        border-top: none;
    }  

    nav ul ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-80px) translateY(-10px);

        min-width: 160px;   /* controls background width */
        padding: 10px;

        background-image: linear-gradient(rgb(122, 209, 68), #c3e24cff);
        outline: 3px solid black;
        border-radius: 8px;

        display: flex;
        flex-direction: column;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: 0.2s ease;
    }

    nav ul ul li {
        transform: translateX(0);
        display: block;
        padding: 10px 10px;
        
    }

    nav ul ul li a {
        display: block;
        text-align: center;
        
    }
    
    /* Main Style rules for desktop viewport */

    .banner{
        display: block;
    }

    .frame img {
        opacity: 0.9;
    }

    .frame img:hover {
        opacity: 1;
        box-shadow: 0px 0px 10px #808080;
    }    

    .grid {
        display:grid;
        grid-template-columns: auto auto auto;
        grid-gap: 20px;
    }

    .grid-item4 {
        grid-column: 1 / span 3;
    }

    .action {
        display: inline-block;
        margin-top: 20px;
        padding: 15px;
    }

    .button {
        transition: 0.2s ease-in-out;
    }

    .button:hover {
        background-color: rgb(134, 210, 1);
        padding: 10px;
        border-radius: 30px;

        transition: 0.2s ease;
    }

    .link a {
        color: white;
        transition: 0.2s ease-in-out;
    }

    .link a:hover {
        color: black;
        transition: 0.2s ease;
    }

    .package {
        transition: 0.3s ease-in-out;
    }

    #packages {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 60px;
    }

    .package:hover {
        transform: scale(1.1);
        transition: 0.3s ease;
    }

    #platinum:hover {
        filter: 
            drop-shadow( 0px 0px 30px rgb(60, 215, 236))
            drop-shadow(0 0 40px rgb(105, 105, 105));
         transition: 0.3s ease;
    }
    
    .package-text:hover {
        text-decoration: underline;
    }

    #grid {
        display: grid;
        grid-template-columns: auto auto;
        gap: 20px;
    }

    
    .event-grid {
        width: 100%;
        margin: 0 auto;
    }

    .gallery {
        opacity: 0.9;
        border: 0 solid rgb(122, 209, 68);
        transition: 0.2s ease-in-out;
    }

    .gallery:hover {
        opacity: 1;
        box-shadow: 0px 0px 10px #808080;
        transition: 0.2s ease;
        border: 8px solid rgb(122, 209, 68);
    }
}