html.gts-grayscale {
filter: grayscale(100%);
-webkit-filter: grayscale(100%);
transition: filter 0.5s ease;
}
html.gts-sepia {
filter: sepia(100%);
-webkit-filter: sepia(100%);
transition: filter 0.5s ease;
}
html.gts-dark {
filter: invert(100%) hue-rotate(180deg);
-webkit-filter: invert(100%) hue-rotate(180deg);
background: #111 !important;
transition: filter 0.5s ease;
}
html.gts-dark img,
html.gts-dark video,
html.gts-dark iframe,
html.gts-dark embed,
html.gts-dark object {
filter: invert(100%) hue-rotate(180deg);
-webkit-filter: invert(100%) hue-rotate(180deg);
}
html.gts-high-contrast {
filter: contrast(150%);
-webkit-filter: contrast(150%);
transition: filter 0.5s ease;
} #gts-theme-switcher {
position: fixed;
z-index: 999999;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
#gts-theme-switcher.gts-position-bottom-right {
bottom: 20px;
right: 20px;
}
#gts-theme-switcher.gts-position-bottom-left {
bottom: 20px;
left: 20px;
}
#gts-theme-switcher.gts-position-top-right {
top: 20px;
right: 20px;
}
#gts-theme-switcher.gts-position-top-left {
top: 20px;
left: 20px;
}
#gts-toggle-btn {
width: 50px;
height: 50px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
position: relative;
}
#gts-toggle-btn:hover {
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
#gts-toggle-btn .gts-icon {
font-size: 24px;
display: inline-block;
animation: rotate 20s linear infinite;
}
@keyframes rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
} #gts-theme-menu {
position: absolute;
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
min-width: 280px;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: all 0.3s ease;
}
#gts-theme-menu:not(.gts-hidden) {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.gts-position-bottom-right #gts-theme-menu,
.gts-position-top-right #gts-theme-menu {
right: 0;
}
.gts-position-bottom-left #gts-theme-menu,
.gts-position-top-left #gts-theme-menu {
left: 0;
}
.gts-position-bottom-right #gts-theme-menu,
.gts-position-bottom-left #gts-theme-menu {
bottom: 60px;
}
.gts-position-top-right #gts-theme-menu,
.gts-position-top-left #gts-theme-menu {
top: 60px;
}
#gts-theme-menu h3 {
margin: 0 0 15px 0;
font-size: 16px;
font-weight: 600;
color: #333;
text-align: center;
} .gts-theme-options {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin-bottom: 15px;
}
.gts-theme-option {
background: #f5f5f5;
border: 2px solid transparent;
border-radius: 8px;
padding: 10px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
font-size: 12px;
color: #333;
}
.gts-theme-option:hover {
background: #e8e8e8;
transform: translateY(-2px);
}
.gts-theme-option.active {
border-color: #667eea;
background: #f0f4ff;
}
.gts-preview {
width: 40px;
height: 40px;
border-radius: 4px;
background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
display: block;
}
.gts-preview.grayscale {
filter: grayscale(100%);
}
.gts-preview.sepia {
filter: sepia(100%);
}
.gts-preview.dark {
filter: invert(100%) hue-rotate(180deg);
}
.gts-preview.contrast {
filter: contrast(200%);
} .gts-intensity-control {
padding-top: 15px;
border-top: 1px solid #e0e0e0;
}
.gts-intensity-control label {
display: block;
margin-bottom: 10px;
font-size: 14px;
color: #555;
font-weight: 500;
}
#gts-intensity-slider {
width: 100%;
height: 6px;
border-radius: 3px;
background: #ddd;
outline: none;
-webkit-appearance: none;
appearance: none;
cursor: pointer;
}
#gts-intensity-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: #667eea;
cursor: pointer;
transition: background 0.3s ease;
}
#gts-intensity-slider::-moz-range-thumb {
width: 18px;
height: 18px;
border-radius: 50%;
background: #667eea;
cursor: pointer;
border: none;
transition: background 0.3s ease;
}
#gts-intensity-slider:hover::-webkit-slider-thumb {
background: #764ba2;
}
#gts-intensity-slider:hover::-moz-range-thumb {
background: #764ba2;
} .gts-hidden {
display: none !important;
} .gts-theme-option:disabled,
.gts-theme-option[disabled] {
opacity: 0.5;
cursor: not-allowed !important;
pointer-events: none;
}
#gts-intensity-slider:disabled,
#gts-intensity-slider[disabled] {
opacity: 0.5;
cursor: not-allowed !important;
}
.gts-force-override-notice {
background: #fff3cd;
color: #856404;
padding: 10px;
margin-bottom: 10px;
border-radius: 5px;
font-size: 12px;
text-align: center;
border: 1px solid #ffebd1;
} #gts-toggle-btn:focus {
outline: 3px solid #667eea;
outline-offset: 2px;
}
.gts-theme-option:focus {
outline: 2px solid #667eea;
outline-offset: 2px;
} @keyframes slideIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.gts-fade-in {
animation: slideIn 0.3s ease forwards;
} @media (max-width: 768px) {
#gts-theme-menu {
min-width: 250px;
}
.gts-theme-options {
grid-template-columns: repeat(2, 1fr);
}
#gts-toggle-btn {
width: 45px;
height: 45px;
}
#gts-toggle-btn .gts-icon {
font-size: 20px;
}
}
@media (max-width: 480px) {
#gts-theme-switcher.gts-position-bottom-right,
#gts-theme-switcher.gts-position-bottom-left {
bottom: 10px;
}
#gts-theme-switcher.gts-position-bottom-right,
#gts-theme-switcher.gts-position-top-right {
right: 10px;
}
#gts-theme-switcher.gts-position-bottom-left,
#gts-theme-switcher.gts-position-top-left {
left: 10px;
}
#gts-theme-menu {
position: fixed;
left: 10px !important;
right: 10px !important;
width: auto !important;
min-width: auto !important;
}
} @media print {
#gts-theme-switcher {
display: none !important;
}
html.gts-grayscale,
html.gts-sepia,
html.gts-dark,
html.gts-high-contrast {
filter: none !important;
-webkit-filter: none !important;
}
} @media (prefers-color-scheme: dark) {
#gts-theme-menu {
background: #2a2a2a;
color: #f0f0f0;
}
#gts-theme-menu h3 {
color: #f0f0f0;
}
.gts-theme-option {
background: #3a3a3a;
color: #f0f0f0;
}
.gts-theme-option:hover {
background: #4a4a4a;
}
.gts-theme-option.active {
background: #3a4a6a;
}
.gts-intensity-control {
border-top-color: #444;
}
.gts-intensity-control label {
color: #ccc;
}
#gts-intensity-slider {
background: #444;
}
}