@font-face {
    font-family: 'Segoe UI Variable Text';
    src: url('fonts/Segoe-UI-Variable-Static-Text.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Segoe UI Variable Text';
    src: url('fonts/Segoe-UI-Variable-Static-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Segoe UI Variable Text';
    src: url('fonts/Segoe-UI-Variable-Static-Text-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Segoe UI Variable Display';
    src: url('fonts/Segoe-UI-Variable-Static-Display.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Segoe UI Variable Display';
    src: url('fonts/Segoe-UI-Variable-Static-Display-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@media screen and (max-width: 600px) {
    .spotlight {
        font-size: 16px;
    }

    .spotlight::placeholder {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
        text-align: center;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
		align-items: center;
	}

    .spotlight {
	    width: 60%;
	    max-width: 400px;
	    height: 50px;
	    border: none;
	    border-radius: 15px;
	    background-color: var(--spotlight-color);
	    padding: 0 20px;
	    font-size: 21px;
	    color: var(--text-color);
	    outline: none;
		align-items: center;
	    transition: box-shadow 0.2s ease-in-out;
    }

    .search-buttons-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
        margin-top: 15px;
    }

    .search-buttons {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 90%;
        max-width: 320px;
        padding: 1px;
        font-size: 15px;
        text-align: center;
    }

    .search-buttons img {
        width: 24px;
        height: 24px;
        margin-right: 7px;
    }

    .menu-button {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }

    .menu-button img {
        width: 100%;
        height: auto;
    }

    .logo {
        width: 70px;
        height: auto;
        margin-bottom: 10px;
    }

    .title {
        font-size: 20px;
        margin-top: 10px;
    }

    .centered-content {
        padding: 5px;
    }
}

@media (prefers-color-scheme: dark) and (dynamic-range: high) and (color-gamut: p3) {
    :root {
        --background-color: #161618;
    }
}

@keyframes glow-text {
    0% {
        text-shadow: 0 0 5px rgba(30, 144, 255, 0.5), 0 0 10px rgba(30, 144, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(30, 144, 255, 0.9), 0 0 30px rgba(30, 144, 255, 0.7);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

:root {
    --background-color: #f7f7f7;
    --text-color: #333;
    --button-bg-color: #007bff;
    --button-hover-bg: #0056b3;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --icon-size: 30px;
    --spotlight-color: #FFF;
    --menu-item-bg: #FFF;
    --menu-width: 146px;
    --menu-item-hover-bg: #b1b1b1;
    --modal-overlay-background: rgba(255, 255, 255, 0.85);
    --modal-text-color: #333;
	--spotlight-placeholder-color: #767676;
}

[data-theme="dark"] {
    --background-color: #333333 !important;
    --text-color: #FFF;
    --button-bg-color: #1e90ff;
    --button-hover-bg: #1c7ed6;
    --spotlight-color: #292929;
    --shadow-color: rgba(255, 255, 255, 0.2);
    --menu-item-bg: #333;
    --menu-item-hover-bg: #444444;
    --modal-overlay-background: rgba(29, 29, 31, 0.85);
    --modal-text-color: #FFF;
	--spotlight-placeholder-color: #929292;
}

body {
    margin: 0;
    font-family: 'Segoe UI Variable Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

/* Header Items */
.header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.microsoft-icon {
    width: var(--icon-size);
    height: var(--icon-size);
    cursor: pointer;
}

.settings-icon {
    width: var(--icon-size);
    height: var(--icon-size);
}

/* Header Items */

.text {
    font-size: 1.5rem;
    color: var(--text-color);
    text-shadow: 0 0 5px #FFF, 0 0 10px #FFF;
    transition: text-shadow 0.3s ease-in-out;
}

.text:hover {
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #800080;
}
.fade-out {
    animation: fadeOut 0.5s forwards;
}

.logo {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 45px;
}

h1 {
    font-size: 34px;
    font-weight: normal;
    margin: 0;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0px;
    font-family: 'Segoe UI Variable Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h2 {
	font-family: 'Segoe UI Variable Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    text-align: center;
    margin-bottom: px;
	margin: 0;
	font-weight: bold;
}

.fade-out-up {
    animation: fadeOutUp 0.5s forwards;
}

.fade-in-down {
    animation: fadeInDown 0.5s forwards;
}

.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/*  Cortana Search Bar  */
.bingbar {
    width: 585px;
    height: 50px;
    border: none;
    border-radius: 30px;
    background-color: var(--spotlight-color);
    padding: 0 20px;
    font-size: 25px;
    color: var(--text-color);
    outline: none;
font-family: 'Segoe UI Variable Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    transition: box-shadow 0.2s ease-in-out;
}

.bingbar:focus {
    box-shadow: 0 0 10px rgba(36, 108, 236, 0.8);
}

.bingbar::placeholder {
    color: var(--spotlight-placeholder-color);
	text-align: left;
font-family: 'Segoe UI Variable Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	font-size: 25px;
}
/* Cortana Search Bar */


/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--modal-text-color);
    padding: 0px;
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 11000;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 10000;
}

.modal.show + .modal-overlay {
    opacity: 1;
    visibility: visible;
}
/* Modal */


/* Settings */
.settings {
    position: relative;
}

.settings-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.settings-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: var(--menu-item-bg);
    border-radius: 10px;
    padding: 10px;
    width: var(--menu-width);
    font-family: 'Segoe UI Variable Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 4px 6px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.settings-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.settings-item {
    display: block;
    padding: 10px;
    font-size: 15px;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--menu-item-bg);
    border-radius: 5px;
    margin-bottom: 5px;
    text-align: center;
    font-family: 'Segoe UI Variable Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.settings-item:hover {
    background-color: var(--menu-item-hover-bg);
    color: white;
}
/* Preferences */


/* About Cortana-specific options - Settings */
.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background-color: #fff;
    color: #000;
    font-size: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background-color: #e6e6e6;
}

.close-button:focus {
    outline: none;
}

.about-content {
    background: transparent;
    padding: 40px;
    border-radius: 12px;
    color: var(--modal-text-color);
    font-family: 'Segoe UI Variable Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	
}

.about-text a {
    text-decoration: none;
    color: #1e90ff;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.about-text a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(30, 144, 255, 0.5);
    border-radius: 10px;
    filter: blur(8px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.about-text a:hover::before,
.about-text a:focus::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
}

@keyframes breathing-glow {
    0% {
        text-shadow: 0 0 10px rgba(30, 144, 255, 0.6);
    }
    50% {
        text-shadow: 0 0 20px rgba(30, 144, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 10px rgba(30, 144, 255, 0.6);
    }
}

.about-text a {
    animation: breathing-glow 2s infinite alternate ease-in-out;
}
/* About Cortana-specific options - Settings */


/* Toggle */
.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-slider {
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease-in-out;
}

.toggle-switch.on {
    background-color: #0079F9;
}

.toggle-switch.off {
    background-color: #ccc;
}

.toggle-switch.on .toggle-slider, .toggle-switch-ld.on .toggle-slider {
    transform: translateX(20px);
}

/* Light/Dark Mode Slider */
.toggle-switch-ld {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch-ld.on {
    background-color: #1D1D1D;
}

.toggle-switch-ld.off {
    background-color: #e6e6e6;
}
/* Toggle */


/* Language Options - Settings */
.language-dropdown {
    position: relative;
}

.language-button {
    display: flex;
	font-family: 'Segoe UI Variable Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0px;
    font-size: 13px;
    color: var(--text-color);
    text-align: left;
}

.language-button .arrow {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-left: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(-45deg);
    transition: transform 0.3s;
}

.language-button.open .arrow {
    transform: rotate(135deg);
}

.language-options {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background-color: var(--menu-item-bg);
    border-radius: 5px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.language-options.show {
    max-height: 200px;
    opacity: 1;
}

.language-options li {
    padding: 10px;
    font-size: 14px;
	font-family: 'Segoe UI Variable Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-options li:hover {
    background-color: var(--menu-item-hover-bg);
}
/* Language Options - Control Center */


/* Search Buttons (Search Xbox / Search Microsoft Store) */
.search-buttons-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-buttons {
	font-family: 'Segoe UI Variable Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 8px;
    color: var(--text-color);
    border: 2px solid transparent;
    transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.search-buttons-icons {
    width: 27px;
    height: 27px;
    margin-right: 8px;
}
/* Search Buttons (Search Xbox / Search Microsoft Store) */