@font-face {
    font-family: Seagal;
    font-weight: 400;
    font-style: normal;
    /*src: url('../webfonts/seagal/Seagal-Medium.eot');*/
    /* IE9 Compat Modes */
    src: url('https://www.szymkiewi.cz/webfonts/seagal/Seagal-Medium?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('https://www.szymkiewi.cz/webfonts/seagal/Seagal-Medium.otf') format('opentype'),
        /* Open Type Font */
        url('https://www.szymkiewi.cz/webfonts/seagal/Seagal-Medium.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('https://www.szymkiewi.cz/webfonts/seagal/Seagal-Medium.woff') format('woff'),
        /* Modern Browsers */
        url('https://www.szymkiewi.cz/webfonts/seagal/Seagal-Medium.woff2') format('woff2');
    /* Modern Browsers */
}

body,
html {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    margin: 0;
    overflow: hidden;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: filter 2s ease;
}

#output {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

canvas {
    width: 100%;
    height: 100%;
}

#controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0, 0, 0);
    color: #fff;
    padding: 10px;
    border-radius: 30px;
    font-family: Seagal;
}

input[type='range'] {
    -webkit-appearance: none !important;
    background: #fff;
    height: 5px;
    border-radius: 3px;
    width:150px;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    background: #fff;
    height: 20px;
    width: 20px;
    border-radius: 10px;
}

#screenshot-btn, #info-btn, #close-btn, #logo-btn {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: Seagal;
}

#screenshot-btn, #info-btn, #close-btn {
    padding: 10px 20px;
}

#logo-btn {
    padding: 5px 5px 3px 5px;
}

/* For screens smaller than 600px */
@media (max-width: 600px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }
    input[type='range'] {
        width:100px;
    }

    .resolution {
        display: none;
    }
}

/* For screens larger than 600px */
@media (min-width: 601px) {
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }
}

/* POPUP */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; 
    opacity: 0%;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px) grayscale(100%);
    -webkit-backdrop-filter: blur(5px) grayscale(100%); 
    
}

.popup {
    background-color: #000;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); */
    z-index: 1001;
    font-family: Seagal;
    color: #fff;
}

.close-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 20px;
    font-family: Seagal;
}

/* Show popup */
.overlay.show {
    display: flex;
} 

.overlay.show + #canvas-container {
    filter: blur(5px);
}

a:link, a:hover, a:visited {
    color:#fff;
}