:root {
    --primary-color:         #2A292E;
    --primary-color-light:   #676570;
    --secondary-color-dark:  #ededed;
    --secondary-color:       #f6f6f6;
    --secondary-color-light: #ffffff;

    --between-color:         #AAA9AF;
    
    --secondary-color-slight-transparent: #f6f6f6cb;
    --secondary-color-semi-transparent:   #f6f6f686;
    --secondary-color-srtong-transparent: #f6f6f64f;

    --green-color:   #5dff5d;
    --yellow-color:  #ffd747;
    --red-color:     #ff4f4f;

    --green-color-light:  #7dff7d;
    --yellow-color-light: #ffdf6c;
    --red-color-light:    #ff7272;

    --accent-color-one:         #e76de0;
    --accent-color-two:         #84dff6;
    --accent-color-green-one:   #0d2b1d;
    --accent-color-green-two:   #345635;
    --accent-color-green-three: #6b8f71;
    --accent-color-green-four:  #aec3b0;
    --accent-color-green-five:  #e3efd3;

    --shadow:        0 0 10px rgba(0,0,0,0.1), 0 0 10px rgba(0,0,0,0.1), 0 0 10px rgba(0,0,0,0.1);
    --shadow-blurry: 0 0 24px rgba(0, 0, 0, 0.1), 0 0 36px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 0 14px rgba(0,0,0,0.15), 0 0 14px rgba(0,0,0,0.15), 0 0 14px rgba(0,0,0,0.15);
    --shadow-strong: 0 0 20px rgba(0,0,0,0.2), 0 0 20px rgba(0,0,0,0.2), 0 0 20px rgba(0,0,0,0.2);
    --shadow-strong-blurry: 0 0 48px rgba(0, 0, 0, 0.2), 0 0 72px rgba(0, 0, 0, 0.2);

    --special-shadow-45-primary:       5px 5px 10px #151517, -5px -5px 10px #3f3e45;
    --special-shadow-45-primary-light: 5px 5px 10px #3d3c42, -5px -5px 10px #918e9e;
    --special-shadow-45-secondary:     5px 5px 10px #8f8f8f, -5px -5px 10px #ffffff;
    
    --special-shadow-45-primary-invert:       inset 5px 5px 10px #151517, inset -5px -5px 10px #3f3e45;
    --special-shadow-45-primary-light-invert: inset 5px 5px 10px #3d3c42, inset -5px -5px 10px #918e9e;
    --special-shadow-45-secondary-invert:     inset 5px 5px 10px #8f8f8f, inset -5px -5px 10px #ffffff;

    --header-padding: 45px;
    --header-hight  : 135px; /* might be --header-hight * 3 */
    --site-padding  : calc(var(--header-padding) + 23px); /* Used to be 67.5px */
}

* {
    box-sizing: border-box;
}

*::selection {
    background-color: var(--between-color);
    /*color: var(--secondary-color-light);*/
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    font-weight: lighter;
    font-size: 16px;
}

b {
    font-weight: bold;
}

/* --------------------------------------------------------------------------------- */
/* Buttons */
/* --------------------------------------------------------------------------------- */

.primary-button {
    height: 45px;
    width:  135px;
    border-radius: 15px;
    background-color: var(--primary-color);
    background-size: 60%;
    background-size: 18px;
    background-position: center center;
    background-repeat: no-repeat;
    border: none;
    display: block;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: var(--secondary-color);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0 !important; /* override inline gaps so icon-only stays tight */
    transition: gap 180ms ease;
}

.primary-button:disabled {
    background-color: var(--primary-color-light);
    cursor: not-allowed;
}

.primary-button:hover {
    background-color: var(--primary-color-light);
    gap: 8px !important;
}

.primary-button-special-shadow {
    box-shadow: var(--special-shadow-45-primary);
}

.primary-button-special-shadow:active {
    box-shadow: var(--special-shadow-45-primary-invert);
}

.secondary-light-button {
    height: 45px;
    width:  135px;
    border-radius: 15px;
    background-color: var(--secondary-color-light);
    background-size: 60%;
    background-size: 18px;
    background-position: center center;
    background-repeat: no-repeat;
    border: none;
    display: block;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0 !important; /* override inline gaps so icon-only stays tight */
    transition: gap 180ms ease;
}

.secondary-light-button:hover {
    background-color: var(--secondary-color);
    gap: 8px !important;
}

.secondary-button {
    height: 45px;
    width:  135px;
    border-radius: 15px;
    background-color: var(--secondary-color);
    background-size: 60%;
    background-size: 18px;
    background-position: center center;
    background-repeat: no-repeat;
    border: none;
    display: block;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0 !important; /* override inline gaps so icon-only stays tight */
    transition: gap 180ms ease;
}

.secondary-button:hover {
    background-color: var(--secondary-color-dark);
    gap: 8px !important;
}

.hover-only-text {
    display: inline-flex;
    align-items: center;
    opacity: 0;
    max-width: 0;
    width: 0;
    flex: 0 0 auto;
    overflow: hidden;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease, max-width 200ms ease;
    white-space: nowrap;
}

.secondary-dark-button {
    height: 45px;
    width:  135px;
    border-radius: 15px;
    background-color: var(--secondary-color-dark);
    background-size: 60%;
    background-size: 18px;
    background-position: center center;
    background-repeat: no-repeat;
    border: none;
    display: block;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0 !important; /* override inline gaps so icon-only stays tight */
    transition: gap 180ms ease;
}

.secondary-dark-button:hover {
    background-color: var(--primary-color-light);
    color: var(--secondary-color-light);
    gap: 8px !important;
}

.red-button {
    height: 45px;
    width:  135px;
    border-radius: 15px;
    background-color: var(--red-color);
    background-size: 60%;
    background-size: 18px;
    background-position: center center;
    background-repeat: no-repeat;
    border: none;
    display: block;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: var(--secondary-color-light);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0 !important; /* override inline gaps so icon-only stays tight */
    transition: gap 180ms ease;
}

.red-button:hover {
    background-color: var(--red-color-light);
    gap: 8px !important;
}

.red-button:disabled {
    background-color: var(--secondary-color);
}

.green-button {
    height: 45px;
    width:  135px;
    border-radius: 15px;
    background-color: var(--green-color);
    background-size: 60%;
    background-size: 18px;
    background-position: center center;
    background-repeat: no-repeat;
    border: none;
    display: block;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: var(--secondary-color-light);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0 !important; /* override inline gaps so icon-only stays tight */
    transition: gap 180ms ease;
}

.green-button:hover {
    background-color: var(--green-color-light);
    gap: 8px !important;
}

.green-button:disabled {
    background-color: var(--secondary-color);
}

.primary-button:hover .hover-only-text,
.secondary-light-button:hover .hover-only-text,
.secondary-button:hover .hover-only-text,
.red-button:hover .hover-only-text,
.green-button:hover .hover-only-text {
    opacity: 1;
    max-width: 200px;
    width: auto;
    transform: translateY(0);
    overflow: visible;
}

.active-switch-button-light {
    height: 45px;
    width:  135px;
    border-radius: 15px;
    background-color: var(--secondary-color-light);
    border: solid 3px var(--primary-color);
    display: block;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
}

.active-switch-button-light:hover {
    background-color: var(--secondary-color);
}

.active-switch-button {
    height: 45px;
    width:  135px;
    border-radius: 15px;
    background-color: var(--secondary-color);
    border: solid 3px var(--primary-color);
    display: block;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
}

.active-switch-button:hover {
    /*background-color: var(--secondary-color-dark);*/
}

.deactivated-switch-button-light {
    height: 45px;
    width:  135px;
    border-radius: 15px;
    background-color: var(--secondary-color-light);
    border: solid 3px var(--secondary-color-light);
    display: block;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
}

.deactivated-switch-button-light:hover {
    background-color: var(--secondary-color);
    border: solid 3px var(--secondary-color-dark);
}

.deactivated-switch-button {
    height: 45px;
    width:  135px;
    border-radius: 15px;
    background-color: var(--secondary-color);
    border: solid 3px var(--secondary-color);
    display: block;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
}

.deactivated-switch-button:hover {
    /*background-color: var(--secondary-color-dark);*/
    border: solid 3px var(--secondary-color-dark);
}

/* --------------------------------------------------------------------------------- */
/* Inputs */
/* --------------------------------------------------------------------------------- */

.secondary-input {
    width: 450px;
    height: 45px;
    border-radius: 15px;
    background-color: var(--secondary-color-light);
    border: none;
    padding: 15px;
    font-size: 16px;
}

/* Suppress focus outline for time inputs on this page */
.secondary-input:focus {
    outline: none;
    box-shadow: none;
}

.secondary-input-error {
    border: solid var(--red-color) 2.5px;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 45px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-color);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 35px;
    width: calc(50% - 5px);
    left: 5px;
    bottom: 5px;
    background-color: var(--primary-color);
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider::before {
    background-color: var(--secondary-color);
}

input:checked + .slider:before {
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
}

/* Rounded sliders */
.slider.round {
    border-radius: 15px;
}

.slider.round:before {
    border-radius: 10px;
}

/* --------------------------------------------------------------------------------- */
/* Texts */
/* --------------------------------------------------------------------------------- */

.title {
    font-size: 45px;
    font-weight: bold;
    color: var(--primary-color);
}

.title-mid {
    font-size: 25px;
    font-weight: bold;
    color: var(--primary-color);
}

.title-sub {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.title-nano {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------------- */
/* Elements */
/* --------------------------------------------------------------------------------- */

.content-block {
    padding: 15px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-color-light);
    box-shadow: var(--shadow);
    margin-top: 30px;
    box-sizing: border-box;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.content-block::-webkit-scrollbar {
    display: none;
}

.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: auto;
    max-height: var(--header-hight);
    padding: var(--header-padding);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(to bottom, var(--secondary-color) 60%, transparent);
}

.header-bar .title {
    width: 100%;
    text-align: center;
    padding: 0px 30px 0px 30px;
    padding: 0px 15px 0px 15px;
    font-size: clamp(18px, 5vw, 45px);
}

.transition-to-bottom-secondary {
    background-image: linear-gradient(to bottom, var(--secondary-color), tranparent);
}

.whiteout-background-transition-secondary {
    width: 100%;
    height: 100%;
    background: radial-gradient(closest-side, var(--secondary-color) 35%, var(--secondary-color-slight-transparent) 85%, var(--secondary-color-semi-transparent));
    backdrop-filter: blur(2.5px);
}

/* --------------------------------------------------------------------------------- */
/* Layout */
/* --------------------------------------------------------------------------------- */

.site-holder {
    padding-bottom: var(--site-padding);
    width: calc(100% - (var(--site-padding) * 2));
    margin-left: var(--site-padding);
}

/* --------------------------------------------------------------------------------- */
/* Other */
/* --------------------------------------------------------------------------------- */

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 122, 123, 0.25);
}

.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* --------------------------------------------------------------------------------- */
/* Size Changes */
/* --------------------------------------------------------------------------------- */

@media (max-width: 800px) {
    /*
    :root {
        --header-padding: 30px;
    }
    */
    
    /*
    .header-bar .title {
        font-size: 35px;
        font-size: clamp(12px, 5vw, 45px);
    }
    */
}

@media (max-width: 670px) {
    :root {
        --header-padding: 15px;
        --site-padding  : calc(var(--header-padding) + 23px);
        --header-hight  : 75px;
    }
    
    /*
    .header-bar .title {
        font-size: 25px;
        font-size: clamp(12px, 5vw, 45px);
    }
    */
    
    .primary-button:hover {
        background-color: var(--primary-color);
        gap: 0 !important;
    }

    .secondary-light-button:hover {
        background-color: var(--secondary-color-light);
        gap: 0 !important;
    }

    .secondary-button:hover {
        background-color: var(--secondary-color);
        gap: 0 !important;
    }

    .secondary-dark-button:hover {
        background-color: var(--secondary-color-dark);
        color: var(--primary-color);
        gap: 0 !important;
    }

    .red-button:hover {
        background-color: var(--red-color);
        gap: 0 !important;
    }

    .red-button:disabled {
        background-color: var(--secondary-color);
    }

    .green-button:hover {
        background-color: var(--green-color);
        gap: 0 !important;
    }

    .active-switch-button-light:hover {
        background-color: var(--secondary-color-light);
    }

    .active-switch-button:hover {
        background-color: var(--secondary-color);
    }

    .deactivated-switch-button-light:hover {
        background-color: var(--secondary-color-light);
        border: solid 3px var(--secondary-color-light);
    }

    .deactivated-switch-button:hover {
        background-color: var(--secondary-color);
        border: solid 3px var(--secondary-color);
    }

    .hover-only-text {
        opacity: 0;
        max-width: 0;
        width: 0;
        transform: translateY(4px);
        overflow: hidden;
    }

    .primary-button:hover .hover-only-text,
    .secondary-light-button:hover .hover-only-text,
    .secondary-button:hover .hover-only-text,
    .red-button:hover .hover-only-text,
    .green-button:hover .hover-only-text {
        opacity: 0;
        max-width: 0;
        width: 0;
        transform: translateY(4px);
        overflow: hidden;
    }

    .primary-button:hover,
    .secondary-light-button:hover,
    .secondary-button:hover,
    .red-button:hover,
    .green-button:hover,
    .secondary-dark-button:hover {
        gap: 0 !important;
    }
}
