@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
    font-family: 'GothamRounded';
    src: url('/fonts/GothamRounded/GothamRounded-Light.otf') format('opentype');
    font-weight: 300; /* Light */
    font-style: normal;
}

@font-face {
    font-family: 'GothamRounded';
    src: url('/fonts/GothamRounded/GothamRounded-LightItalic.otf') format('opentype');
    font-weight: 300; /* Light */
    font-style: italic;
}

@font-face {
    font-family: 'GothamRounded';
    src: url('/fonts/GothamRounded/GothamRounded-Medium.otf') format('opentype');
    font-weight: 500; /* Medium */
    font-style: normal;
}

@font-face {
    font-family: 'GothamRounded';
    src: url('/fonts/GothamRounded/GothamRounded-MediumItalic.otf') format('opentype');
    font-weight: 500; /* Medium */
    font-style: italic;
}

@font-face {
    font-family: 'GothamRounded';
    src: url('/fonts/GothamRounded/GothamRounded-Bold.otf') format('opentype');
    font-weight: 700; /* Bold */
    font-style: normal;
}

@font-face {
    font-family: 'GothamRounded';
    src: url('/fonts/GothamRounded/GothamRounded-BoldItalic.otf') format('opentype');
    font-weight: 700; /* Bold */
    font-style: italic;
}

@font-face {
    font-family: "MuseoSans";
    src: url("/fonts/MuseoSans/MuseoSans700.otf");
    font-weight: 500;
    font-style: normal;
}

:root {
    --light: #FFFFFF;
    --dark: #707070;
    --border: rgb(163, 163, 163);
    --primary: #ade0f3;
    --primary-highlight: #02a3f8;
    --overlay: rgb(31, 102, 154, .76);
    --header-fill-color: var(--primary);
    --header-border-color: var(--dark);
    --corner-radius: 41px;
    --gradient-fill-start: rgba(227, 244, 255, .79);
    --gradient-fill-end: rgba(255, 255, 255, 0);
    --copyright-text-color: rgba(163, 163, 163, .5);
    --breadcrumb-text-color: rgba(105, 105, 105, .3);
    --padding: 12px;
    --font-family: "Gotham Round", sans-serif;
}

header {
    background-color: var(--header-fill-color);
    padding-top: var(--padding);
    padding-bottom: var(--padding);
}

/* BEGIN UNITY Styles */
#unity-container{
    justify-content: center;
    align-items: center;
    width: 150vh;
    overflow: hidden;
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#unity-progress-bar-empty {
    position: relative;
    width: 20vw;
    height: 18px;
    margin-top: 10px;
    padding-left: 6.5px;  /* Adjust to match your path image margins */
    background: url('/img/browser-loader-meterPath.png') no-repeat center;
    background-size: 100% 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

#unity-progress-bar-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;            /* Updated dynamically to reflect progress */
    height: 100%;
    overflow: hidden;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

#unity-progress-bar-full .fill-wrapper {
    width: 1182px;
    height: 100%;
    /* Use a tiling background for the fill image */
    background: url('/img/browser-loader-meterFill.png') repeat-x;
    /* Animate background position for the gloss effect */
    animation: slide 6s linear infinite;
}

@keyframes slide {
    from { background-position: 0 0; }
    to { background-position: -1182px 0; }
}

#unity-progress-bar-full img {
    display: block;
    height: 100%; /* Match the height of the container */
    width: auto;  /* Maintain original width without scaling */
}

/* Pseudo-element for gloss effect */
#unity-progress-bar-full::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.4),
            transparent
    );
    transform: skewX(-25deg);
    pointer-events: none;
    animation: gloss-slide 2s infinite;
}

@keyframes gloss-slide {
    from { left: -100%; }
    to { left: 100%; }
}

#unity-fullscreen-button {
    position: fixed;
    display: none;
    width: 38px;
    height: 38px;
    right: 8px;
    bottom: 8px;
    background: url('/img/fullscreen-button.png') no-repeat center;
    background-size: cover;
    cursor: pointer;
}

#unity-footer { position: relative }

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial, serif;
    font-size: 18px;
}

#unity-loading-text {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    font-family: MuseoSans, serif;
    color: #62cbf8;
    font-size: 18px;
}

#unity-offline-text {
    font-family: Plumpfull, serif;
    color: #41a9de;
    font-size: 18px;
}

#unity-canvas {
    border-radius: var(--bs-border-radius-2xl) !important;
}
/* END UNITY STYLES */
