* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root.light, :root {
    --bg-card: #eee;
    --bg-main: #f5f5f5;
    --label-color: #555;
    --knob-color: #fff;
    --shadow: rgba(0, 0, 0, 0.1);
    --text-clr: #333;
    --text-clr-kol: #fff;
    --toggle-bg: #ccc;

	--accent: #f9e2af;
	--bg-2: hsl(220, 10%, 17%);
	--bg-3: hsl(220, 10%, 11%);
	--bg-4: hsl(220, 10%, 16%);
	--bg-t-2: hsla(220, 12%, 5%, 0.5);
	--bg-t: hsla(220, 12%, 5%, 0.25);
	--bg: hsl(220, 10%, 8%);
	--border-d: #334155;
	--border: hsl(0, 0%, 100%);
	--error: #f38ba8;
	--gradient-primary: linear-gradient(90deg, #CF5DEB 0%, #9F3DFA 100%);
	--gradient-secondary: linear-gradient(90deg, var(--txt-1) 0%, var(--txt) 100%);
	--success: #a6e3a1;
	--txt-1: hsl(220, 45%, 90%);
	--txt-2: hsl(220, 14%, 55%);
	--txt-3: hsl(220, 11%, 35%);
	--txt-4: #000000;
	--txt: hsl(220, 30%, 80%);
}

:root.dark {
    --bg-card: #222;
    --bg-main: #121416;
    --label-color: #ccc;
    --knob-color: #222;
    --text-clr: #eee;
    --text-clr-kol: #fff;
    --toggle-bg: #444;

	--accent: #f9e2af;
	--bg-2: hsl(220, 10%, 17%);
	--bg-3: hsl(220, 10%, 11%);
	--bg-4: hsl(220, 10%, 16%);
	--bg-t-2: hsla(220, 12%, 5%, 0.5);
	--bg-t: hsla(220, 12%, 5%, 0.25);
	--bg: hsl(220, 10%, 8%);
	--border-d: #334155;
	--border: hsl(0, 0%, 100%);
	--error: #f38ba8;
	--gradient-primary: linear-gradient(90deg, #CF5DEB 0%, #9F3DFA 100%);
	--gradient-secondary: linear-gradient(90deg, var(--txt-1) 0%, var(--txt) 100%);
	--success: #a6e3a1;
	--txt-1: hsl(220, 45%, 90%);
	--txt-2: hsl(220, 14%, 55%);
	--txt-3: hsl(220, 11%, 35%);
	--txt-4: #000000;
	--txt: hsl(220, 30%, 80%);
}

footer {
    background-color: var(--bg-main) !important;
}

body {
	background-color: var(--bg-main);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	background-color: var(--bg-main);
	border-radius: 8px;
	box-shadow: 0 4px 6px var(--shadow);
	padding: 20px;
	flex: 1;
}

h1 {
	text-align: center;
	color: var(--text-clr);
}

.options {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.option-group {
	flex: 1;
	min-width: 200px;
}

label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--label-color);
}

select,
button {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
}

button {
	background-color: #4CAF50;
	color: var(--text-clr-kol);
	border: none;
	cursor: pointer;
	transition: background-color 0.3s;
}

button:hover {
	background-color: #3e8e41;
}

.code-container {
	display: flex;
	gap: 20px;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.code-box {
	flex: 1;
	min-width: 300px;
}

textarea {
    width: 100%;
    height: 60vh;
    padding: 14px 16px;
    background-color: var(--bg-card);
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Fira Mono', 'Consolas', monospace;
    resize: vertical;
    margin-top: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    color: var(--text-clr);
}

textarea:hover {
    border-color: #2196F3;
    background: var(--bg-card);
    box-shadow: 0 4px 16px rgba(33,150,243,0.08);
}

textarea:focus,
textarea:active {
    border-color: #1976d2;
    background: var(--bg-card);
    box-shadow: 0 0 0 2px #90caf9;
    outline: none;
}

select {
    background-color: var(--bg-card);
    color: var(--text-clr);
}

.error {
	color: #D32F2F;
	margin-top: 10px;
}

.info-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 5px;
	color: var(--text-clr);
	font-size: 14px;
}

.info-bar span {
	min-width: 75px;
}

.copy-btn {
	background-color: #2196F3;
	color: var(--text-clr-kol);
	border: none;
	border-radius: 4px;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s;
}

.copy-btn:hover {
	background-color: #0b7dda;
}

.char-count {
	font-size: 12px;
	color: var(--text-clr);
}

.dark-mode {
	background-color: var(--bg-main);
	color: #eee;
}

#theme-toggle {
    position: relative;
    top: -10px;
    left: calc(100% - 33px);
    background-color: transparent;
    border: none;
    color: var(--text-clr);
    cursor: pointer;
    font-size: 24px;
    width: auto;
    padding: 5px;
}

@media (max-width: 715px) {
    .disabledOnSmall {
        display: none;
    }
}

/* Cookie Notice */
.cookie-notice {
    animation: cn-fade-in 0.5s forwards;
    animation-delay: 0s;
    background-color: rgba(36, 38, 43, 0.33);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 2px solid rgba(255, 255, 255, 0.33);;
    bottom: -100%;
    color: #fff;
    padding: 10px;
    position: fixed;
    z-index: 99999;
}

.linkout {
    text-decoration: underline;
}

.nodecoration {
    color: var(--text-color-light);
    text-decoration: none !important;
}

.nodecoration-light {
    color: #fff !important;
    text-decoration: none !important;
}

.nodecoration:hover {
    text-decoration: underline !important;
}

@keyframes cn-fade-in {
    0% {
        bottom: -100%;
    } 100% {
        bottom: 0;
    }
}

.cookie-notice-inner {
    color: #fff !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.cookie-notice-button {
    border: 1px solid #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    float: right;
    gap: 5px;
    padding: 5px;
    position: relative;
    right: 0;
}

.cookie-notice-check {

}

.cookie-notice-text {

}

@media (max-width: 700px) {
    .cookie-notice-inner {
        flex-direction: column;
    }

    .cookie-notice-button {
        margin-bottom: 20px;
        margin-top: 20px;
        justify-content: center;
        text-align: center;
        width: calc(100% - 10px - 2px);
    }
}


@media (min-width: 2250px) {
    .cookie-notice {
        width: 100%;
    }
}


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

.theme-toggle {
    width: 60px;
    height: 36px;
    background: var(--toggle-bg, #ccc);
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.toggle-knob {
    width: 30px;
    height: 30px;
    background: var(--knob-color, #fff);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle.dark .toggle-knob {
    left: 25px;
}

.icon {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.icon.sun {
    background: url('data:image/svg+xml;utf8,<svg fill="%23f9c74f" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"></path></svg>') no-repeat center;
    background-size: contain;
}

.icon.moon {
    background: url('data:image/svg+xml;utf8,<svg fill="%23f1f1f1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 12.79A9 9 0 1111.21 3a7 7 0 109.79 9.79z"/></svg>') no-repeat center;
    background-size: contain;
}

.theme-toggle.light .icon.sun {
    opacity: 1;
}

.theme-toggle.dark .icon.moon {
    opacity: 1;
}