* {
    font-family: 'Arial', sans-serif;
}

body {
    background-image: url('../assets/images/kcbackground.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

/* navigation bar */
.topnav {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: transparent;
    z-index: 9999;
    margin: 1%;
    font-size: 20px;
    text-shadow: 2px 2px 3px #000000;
}

.topnav img {
    display: flex;
    min-width: 100px;
    max-width: 120px;
    height: auto;
    transition: 0.4s;
    margin-right: auto;
}

.topnav li {
    display: inline-flex;
    text-align: right;
    background-color: #046A68;
    border: outset #0e9a98;
    border-width: 5px;
    align-items: center;
    transition: 0.4s;
    padding: 0;
}

.topnav li a {
    display: block;
    padding: 18px;
}

/* unvisited link */
a:link {
    color: #ffffff;
    text-shadow: 2px 2px 3px #000000;
    transition: 0.4s;
    text-decoration: none;
}

/* visited link */
a:visited {
    color: #ffffff;
    text-shadow: 2px 2px 3px #000000;
    transition: 0.4s;
}

/* mouse over link */
.topnav li:hover {
    background-color: #06aba7;
    border: outset #12f5ef;
    border-width: 5px;
    text-shadow: 0 0 10px #6f95ff;
    transition: 0.4s;
}

/* selected link */
.topnav li.active {
    background-color: #06aba7;
    border: outset #12f5ef;
    color: #ffffff;
    border-width: 5px;
    text-shadow: 0 0 10px #6f95ff;
    font-weight: bold;
    transition: 0.4s;
}

/* signin nav button */
#signin {
    background-color: #890000;
    border: outset #b20101;
    border-width: 5px;
}

#signin:hover {
    background-color: #b20101;
    border: outset #890000;
    border-width: 5px;
    text-shadow: 0 0 10px #6f95ff;
    transition: 0.4s;
}

#signin.active {
    background-color: #b20101;
    border: outset #890000;
    color: #ffffff;
    border-width: 5px;
    text-shadow: 0 0 10px #6f95ff;
    font-weight: bold;
    transition: 0.4s;
}

/* page titles */
.title {
    display: block;
    padding: 18px;
    text-align: center;
    margin: 30px 30%;
    color: #ffffff;
    background-color: #046A68;
    border: outset #0e9a98;
    text-shadow: 2px 2px 3px #000000;
    border-width: 5px;
    align-items: center;
}

/* page content */
.content {
    display: block;
    padding: 18px;
    text-align: center;
    margin: 1% 10%;
    color: #ffffff;
    background-color: #046A68;
    border: outset #0e9a98;
    text-shadow: 2px 2px 3px #000000;
    border-width: 5px;
    align-items: center;
    font-size: 25px;
}

/* team section */
.team {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.member-card {
    position: relative;
    width: 240px;
}

.member-photo {
    width: 100%;
    height: auto;
    display: block;
}

/* toggle buttons */
.toggle-wrapper {
    display: flex;
    justify-content: center;
    gap: 0px;
    margin: 20px auto;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    box-sizing: border-box;
    background-color: #909797;
    border: outset #5e5e5e;
    border-width: 5px;
    color: #ffffff;
    text-shadow: 2px 2px 3px #000000;
    padding: 10px 0;
    font-size: 20px;
    cursor: pointer;
    transition: 0.4s;
    font-family: inherit;
    text-decoration: none;
}

.toggle-btn:hover,
.toggle-btn.active {
    background-color: #cdcdcd;
    border: outset #7a7a7a;
    border-width: 5px;
    text-shadow: 0 0 10px #6f95ff;
    outline: none;
}

/* pricing page */
.price-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    font-size: 20px;
    text-shadow: 2px 2px 3px #000000;
}

.price-wrapper div {
    background-color: #046A68;
    border: outset #0e9a98;
    color: #cdcdcd;
    flex: 1 1 320px;
    max-width: 480px;
    box-sizing: border-box;
    border-width: 5px;
    align-items: center;
    padding: 1px 20px;
    border-radius: 60px;
    overflow: hidden;
    display: block;
}

.price-wrapper hr {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    border: none;
    border-top: 1px solid #3f91b6;
}

.price-text {
    font-size: 2em;
    text-align: center;
    margin: 0px;
}

.list-text {
    font-size: 30px;
    text-align: left;
    margin: 0px;
    padding: 5px 5px;
}

.price-wrapper img {
    float: left;
    width: 30px;
    padding: 5px 5px;
}

.price-desc {
    text-align: center;
    font-size: 30px;
    margin: 10px;
}

.price-btn-wrapper {
    display: flex;
    justify-content: center;
    gap: 0px;
    margin: 20px auto;
}

.price-btn-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    box-sizing: border-box;
    background-color: #6d6d6d;
    border: outset #959595;
    border-width: 5px;
    color: #ffffff;
    text-shadow: 2px 2px 3px #000000;
    padding: 20px 0;
    font-size: 30px;
    cursor: not-allowed;
    transition: 0.4s;
    font-family: inherit;
}

.price-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    box-sizing: border-box;
    background-color: #4FAD36;
    border: outset #6CE243;
    border-width: 5px;
    color: #ffffff;
    text-shadow: 2px 2px 3px #000000;
    padding: 20px 0;
    font-size: 30px;
    cursor: pointer;
    transition: 0.4s;
    font-family: inherit;
}

.price-btn:hover,
.price-btn.active {
    background-color: rgb(58, 186, 66);
    border: outset #81df62;
    border-width: 5px;
    text-shadow: 0 0 10px #6f95ff;
    outline: none;
}

/* support / contact page */
.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin: 40px auto;
}

.contact-us {
    display: block;
    padding: 6px;
    width: 50%;
    text-align: center;
    margin: 0;
    color: #ffffff;
    background-color: #046A68;
    border: outset #0e9a98;
    text-shadow: 2px 2px 3px #000000;
    border-width: 5px;
    font-size: 18px;
    box-sizing: border-box;
}

.contact-details {
    display: block;
    padding: 6px;
    width: 30%;
    text-align: center;
    margin: 0;
    color: #ffffff;
    background-color: #046A68;
    border: outset #0e9a98;
    text-shadow: 2px 2px 3px #000000;
    border-width: 5px;
    font-size: 18px;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.contact-us h2, .contact-details h2,
.contact-us p, .contact-details p {
    margin: 4px 0;
    overflow-wrap: break-word;
}

.contact-row {
    display: flex;
    gap: 20px;
}

.contact-row .contact-group {
    flex: 1;
}

.email-panel {
    display: block;
    padding: 30px;
    width: calc(80% + 20px);
    margin: 20px auto;
    color: #ffffff;
    background-color: #046A68;
    border: outset #0e9a98;
    text-shadow: 2px 2px 3px #000000;
    border-width: 5px;
    box-sizing: border-box;
}

.email-panel input,
.email-panel textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    background-color: #e2e2e2;
    border: inset #0e9a98;
    border-width: 3px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
}

.contact-submit-btn {
    background-color: #e97132;
    border: outset #fe9c46;
    border-width: 5px;
    box-sizing: border-box;
    color: #ffffff;
    padding: 12px;
    font-size: 20px;
    cursor: pointer;
    text-shadow: 2px 2px 3px #000000;
    width: 100%;
    transition: 0.4s;
    font-weight: bold;
}

.contact-submit-btn:hover {
    background-color: #fe9c46;
    border: outset #e97132;
    border-width: 5px;
}

/* signin / login page */
.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    color: #ffffff;
}

.login .login-form {
    background-color: #046A68;
    border: outset #0e9a98;
    border-width: 5px;
    text-shadow: 2px 2px 3px #000000;
    padding: 40px;
    border-radius: 0px;
    width: 300px;
}

.login #signin {
    background-color: #890000;
    border: outset #b20101;
    border-width: 5px;
    width: 100%;
}

.login #signin:hover {
    background-color: #b20101;
    border: outset #890000;
    border-width: 5px;
    text-shadow: 0 0 10px #6f95ff;
    transition: 0.4s;
}

.login #login {
    background-color: #890000;
    border: outset #b20101;
    border-width: 5px;
    width: 100%;
}

.login #login:hover {
    background-color: #b20101;
    border: outset #890000;
    border-width: 5px;
    text-shadow: 0 0 10px #6f95ff;
    transition: 0.4s;
}

#navbar {
    display: none;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
}

.form-group input {
    display: block;
    width: 100%;
}

.password-field {
    display: flex;
    gap: 6px;
    align-items: center;
}

.password-field input {
    flex: 1;
}

/* gallery page */
.gallery-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.gallery-page-wrapper {
    background-color: transparent;
    border: outset transparent;
    border-width: 5px;
    text-shadow: 2px 2px 3px #000000;
    padding: 40px;
    border-radius: 0px;
    width: 80%;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px;
    max-width: 1200px;
    margin: 40px auto;
    justify-items: center;
}

.gallery-item {
    background-color: #046A68;
    border: outset #0e9a98;
    border-width: 5px;
    text-shadow: 2px 2px 3px #000000;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

#gallerySearch {
    background-color: #e2e2e2;
    border: outset #0e9a98;
    border-width: 5px;
    color: #000000;
    padding: 5px 10px;
    font-size: 16px;
}

.search-input {
    padding: 5px;
    font-size: 16px;
}

.filter-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dropdown-select {
    padding: 5px;
    font-size: 16px;
    border: outset #0e9a98;
    border-width: 5px;
    background-color: #e2e2e2;
    color: #000000;
    transition: 0.4s;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.item-title-text {
    font-size: 18px;
    font-weight: bold;
}

.item-tag {
    font-size: 14px;
    font-style: italic;
    color: #e2e2e2;
    margin-bottom: -10px;
}

.item-tag-title {
    font-size: 14px;
    font-style: italic;
    color: #e2e2e2;
    margin-bottom: -10px;
}

.lighting-lux-badge {
    background-color: #e2e2e2;
    color: #000000;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: bold;
    text-shadow: none;
}

.duration-badge {
    background-color: #e2e2e2;
    color: #000000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.gallery-card-item {
    background-color: #046A68;
    border: outset #0e9a98;
    border-width: 5px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* action buttons */
.buttons {
    justify-content: center;
    display: flex;
    align-items: stretch;
    padding: 10px;
    background-color: transparent;
    z-index: 9999;
    margin: 1%;
    font-size: 25px;
    text-shadow: 2px 2px 3px #000000;
    gap: 5px;
    list-style: none;
}

.buttons li {
    display: flex;
    flex: 1;
    background-color: #e97132;
    border: outset #fe9c46;
    border-width: 5px;
    align-items: center;
    transition: 0.4s;
    padding: 0;
}

.buttons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.buttons li:hover {
    background-color: #fe9c46;
    border: outset #e97132;
    border-width: 5px;
    text-shadow: 0 0 10px #6f95ff;
    transition: 0.4s;
}

#copy {
    text-align: center;
    color: #0e9a98;
    text-shadow: 2px 2px 3px #000000;
}

hr {
    border: none;
    height: 2px;
    background-color: #046A68;
    margin: 20px 0;
}

/* loading / error text */
.loading-msg,
.error-msg {
    color: #888;
    font-family: sans-serif;
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
}

/* video cards */
.video-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-item:hover {
    transform: translateY(-6px);
    border-color: #555;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.video-item:hover .play-button {
    opacity: 1;
    color: #0e9a98;
}

.video-title {
    padding: 16px;
    color: #ffffff;
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

/* modal popup */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 850px;
    margin: 0 auto;
}

.close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #aaa;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #fff;
}

#videoContainer {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

#videoContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* mobile */
@media screen and (max-width: 600px) {
    .topnav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        padding: 0px;
        background-color: transparent;
        z-index: 9999;
        margin: 1%;
        text-shadow: 2px 2px 3px #000000;
    }

    .topnav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 0;
        list-style: none;
        gap: 3px;
    }

    .topnav img {
        max-width: 80px;
        height: auto;
        transition: 0.4s;
        margin-right: 0;
    }

    .topnav li {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        background-color: #046A68;
        border: outset #0e9a98;
        border-width: 3px;
        align-items: center;
        transition: 0.4s;
        padding: 0;
    }

    #signin {
        border-width: 3px;
    }

    .topnav li a {
        display: block;
        padding: 10px 14px;
    }

    .topnav li.active {
        font-size: 18px;
        border-width: 3px;
    }

    .title {
        margin: 20px 5%;
        padding: 10px;
    }

    .content {
        margin: 1% 5%;
        padding: 10px;
        font-size: 18px;
    }

    .gallery-header .title {
        margin: 20px 5%;
        font-size: 28px;
    }

    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 10px;
    }

    .search-box, .filter-box, .sort-box {
        width: 100%;
    }

    #gallerySearch, .dropdown-select {
        width: 100%;
        box-sizing: border-box;
    }

    .gallery-page-wrapper {
        width: 95%;
        padding: 15px 5px;
    }

    .gallery-card-item {
        width: 100%;
        box-sizing: border-box;
    }

    .item-title-text {
        font-size: 20px;
    }

    .gallery-card-item div[style*="white-space: nowrap"] {
        white-space: normal !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 0;
    }

    .lighting-lux-badge {
        display: inline-block;
        margin: 2px !important;
        font-size: 11px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .email-panel {
        width: 90%;
    }

    .contact-wrapper {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 20px;
        margin: 40px auto;
    }

    .contact-us {
        display: block;
        padding: 6px;
        width: 40%;
    }

    .contact-details {
        display: block;
        padding: 6px;
        width: 50%;
    }
}