*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: clip;
    min-height: 100%;
    background-color: #4a3a5c;
    background-image: url('./Data/bg01.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent;
}

@font-face {
    font-family: "Vipnagorgialla";
    src: url("fonts/Vipnagorgialla-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}
.loader {
    box-sizing: content-box;
    background-image: url("Data/MitzLogoclear.png");
    background-size: 120px;
    background-repeat: no-repeat;
    background-color: white;
    background-position: center;
    border: 120px solid #000000;
    border-radius: 50%;
    border-top: 120px solid #000000;
    width: 120px;
    height: 119px;
    animation: spin 2s linear infinite;
}

.loader:hover {
    animation-play-state: paused;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-frame {
    position: relative;
    min-height: 200px;
}

.carousel-track {
    display: none;
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 10px;
}

.carousel-track.is-active {
    display: block;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.carousel-button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 640px);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 16px !important;
    border-radius: 16px;
    border: 0px solid rgba(90, 90, 100, 0.55);
    background: linear-gradient(180deg, rgba(22, 24, 32, 0.92), rgba(10, 12, 18, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 32px rgba(0, 0, 0, 0.45);
}

.title-container {
    display: grid;
    grid-template-columns: 100%;
    padding: 10px !important;
    border: 0px solid lightgrey;
    border-radius: 10px;
    opacity: 0.9;
}

.logo-header {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 16px !important;
}

.site-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.link-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 10px !important;
    border: 0px solid lightgrey;
    border-radius: 10px;
    opacity: 0.9;
    gap: 10px;
}

.socials-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding: 10px !important;
    border: 0px solid lightgrey;
    border-radius: 10px;
    opacity: 0.9;
    gap: 7px;
}

.pad {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 1;
    border: none;
    border-radius: 10px;
    background: transparent;
    overflow: hidden;
    cursor: default;
    padding: 0;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pad:hover,
.pad:active {
    cursor: pointer;
}

.pad:focus {
    outline: none;
}

.pad::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(to bottom, #060607, #101015);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.85);
    z-index: 0;
}

.pad::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 7px;
    z-index: 1;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.36), transparent 40%),
        radial-gradient(circle at 50% 60%, var(--pad-light-rest) 0, var(--pad-dark-rest) 62%);
    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.5) inset,
        0 0 6px rgba(0, 0, 0, 0.35),
        0 0 8px var(--pad-glow-rest);
    transition:
        transform 0.07s ease-out,
        box-shadow 0.15s ease-out,
        filter 0.15s ease-out,
        background 0.15s ease-out;
}

.pad:hover::before {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.62), transparent 40%),
        radial-gradient(circle at 50% 60%, var(--pad-light) 0, var(--pad-dark) 62%);
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.78) inset,
        0 0 10px rgba(0, 0, 0, 0.66),
        0 0 20px var(--pad-glow);
    filter: none;
}

.pad:active::before,
.pad.is-lit::before {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.62), transparent 40%),
        radial-gradient(circle at 50% 60%, var(--pad-light) 0, var(--pad-dark) 62%);
    transform: translateY(1px);
    filter: brightness(1.45);
    box-shadow:
        0 0 22px rgba(0, 0, 0, 0.7) inset,
        0 0 28px rgba(0, 0, 0, 0.75),
        0 0 36px var(--pad-glow);
}

.pad:active::after,
.pad.is-lit::after {
    box-shadow:
        inset 0 0 0 2px var(--pad-light),
        0 0 14px var(--pad-glow),
        inset 0 0 0 1px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.85);
}

.pad-label {
    position: absolute;
    right: 8px;
    bottom: 7px;
    text-align: right;
    color: rgba(5, 5, 10, 0.58);
    font-size: 15px;
    line-height: 1.05;
    font-family: "Vipnagorgialla", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    z-index: 2;
    pointer-events: none;
}

.pad audio {
    display: none;
}

.link-pad {
    background-color: white;
    opacity: 0.9;
    border-radius: 10px;
    border: 1px solid lightgrey;
    padding: 20% !important;
    font-size: 10px !important;
    font-family: Arial, serif !important;
    text-align: center !important;
}

.link-pad:hover {
    cursor: pointer;
    background-color: lavender;
    border: 1px solid purple;
}

.link-pad a,
.link-pad a:hover {
    cursor: pointer;
}

.section-heading {
  font-family: "Vipnagorgialla", Arial, sans-serif;
  font-size: 1.5rem;   /* tune size */
  text-align: center;
  color: rgba(240, 240, 245, 0.9);
  margin: 1.25rem 0 0.5rem;
}

.site-footer {
    text-align: center;
    padding: 20px 16px 32px;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    opacity: 0.75;
}

.site-footer a {
    color: rgba(240, 240, 245, 0.9);
    text-decoration: underline;
}

.site-footer a:hover {
    color: #fff;
}

#cookieConsent {
    background-color: rgba(20, 20, 20, 0.8);
    min-height: 26px;
    font-size: 14px;
    color: #ccc;
    line-height: 26px;
    padding: 8px 0 8px 30px;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

#cookieConsent.visible {
    opacity: 1;
    pointer-events: auto;
}

#cookieConsent a {
    color: #4B8EE7;
    text-decoration: none;
}

#closeCookieConsent,
.cookieConsentOK {
    background-color: #cc3300;
    color: #000;
    display: inline-block;
    border: none;
    border-radius: 5px;
    padding: 0 20px;
    cursor: pointer;
    float: right;
    margin: 0 60px 0 10px;
    font: inherit;
    line-height: 26px;
}

#closeCookieConsent:hover {
    color: #FFF;
}

.cookieConsentOK {
    background-color: #66ff66;
}

.cookieConsentOK:hover {
    background-color: #E0C91F;
}

@media (max-width: 768px) {
    .grid-container,
    .socials-container,
    .link-container {
        padding: 16px !important;
        gap: 6px;
    }

    .grid-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .socials-container {
        grid-template-columns: repeat(6, 1fr);
    }

    .link-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .pad-label {
        font-size: 11px;
        right: 5px;
        bottom: 4px;
    }

    .grid-container {
        padding: 10px !important;
        gap: 5px;
    }
}
