/*EVERYTHING*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*BODY*/
body {
    background-color: #002349;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow-x: hidden;
}

/**/
html {
    font-family: Arial, sans-serif;
    color: antiquewhite;
}

/*HEADER TEXT*/
.top-header {
    text-align: center;
    font-size: larger;
    color: antiquewhite;
    background-color: #512DA8;
    padding-top: 13px;
    height: 25px;

}

/*HEADER IMAGE*/
.top-header img {
    position: absolute;
    height: 75px;
    width: auto;
    top: 0;
    right: 0;
    display: flex;
    border-radius: 5px;
}

/* NAVIGATION BAR */
nav {
    overflow: hidden;
    background-color: #512DA8;
    height: 50px;
}

nav a {
    float: left;
    font-size: 16px;
    color: antiquewhite;
    text-align: center;
    padding: 4px 16px;
    text-decoration: none;
    border-radius: 10px;
}

/*home, photos, promo, contact dropdowns*/
.dropdown {
    float: left;
    overflow: hidden;
    border-radius: 10px;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: antiquewhite;
    padding: 4px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

nav a:hover,
.dropdown:hover .dropbtn {
    background-color: #338ac7;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(116, 115, 191, 1);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 10px;
}

.dropdown-content a {
    float: none;
    color: antiquewhite;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: rgba(255, 215, 0, 0.6);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/*info dropdown*/
.dropdown-i {
    float: right;
    overflow: hidden;
    border-radius: 10px;
    margin-right: 80px;
}

.dropdown-i .dropbtn-i {
    font-size: 16px;
    border: none;
    outline: none;
    color: antiquewhite;
    padding: 4px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

nav a:hover,
.dropdown-i:hover .dropbtn-i {
    background-color: #338ac7;
}

.dropdown-content-i {
    display: none;
    position: absolute;
    background-color: rgba(116, 115, 191, 1);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 10px;
}

.dropdown-content-i a {
    float: none;
    color: antiquewhite;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content-i a:hover {
    background-color: rgba(255, 215, 0, 0.6);
}

.dropdown-i:hover .dropdown-content-i {
    display: block;
}

nav img {
    vertical-align: middle;
}

/*PAGE TITLES*/
.page-header {
    position: relative;
    left: 25%;
    margin: 10px auto;
    width: 100%;
}

/*PAGE TITLE IMAGE*/
.page-header img {
    vertical-align: center;
    width: 50%;
    height: auto;
    border-radius: 10px;
}

/*PAGE TITLE TEXT*/
.page-header .header-text {
    position: absolute;
    bottom: 0;
    background: rgba(255, 0, 255, 0.5);
    color: antiquewhite;
    padding: 0 20px;
    margin-bottom: 4px;
    border-radius: 10px;
    text-align: center;
    font-size: x-large;
}

/* FOOTER */
footer {
    position: flex;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    text-decoration: none;
    color: antiquewhite;
}

/* Hidden by default */
#juggling-loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 100px;
    z-index: 9999;
    border-radius: 10px;
    padding: 20px;
}

/* Ball styles */
.ball {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: juggle 1.5s infinite ease-in-out;
}

.ball1 {
    background: #f44336;
    left: 20%;
    animation-delay: 0s;
}

.ball2 {
    background: #4caf50;
    left: 50%;
    animation-delay: 0.3s;
}

.ball3 {
    background: #2196f3;
    left: 80%;
    animation-delay: 0.6s;
}

/* Juggling Animation */
@keyframes juggle {
    0% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-80px) scale(1.1);
    }

    50% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@media screen and (max-width: 1024px) {

    /*EVERYTHING*/
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* BODY */
    body {
        background: #002349;
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: -1;
    }

    html {
        font-family: Arial, sans-serif;
        color: antiquewhite;
    }

    /*HEADER TEXT*/
    .top-header {
        text-align: center;
        background-color: #514a9d;
        padding-top: 13px;
        color: antiquewhite;
        font-size: xx-small;
        height: 35px;
    }

    /*HEADER IMAGE*/
    .top-header img {
        position: absolute;
        height: 65px;
        width: auto;
        top: 0;
        right: 0;
        display: flex;
        border-radius: 5px;

    }

    /* NAVIGATION BAR */
    nav {
        overflow: hidden;
        background-color: #514a9d;
        height: 30px;
    }

    nav p {
        display: none;
    }

    nav a {
        float: left;
        font-size: x-small;
        color: antiquewhite;
        text-align: center;
        padding: 3px 8px;
        text-decoration: none;

    }

    /*home, photos, promo, contact dropdowns*/
    .dropdown {
        float: left;
        overflow: hidden;
    }

    .dropdown .dropbtn {
        font-size: x-small;
        border: none;
        outline: none;
        color: antiquewhite;
        padding: 3px 8px;
        background-color: inherit;
        font-family: inherit;
        margin: 0;
    }

    nav a:hover,
    .dropdown:hover .dropbtn {
        background-color: #338ac7;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: rgba(116, 115, 191, 1);
        min-width: 160px;
        box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .dropdown-content a {
        float: none;
        color: antiquewhite;
        padding: 6px 8px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 215, 0, 0.6);
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    /*info dropdown*/
    .dropdown-i {
        float: right;
        overflow: hidden;
        margin-right: 60px;
    }

    .dropdown-i .dropbtn-i {
        font-size: x-small;
        border: none;
        outline: none;
        color: antiquewhite;
        padding: 3px 8px;
        background-color: inherit;
        font-family: inherit;
        /* Important for vertical align on mobile phones */
        margin: 0;
        /* Important for vertical align on mobile phones */
    }

    nav a:hover,
    .dropdown-i:hover .dropbtn-i {
        background-color: #338ac7;
    }

    .dropdown-content-i {
        display: none;
        position: absolute;
        background-color: rgba(116, 115, 191, 1);
        min-width: 160px;
        box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .dropdown-content-i a {
        float: none;
        color: antiquewhite;
        padding: 6px 8px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

    .dropdown-content-i a:hover {
        background-color: rgba(255, 215, 0, 0.6);
    }

    .dropdown-i:hover .dropdown-content-i {
        display: block;
    }

    nav img {
        vertical-align: middle;
    }

    /*PAGE TITLE*/
    .page-header {
        position: relative;
        left: 25%;
        margin: 5px auto;
        width: 100%;
    }

    /*PAGE TITLE IMAGE*/
    .page-header img {
        vertical-align: center;
        width: 50%;
        height: auto;
        border-radius: 10px;
    }

    /*PAGE TITLE TEXT*/
    .page-header .header-text {
        position: absolute;
        bottom: 0;
        background: rgba(255, 0, 255, 0.5);
        /* Pink background with 0.5 opacity */
        color: antiquewhite;
        padding: 0 10px;
        margin-bottom: 4px;
        border-radius: 10px;
        text-align: center;
        font-size: smaller;
    }

    /* FOOTER */
    footer {
        position: flex;
        bottom: 0;
        width: 100%;
        text-align: center;
        padding: 5px;
        margin-top: 10px;
        font-size: x-small;
    }

}
