:root {
    --white: #ffffff;
    --timberwolf: #dfdcd9;
    --purple-pizzazz: #ff47da;
    --paynes-gray: #4a6d7c;
    --text-color: #161a1d;
    --text-hover: #4a6d7c;
    --primary-color: #fff;
    --secondary-color: #333;
    --pale-azure: #70d6ff;
    --cyclamen: #ff70a6;
    --atomic-tangerine: #ff9770;
    --naples-yellow: #ffd670;
    --mindaro: #e9ff70;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.07em;
    background: var(--white);
    overflow: hidden;
    color: var(--text-color);
}

body {
    transition: background-color 0.2s ease;
}

.bg {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #6c3 50%, #09f 50%);
    bottom: 0;
    left: -50%;
    opacity: .5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
}

.bg3 {
    animation-duration: 5s;
}

body.no-flash {
    animation: none;
    background: repeating-linear-gradient(
        45deg,
        var(--purple-pizzazz),
        var(--purple-pizzazz) 10px,
        var(--paynes-gray) 10px,
        var(--paynes-gray) 20px
    );
}

@keyframes backgroundFlash {
    0% {
        background: repeating-linear-gradient(
            45deg,
            var(--purple-pizzazz),
            var(--purple-pizzazz) 10px,
            var(--timberwolf) 10px,
            var(--timberwolf) 20px
        );
        filter: brightness(0.3);
    }
    100% {
        background: repeating-linear-gradient(
            45deg,
            var(--timberwolf),
            var(--timberwolf) 10px,
            var(--purple-pizzazz) 10px,
            var(--purple-pizzazz) 20px
        );
        filter: brightness(1.5);
    }
}

.wrapper {
    box-sizing: border-box;
    left: 50%;
    padding: 10vmin;
    position: fixed;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.bar {
    position: fixed;
    left: 0;
    width: 100%;
    height: 10px; /* Default height, will be overridden by JS */
    opacity: 0.7;
    z-index: 1;
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

h1, h2, h3, h4 {
    font-weight: bold;
    text-align: center;
    width: 100%;
    margin: 0;
    letter-spacing: -0.08em;
    mix-blend-mode: difference;
    color: var(--text-color);
}

h1 {
    font-size: clamp(3.5rem, 10vw, 20rem);
    color: var(--purple-pizzazz);
}
h2 { font-size: clamp(2rem, 5vw, 5rem); }
h3 { font-size: clamp(1rem, 3vw, 1.5rem); }

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 0.625rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--text-hover);
    transform: scale(1.2);
}

.ml-form-align-center {
    padding: 2rem;
}

.form__entry {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

#email {
    width: 15rem;
    padding: 0.625rem 6rem 0.625rem 0.625rem;
    font-size: 1rem;
    border: none;
    border-radius: 3px;
    background-color: white;
    font-family: inherit;
}

.ml-form-block__button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: inherit;
}

.ml-form-block__button:hover {
    background-color: #555;
    transform: translateY(-50%) scale(1.05);
}

#form-message {
    padding: 6.25rem 0 0 0;
    margin-top: 6.25rem;
    text-align: center;
    display: block;
}

#delete-cookie {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    background-color: #ff4136;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: inherit;
}

#delete-cookie:hover {
    background-color: #ff725c;
    transform: scale(1.05);
}

/* Mailerlite form styles */
#mlb2-18283396 .ml-form-embedContainer {
    box-sizing: border-box;
    display: table;
    margin: 0 auto;
    position: static;
    width: 100% !important;
}

#mlb2-18283396 .ml-form-embedContainer .ml-form-embedWrapper {
    background-color: transparent;
    border-width: 0px;
    border-color: transparent;
    border-radius: 4px;
    border-style: solid;
    box-sizing: border-box;
    display: inline-block !important;
    margin: 0;
    padding: 0;
    position: relative;
}

#mlb2-18283396 .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody {
    margin: 0;
    padding: 0;
    text-align: left;
}

#mlb2-18283396 .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow {
    margin: 0;
    padding: 0;
}

#mlb2-18283396 .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-color: #cccccc;
    border-radius: 4px !important;
    border-style: solid !important;
    border-width: 1px !important;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 14px !important;
    height: auto;
    line-height: 21px !important;
    margin-bottom: 0;
    margin-top: 0;
    padding: 10px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

#mlb2-18283396 .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow .custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

#mlb2-18283396 .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
    margin: 0 0 20px 0;
    float: left;
    width: 100%;
}

#mlb2-18283396 .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
    background-color: #000000 !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #ffffff !important;
    cursor: pointer;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 20px !important;
    margin: 0 !important;
    padding: 10px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    width: 100% !important;
}

#flash-toggle {
    position: fixed;
    top: 20px;
    right: 140px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    display: inline-block;
}

#flash-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
}

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(25%);
    }
}
