@import"https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap";

:root {
    /* Colors */
    --primary-color: #2d75b4;
    --primary-hover: #b42d91;
    --text-light: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.5);
    
    /* Spacing */
    --spacing-sm: 0.4em;
    --spacing-md: 0.8em;
    --spacing-lg: 20px;
}

/* Base styles */
html {
    height: -webkit-fill-available;
    height: 100%;
    padding: 0;
}

body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    font-family: Montserrat, sans-serif;
    background: transparent;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: fixed;
    overflow: hidden; /* Prevent scrolling */
}

/* Layout */
.content {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: width 0.5s, height 0.5s;
}

.content.transparent needle-engine {
    box-shadow: none;
}

/* UI Controls */
.overlay-container {    
    position: absolute;
    left: var(--spacing-lg);
    bottom: var(--spacing-lg);
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    z-index: 1000; /* Ensure overlay is always on top */
}

.overlay-container button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 0em;
    color: var(--text-light);
    border: none;
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 5px 0 var(--shadow-color);
    position: relative;
}

.overlay-container button:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
}

.btn-fullscreen {
    margin-bottom: -1em;
}

.btn-fullscreen .fullscreen-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.btn-fullscreen .icon-exit {
    display: none;
}

.btn-fullscreen.is-fullscreen .icon-enter {
    display: none;
}

.btn-fullscreen.is-fullscreen .icon-exit {
    display: block;
}

.btn-fullscreen::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.btn-fullscreen:hover::after,
.btn-fullscreen:focus-visible::after {
    opacity: 1;
}

/* Responsive Design */
@media screen and (max-width: 768px),
       screen and (max-height: 1000px) {
    .overlay-container button {
        font-size: 1em;
    }
}