/* Default Style */
@font-face {
    font-family: 'OpenSans';
    src: url(../font/OpenSans-Regular.ttf);
}

@font-face {
    font-family: 'HomeVideo';
    src: url(../font/HomeVideo-Regular.ttf);
}

body {
    font-family: OpenSans, sans-serif;
    font-size: 1em;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: .05em;
    background-color: #ffffff;
    color: #121212;
    -webkit-transition: background-color 500ms linear;
    -ms-transition: background-color 500ms linear;
    transition: background-color 500ms linear;
}

body.dark-theme {
    background-color: #121212;
    color: #ffffff;
}

body.dark-theme .title {
    color: #ffffff;
}

ul {
    list-style-type: none;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.title {
    font-family: HomeVideo, sans-serif;
    font-size: 2em;
    margin-top: 1em;
}

.center,.text-center {
    text-align: center;
}

.center {
    width:100%;
}

.light {
    letter-spacing: -0.5rem;
    padding-right: 0.5rem;
}

/* Default Style for Larger Screens */
.toggle-container {
    position: fixed; /* Fixed position to stay in place while scrolling */
    top: 20px;       /* Distance from the top of the viewport */
    right: 20px;     /* Distance from the right of the viewport */
    padding: 5px;    /* Optional padding */
}

/* Media Query for Smaller Screens */
@media (max-width: 425px) {
    .toggle-container {
        position: fixed;       /* Keep it floating */
        top: auto;             /* Disable the top positioning */
        right: auto;           /* Disable the right positioning */
        bottom: 20px;          /* Place it 20px from the bottom */
        left: 0;               /* Align to the left edge */
        width: 100%;           /* Make it full-width */
        display: flex;         /* Use flexbox */
        justify-content: center; /* Center horizontally */
        align-items: center;   /* Center vertically (for the container height) */
        margin: 0;             /* Remove any margins */
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    display: none;
}

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

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

input:checked + .slider {
    background-color: #ccc;
}

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

/* Flickering Light Animation */
body.dark-theme #I {
    opacity: 1;
    animation: flickerI 2s linear reverse infinite;
}
body.dark-theme #I::after {
    content: '';
    width: 150%;
    -webkit-box-shadow: 0 0 60px 8px rgba(255,255,255,1);
    -moz-box-shadow: 0 0 60px 8px rgba(255,255,255,1);
    box-shadow: 0 0 60px 8px rgba(255,255,255,1);
}

@keyframes flickerI {
    0% {
        opacity: 0.4;
    }
    5% {
        opacity: 0.5;
    }
    10% {
        opacity: 0.6;
    }
    15% {
        opacity: 0.85;
    }
    25% {
        opacity: 0.5;
    }
    30% {
        opacity: 1;
    }
    35% {
        opacity: 0.1;
    }
    40% {
        opacity: 0.25;
    }
    45% {
        opacity: 0.5;
    }
    60% {
        opacity: 1;
    }
    70% {
        opacity: 0.85;
    }
    80% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}