html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: sans-serif;
    background-color: #e0f7fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
}

.gallery-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 250px;
    flex-grow: 1;
}

.card {
    width: 100%;
    height: 350px;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.card-title {
    margin-top: 10px;
    font-size: 1em;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 0 5px;
}

.card:hover .card-inner img { transform: scale(1.1); }
.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.card-front {
    background-color: #d5f0f3;
}
.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.card-back {
    background-color: #cfd8dc;
    color: #000000;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.card-back p {
    margin: 5px 0;
    text-align: center;
}

header {
    background-color: #eef4fb;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #ddd;
}
.header-col {
    text-align: center;
}
.header-col:first-child { text-align: left; }
.header-col:last-child { text-align: right; }
.header-menu a {
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}
.header-menu a:hover {
    text-decoration: underline;
}
.header-menu .non-clickable {
    color: #555;
    cursor: default;
    text-decoration: none;
    font-weight: bold;
}
.header-menu .non-clickable:hover {
    text-decoration: none;
}
.logo-img {
    max-height: 40px;
    vertical-align: middle;
}
.language-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.language-selector select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
}

.admin-button {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.admin-button:hover {
    background-color: #28a745;
}

footer {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
    align-items: center;
}
.footer-col {
    align-items: center;
    text-align: center;
    font-size: 0.9em;
}
.footer-details p {
    margin: 3px 0;
    padding: 0;
}
.footer-col:first-child { text-align: left; }
.footer-col:last-child { text-align: right; }

.footer-details a {
    color: #007bff;
    text-decoration: none;
}
.footer-details a:hover {
    text-decoration: underline;
}
.company-container {
    display: flex;
    justify-content: center;
}
.company-table {
    text-align: left;
}

@media (max-width: 768px) {
    header, footer {
        grid-template-columns: 1fr;
    }
    .header-col, .footer-col {
        text-align: center !important;
    }
    .header-menu a {
        display: block;
        padding: 5px 0;
    }
    .footer-details p {
        text-align: center !important;
    }
    .row {
        flex-direction: column;
        align-items: center;
    }
    .card-wrapper {
        width: 90%;
        max-width: none;
    }
}

.image-container {
    padding: 20px;
    margin: 20px auto;
    width: 60%;
    text-align: center;
}
.center-image {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    padding: 10px;
}

.animation-container {
    position: relative;
    width: 320px;
    height: 240px;
}

#staticImage, #animatedVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#staticImage {
    color: hsl(210deg 100% 80%);
}

@keyframes hueRotate {
    to {
        filter: hue-rotate(2160deg);
    }
}

.staticImage {
    animation: hueRotate 3000ms;
}

#animatedVideo {
    display: none;
}

.main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    width: 100%;
}
.main-left {
    text-align: left;
}
.main-center {
    text-align: center;
    flex: 1;
}
main-right {
    text-align: right;
}
.quote-wrapper {
    display: block;
    font-size: 0.85em;
    color: #555;
    overflow-wrap: break-word;
}
.quote-text, .quote-author {
    margin: 0;
    font-style: italic;
    line-height: 1.2;
    text-align: right !important;
}

.center-div {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.contact-container {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    text-align: left;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
    min-width: 85%;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    resize: vertical;
    height: 150px;
}

.send-button {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    border-color: #e0f7fa;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-button:hover {
    background-color: #f0ad4e;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.image-card {
    flex: 1 1 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 320px;
    text-align: center;
}

.image-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.image-title {
    padding: 15px 10px;
    font-size: 1.1em;
    color: #333;
}
