@keyframes bounceSquash {
  0%, 100% {
    transform: translateY(0) scaleY(1) scaleX(1);
  }
  30% {
    transform: translateY(-7px) scaleY(1.2) scaleX(0.8);
  }
  50% {
    transform: translateY(0) scaleY(0.8) scaleX(1.2);  
  }
  70% {
    transform: translateY(-7px) scaleY(1.1) scaleX(0.9); 
  }
}

html {
    background-color: black;
}

header {
    display: flex;
    position: fixed;
    flex-direction: column;
    left: 0;
    top: 0;
    gap: 10px;
    width: 100vw;
    margin-bottom: 5px;
    padding: 0;
    background-color: black;
    z-index: 1;
}

main {
    position: relative;
    background-color: black;
}

* {
    transition: 0.3s ease-in-out;
}

body {
    position: relative;
}

#header-containers {
    display: flex;
    width: 100%;
    flex-direction: row;
    height: 4vh;
}

#title-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 80%;
    height: 100%;
    padding-left: 30px;
}

#title {
    color: white;
    letter-spacing: 10px;
    font-weight: bold;
}

.dot-e {
    color: rgb(0, 255, 0)
}

.dot {
    position: relative;
    display: inline-block;
    animation: bounceSquash 0.8s ease-in-out infinite;
    transform-origin: bottom center;
}

#sign-up-login {
    display: flex;
    width: 20%;
    height: 100%
}

#login, #sign-up {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
}

#login > a,
#sign-up > a {
    text-decoration: none;
    color: white;
    opacity: 70%;
}

#login > a:hover,
#sign-up > a:hover,
#login > a:focus,
#sign-up > a:focus {
    text-decoration: underline;
    opacity: 100%;
    color: rgb(0, 255, 0);
}

#page-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px;
}

.page-button {
    outline: none;
    border: none;
    width: 60px;
    height: 50px;
}

#page {
    color: white;
}

#nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    margin-top: 1vh;
    margin-bottom: 1vh;
}

.event-type-container {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.event-type-button {
    font-size: 100%;
    color: white;
    outline: none;
    background: none;
    border: none;
    text-transform: capitalize;
    letter-spacing: 2px;
}

button {
    cursor: pointer;
    font-weight: bold;
}

button:not(#search):not(.private-event-container) {
    border-radius: 9999px 9999px 9999px 9999px;
}

.event-type-button:hover,
.event-type-button:focus {
    background-color: rgb(0, 255, 0);
    color: white;
}

#error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#error {
    color: red
}

.fa-spinner {
    color: white;
    font-size: 200%;
  }

#super-admin-container {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    background-color: black;
    justify-content: center;
    width: 100%;
}

#event-inner-container {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 40vh;
}

.event {
    display: flex;
    flex-direction: column;
    padding-bottom: 2%;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    align-items: center;
    justify-content: space-around;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}

.fa-solid {
    font-size: 250%;
    color: white;
}

.fa-arrow-right,
.fa-arrow-left {
    font-size: 150%;
    font-weight: bold;
}

.ctrl-container {
    display: flex;
    align-items: center;
    border-color: #aef5dc;
    justify-content: center;
    width: 10%;
    position: absolute;
    top: 30%;
    height: 10%;
    margin-top: 40px;
}


#left-container {
    left: 25%
}

#right-container {
    right: 25%
}

.ctrl-container > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    border: none;
    outline: none;
    background: none;
    font-weight: bold;
    color: white;
    height: 100%;
    font-size: 120%;
    cursor: pointer;
}

.ctrl-container > button:hover {
    background-color: black;
    color: white;
    width: 70%;
}

#search-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 2%;
    gap: 1%
}


.fa-search {
    color: white;
}

.event-name {
    color: white;
    text-align: center;
    font-weight: bold;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.time-date {
    display: flex;
    width: 50%;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border-radius: 10px;
    padding: 10px;
}

.time, .date {
    font-weight: bold;
    color: white;
    font-size: 150%;
}

.button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.book-button {
    outline: none;
    color: black;
    background-color: rgb(0, 255, 0);
    border: none;
    color: white;
    width: 25%;
    height: 150%;
    font-weight: bold;
    font-size: 25px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.book-button > i {
    font-size: 25px;
}

.book-button:hover,
.book-button:focus {
    width: 30%
}

a {
    font-weight: bold;
}

#search {
    border-radius: 5px;
    background-color: white;
}

@media (min-width: 500px) {
    .date-container,
    .time-container,
    .calendar-container {
        display: flex;
        align-items: center;
        width: 50%;
    }

    .date-and-time {
        font-size: 200%;
    }

    .date {
        justify-content: flex-start;
    }

    .time-container {
        justify-content: flex-end;
    }

    .calendar-container {
        justify-content: center;
    }

    .fa-calendar {
        color: white;
        font-size: 250%;
    }

    .private-event-container:hover {
        width: 55%;
        height: 45vh;
    }

    #search {
        width: 35%
    }

    .event {
        border-radius: 15px;
    }

    .event-name-container {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .event-name {
        color: white;
        width: 70%
    }
}

@media (max-width: 425px) {
    #sign-up-login {
        width: 30%;
    }

    .page-button {
        width: 40px;
        height: 30px
    }

    #title-container {
        position: relative;
        width: 70%;
    }

    #title {
        position: relative;
        font-size: 110%;
    }

    .book-button {
        width: 50%;
        font-size: 15px;
        height: 100%;
    }

    .book-button > i {
        font-size: 15px;
    }

    .time, .date {
        font-size: 110%;
    }

    #super-admin-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    
    .event {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 18vh;
        margin-top: 1vh;
    }

    .event-type-button {
        font-size: 13px;
    }

    #error {
        font-size: 13px;
    }

    .event-name {
        font-size: 15px;
    }


    a {
        font-size: 12px;
    }
}

/* Styling for private events begins here */

#admin-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 1vh;
}

.hidden {
    display: none;
}

.spinner-container {
    display: flex;
    min-height: 10%;
    align-items: center;
    justify-content: center;
}

.private-event-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    height: 40vh;
    width: 50%;
    margin-top: 3vh;
    border-radius: 15px;
}

.clicked {
    background-color: rgb(0, 255, 0);
    color: white;
}

@media (max-width: 425px) {
    .private-event-container {
        width: 95%;
        height: 25vh;
        margin-top: 1vh;
    }

    .private-event-name {
        font-size: 20px !important;
    }

    .fa-calendar {
        font-size: 150%;
        color: white;
    }
}