/* ===== Footer stylings ===== */
footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    height: 50px;
    text-align: center;
    z-index: 99;
    border-top: 2px solid whitesmoke;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 10px;
    gap: 10px;
    transition: all 0.5s ease;
    background: #060010;
    background: var(--gradient-sky-top);
    filter: progid:DXImageTransform.Microsoft.gradient(
        startColorstr="#060010",
        endColorstr="#370569",
        GradientType=0
      );
      text-shadow: 
      1px 1px 0 black,
      -1px 1px 0 black,
      1px -1px 0 black,
      -1px -1px 0 black;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    transition: transform 0.5s ease;
}

footer p2 {
    font-size: 6px;
    line-height: 1;
    margin: 0;
    font-weight: lighter;
}

footer p2 a {
    text-decoration: underline;
    padding: 14px 25px;
    color: whitesmoke;
}

@media (max-width: 600px) {
    footer {
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
    }

    footer p2 {
        font-size: 10px;
    }
}

/* ===== Switch for theme change ===== */
#ThemeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

#ThemeContainer .switch {
    display: inline-block;
    position: relative;
}

#ThemeContainer .switch__input {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

#ThemeContainer .switch__label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: #2B2B2B;
    border: 5px solid #5B5B5B;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.46, .03, .52, .96);
    cursor: url(../../media/UI/pointer.png), pointer !important;
}

#ThemeContainer .switch__indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(-72%);
    display: block;
    width: 20px;
    height: 20px;
    background-color: #7B7B7B;
    border-radius: 9999px;
    box-shadow: inset 10px 0 0 0 rgba(0, 0, 0, 0.2);
}

#ThemeContainer .switch__indicator::before,
#ThemeContainer .switch__indicator::after {
    position: absolute;
    content: '';
    display: block;
    background-color: #FFFFFF;
    border-radius: 9999px;
}

#ThemeContainer .switch__indicator::before {
    top: 3.5px;
    left: 3.5px;
    width: 4.5px;
    height: 4.5px;
    opacity: 0.6;
}

#ThemeContainer .switch__indicator::after {
    bottom: 4px;
    right: 3px;
    width: 7px;
    height: 7px;
    opacity: 0.8;
}

#ThemeContainer .switch__decoration {
    position: absolute;
    top: 65%;
    left: 50%;
    display: block;
    width: 2.5px;
    height: 2.5px;
    background-color: #FFFFFF;
    border-radius: 9999px;
    animation: twinkle 0.8s infinite -0.6s;
}

#ThemeContainer .switch__decoration::before,
#ThemeContainer .switch__decoration::after {
    position: absolute;
    display: block;
    content: '';
    width: 2.5px;
    height: 2.5px;
    background-color: #FFFFFF;
    border-radius: 9999px;
}

#ThemeContainer .switch__decoration::before {
    top: -10px;
    left: 5px;
    opacity: 1;
    animation: twinkle 0.6s infinite;
}

#ThemeContainer .switch__decoration::after {
    top: -3.5px;
    left: 15px;
    animation: twinkle 0.6s infinite -0.2s;
}

@keyframes twinkle {
    50% {
        opacity: 0.2;
    }
}

#ThemeContainer .switch__indicator,
#ThemeContainer .switch__indicator::before,
#ThemeContainer .switch__indicator::after {
    transition: all 0.4s cubic-bezier(.46, .03, .52, .96);
}

#ThemeContainer .switch__input:checked + .switch__label {
    background-color: #8FB5F5;
    border-color: #347CF8;
}

#ThemeContainer .switch__input:checked + .switch__label .switch__indicator {
    background-color: #ECD21F;
    box-shadow: none;
    transform: translate(-50%, -50%) translateX(72%);
}

#ThemeContainer .switch__input:checked + .switch__label .switch__indicator::before,
#ThemeContainer .switch__input:checked + .switch__label .switch__indicator::after {
    display: none;
}

#ThemeContainer .switch__input:checked + .switch__label .switch__decoration {
    top: 50%;
    transform: translate(0%, -50%);
    animation: cloud 8s linear infinite;
    width: 10px;
    height: 10px;
}

#ThemeContainer .switch__input:checked + .switch__label .switch__decoration::before {
    width: 5px;
    height: 5px;
    bottom: 0;
    top: auto;
    left: -4px;
    animation: none;
}

#ThemeContainer .switch__input:checked + .switch__label .switch__decoration::after {
    width: 7.5px;
    height: 7.5px;
    top: auto;
    bottom: 0;
    left: 8px;
    animation: none;
}

@keyframes cloud {
    0% {
        transform: translate(0%, -50%);
    }
    50% {
        transform: translate(-50%, -50%);
    }
    100% {
        transform: translate(0%, -50%);
    }
}

@media (max-width: 768px) {
    #ThemeContainer {
        display: none;
    }
}


