/* General styles for the page layout */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: scroll;

    /* Hide scrollbars */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease; /* Smooth transition for background color */
}

/* Light Mode styles */
body.light-mode {
    background-color: #f7f7f7;
    color: #333;
}

/* Dark Mode styles */
body.dark-mode {
    background-color: rgb(23, 23, 23);
    color: white;
}

/* Logo container */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

/* Logo styling */
.logo {
    max-width: 200px;
    height: auto;
}

/* Main container */
.container {
    text-align: center;
    display: block;
    margin-bottom: 20px;
}

/* Heading */
h1 {
    font-size: 22px;
}

/* Input field */
input[type="text"] {
    width: 294px;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    outline: none;
}

/* Button styling */
button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: #ff5722;
    color: white;
    transition: 0.3s;
}

button:hover {
    background: #e64a19;
}

/* Copy link container */
.copy-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    display: none; /*This code is added to hide the embed code*/
}

/* Copy text box */
.copy-box {
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    width: 520px;
    min-height: 40px;
    font-size: 14px;
    word-wrap: break-word;
    text-align: left;
    border: 1px solid #ccc;
    overflow-wrap: break-word;
}

/* Dark mode copy box */
body.dark-mode .copy-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
}

/* Copy button */
.copy-btn {
    padding: 12px 100px;
    font-size: 14px;
    background: #2196F3;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* Copy icon */
.copy-icon {
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

/* Video background */
#video-background {
    width: 80vw;
    height: 45vw;
    max-width: 890px;
    max-height: 600px;
    background-color: black;
    position: relative;
    border: 6px solid black;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

/* Fade-in effect */
.video-loaded #video-background {
    opacity: 1;
}

/* Hide non-video elements when embedded in an iframe */
body.embed-only .container, 
body.embed-only .copy-link, 
body.embed-only h1 {
    display: none;
}

/* Hide the logo and mode toggle when embedded */
body.embed-only .logo-container,
body.embed-only .mode-toggle {
    display: none;
}

/* Light/Dark Mode Toggle - Positioned at the Top Right */
.mode-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Modern toggle switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

/* Toggle switch ON state */
input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Light/Dark Mode Labels */
.mode-label {
    position: absolute;
    top: -10px;
    font-size: 18px;
    color: #2196F3;
    transition: 0.4s;
    display: inline-block;
    z-index: 1;
}

.mode-label.dark {
    right: 5px;
}

.mode-label:not(.dark) {
    left: 5px;
}

input:checked ~ .slider .mode-label {
    opacity: 0;
}

input:not(:checked) ~ .slider .mode-label.dark {
    opacity: 0;
}

input:checked ~ .slider .mode-label:not(.dark) {
    opacity: 1;
}

/* Custom fullscreen button styling */
.fullscreen-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
     background: #ff5722;
    color: white;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: 0.3s;
}

/* Hidden by default */
.fullscreen-btn.hidden {
    display: none;
}

.fullscreen-btn:hover {
   background: #ff7950;
}
