* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background: #000;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#webcam-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    opacity: 0;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    border: 3px solid #0000ff;
    padding: 15px;
    z-index: 10;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    min-width: 250px;
    /* border-radius: 8px; */

    user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
}

#effect-selector {
    margin-bottom: 15px;
    /* padding: 10px; */
    background: rgba(107, 175, 183, 0.1);
    /* border: 1px solid #fff; */
    /* border-radius: 4px; */
}

#effect-selector label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
}

#effect-selector select {
    width: 100%;
    padding: 8px;
    background: #333;
    color: #fff;
    border: 2px solid #b8b8b8;
    /* border-radius: 4px; */
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-transform: uppercase;

    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
}

.control-group {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-group label {
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 1px;
    width: 80px;
    flex-shrink: 0;
}

input[type="range"] {
    flex: 1;
    margin: 0 8px;
    height: 20px;
    background: #333;
    border: 2px solid #979797;
    outline: none;
    -webkit-appearance: none;
    /* border-radius: 4px; */
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ffd500;
    border: 2px solid #fff;
    cursor: pointer;
    /* border-radius: 50%; */
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffd500;
    border: 2px solid #fff;
    cursor: pointer;
    border-radius: 50%;
}

.value-display {
    color: #fff;
    font-size: 12px;
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.text-box {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
    border: 2px solid black;
    box-shadow: 3px 3px 0px black;
    font-size: clamp(13px, 2vw, 15px);
    text-align: center;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    max-width: 90%;
    box-sizing: border-box;
    /* border-radius: 6px; */
}

#logo-container {
    position: absolute;
    top: 10px;
    right: 10px;
}

#social-links {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

#title-box {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.6em;
    max-width: 300px;
    font-weight: bold;
}

a {
    color: #0000ff !important;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#logo {
    font-size: clamp(1.5em, 4vw, 2em);
}