:root {
    --primary: rgb(0, 20, 36);
    --secondary: rgb(255, 255, 255);
    --font: rgb(255, 255, 255);
    --accent: rgb(0, 153, 255);
    --dark-bg: var(--primary);
    --control-bg: rgba(0, 20, 36, 0.7);
    --control-hover: rgba(0, 153, 255, 0.3);
    --control-active: rgba(0, 153, 255, 0.5);
    --control-radius: 12px;
    --url-bar-bg: rgba(0, 20, 36, 0.7);
    --icon-color: var(--accent);
    --backdrop-blur: 10px;
    --transition-speed: 0.3s;
    --search-glow: 0 0 15px rgba(0, 153, 255, 0.5);
    --control-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --ripple-color: rgba(0, 153, 255, 0.5);
    --sidebar-width: 250px;
    --nav-height: 60px;
    --tab-height: 40px;
    --accent-glow: 0 0 20px rgba(0, 153, 255, 0.2);
}

@media (max-width: 768px) {

    .control-button {
        width: 36px;
        height: 36px;
    }

    .control-button svg {
        width: 18px;
        height: 18px;
    }
}

@font-face {
    font-family: "font";
    src: url("../fonts/font.otf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "font", sans-serif;
}

body {
    background: rgb(2, 36, 62);
    color: var(--font);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    margin: 0;
    padding: 0;
}

.horizontal-controls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;

    align-items: center;
    display: flex;
    text-align: center;
}

.control-button {
    background: transparent;
    border: none;
    color: var(--icon-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed),
        transform var(--transition-speed),
        color var(--transition-speed);
    position: relative;
    overflow: hidden;
    position: absolute;
    right: 10px;
    top: 5px;
}


.control-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.5s, height 0.5s, opacity 0.5s;
    z-index: -1;
}

.control-button:hover {
    background-color: var(--control-hover);
    transform: scale(1.01);
}

.control-button:hover::before {
    width: 120%;
    height: 120%;
    opacity: 0.1;
}

.control-button:active {
    background-color: var(--control-active);
    transform: scale(0.95);
}

.control-button svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-speed);
}

.control-button:hover svg {
    transform: scale(1.1);
}

#frame {
    width: 99%;
    height: 92%;
    border: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -47%);
    border-radius: 20px;
    z-index: 1;
}

.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    animation: loading 1.5s infinite ease-in-out;
    opacity: 0;
    z-index: 1000;
}

.loading-indicator.active {
    opacity: 1;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}