:root {
    --blue: #004c8b;
    --white: #e2e2e2;
    --dark: #1a1a1a;
    --grey: #2a2a2a;
    --lightgrey: #888;
}

body {
    margin: 0;
    padding: 0;
    font-family: century-gothic, sans-serif;
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.6;
}

a {
    color: var(--blue);
}

.header {
    background-color: var(--gray);
    padding: 0px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner {
    position: relative;
    height: 50vh;
    width: 100vw;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.banner-video {
    position: absolute;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vh;
}

.banner-block {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    /*Required to darken the video and allow text to show*/
    z-index: 1;
}

.banner h1 {
    font-size: 2.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 0;
    font-size: 2.5em;
    color: var(--white);
    z-index: 3;
}

.banner p {
    font-size: 1.2em;
    color: var(--white);
}

.main {
    padding: 20px;
}

.intro,
.services,
.contact {
    background-color: var(--grey);
    padding: 20px;
    border-radius: 8px;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: bold;
}

input,
textarea {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid var(--white);
    font-size: 1rem;
}

.ticker {
    background-color: var(--blue);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
}

.ticker-content span {
    display: inline-block;
    margin-right: 50px;
    font-size: 18px;
}

@keyframes ticker {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-100%);
    }
}

textarea {
    resize: vertical;
}

.submitButton {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: var(--grey);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
}

.submitButton:hover {
    background-color: var(--blue);
}

.submitButton:active {
    background-color: var(--white);
    color: var(--grey);
}

h2 {
    border-bottom: 2px solid var(--blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Mobile View */
@media (max-width: 768px) {
    header .banner h1 {
        font-size: 2rem;
    }

    .banner {
        padding: 0px 0px;
    }

    .banner-video {
        height: max-content;
    }

    .banner h1 {
        font-size: 2em;
    }

    .banner p {
        font-size: 1em;
    }
}

/* Desktop View */
@media (min-width: 769px) {
    header .banner h1 {
        font-size: 3rem;
    }

    .banner-video {
        width: 100vw;
    }

    main {
        margin-left: 30%;
        margin-right: 30%;
    }

    .main {
        max-width: 960px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        max-width: 800px;
    }

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

    .services .service-card {
        width: 100%;
    }
}

footer {
    text-align: center;
    padding: 10px;
    background-color: var(--grey);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 150px);
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--grey);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--lightgrey);
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    box-sizing: border-box;
    color: var(--white);
}

.modal-content li {
    padding: 8px;
}

.close {
    color: var(--lightgrey);
    float: right;
    text-align: right;
    font-size: 28px;
    font-weight: bold;
    position: relative;
    right: 0;
    padding: 10px;
}

.close:hover,
.close:focus {
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
}

.service-card {
    background-color: var(--grey);
    padding: 8px;
    margin-bottom: 20px;
    align-self: center;
    cursor: pointer;
}

.pulse {
    display: inline-block;
    text-decoration: underline;
    animation: pulse 4s infinite ease-in-out;
    transform-origin: left center;
}

.shimmer-section {
    border: 5px solid transparent;
    border-collapse: separate;
    border-image-slice: 1;
    border-width: 3px;
    border-radius: 0px;
    animation: shimmer 6s infinite;
}

.shimmer-section:hover {
    animation: none;
    background: none;
    background-color: var(--blue);
    border-image-source: none;
}

/* Animation keyframes */
@keyframes shimmer {
    0% {
        border-image-source: linear-gradient(0deg, var(--blue), var(--lightgrey));
    }

    25% {
        border-image-source: linear-gradient(90deg, var(--blue), var(--lightgrey));
    }

    50% {
        border-image-source: linear-gradient(180deg, var(--blue), var(--lightgrey));
    }

    75% {
        border-image-source: linear-gradient(240deg, var(--blue), var(--lightgrey));
    }

    100% {
        border-image-source: linear-gradient(360deg, var(--blue), var(--lightgrey));
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scaleX(1);
    }

    50% {
        transform: scaleX(1.05)
    }

}