:root {
    --primary-color: #3498db; /* Light blue */
    --secondary-color: #2ecc71; /* Green */
    --background-color: #F8E7F6; /* Light gray */
    --text-color: #4B164C; /* Dark gray */
    --header-bg: white; 
    --footer-bg: white; 
}

html {
    font-size: 10px;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.4;
    background-color: var(--background-color);
    font-size: 1.6rem;
}

body[data-style-pref="dark"] {

    --header-bg: #020813; 
    --footer-bg: #020813; 
    --header-color: #FCFCFC;
    --footer-color: #FCFCFC;

    --contrast-bg: #FC5130;
    --contrast-text: #FCFCFC;

    --divs-bg: #FCFCFC;
    --divs-text: #020813;
    --field-text: #020813;

    background-color: #020813;
    color: #FCFCFC;
}


body[data-style-pref="bright"] {

    --header-bg: #FFFFFF; 
    --footer-bg: #FFFFFF; 
    --header-color: #0B0014;
    --footer-color: #0B0014;

    --contrast-bg: #F87575;
    --contrast-text: #FFFFFF;

    --divs-bg: #0B0014;
    --divs-text: #FFFFFF;
    --field-text: #0B0014;

    background-color: #FFFFFF;
    color: #0B0014;

    select {
        border: 1px solid #0B0014;
    }

    thead,
    tbody{
        background-color: var(--divs-bg);
        color: var(--divs-text);
    }
    
    td a {
        color: var(--contrast-bg);
    }

    tr:nth-child(odd) {
        background-color: var(--divs-text);
        color: var(--divs-bg);
        border: 1px solid var(--divs-bg);
    }
    
    tr:nth-child(even) {
        background-color: var(--divs-text);
        color: var(--divs-bg);
        border: 1px solid var(--divs-bg);
    }

}


body[data-style-pref="cuckoo"] {
    
    --header-bg: #FF82A9; 
    --footer-bg: #81AE9D;
    --header-color: #020D13;
    --footer-color: #020D13;

    --contrast-bg: #FCFCFC;
    --contrast-text: #81AE9D;

    --divs-bg: #FF82A9;
    --divs-text: #020D13;
    --field-text: #020D13;

    background-color: #020D13;
    color: #FCFCFC;

}

a {
    text-decoration: underline;
}

img.user-image {
    border-radius: 50%;
    /* border-radius: 0% 50% 50% 0%; */
    margin-bottom: 15px;
    width: 160px;
    height: 160px;
    object-fit: cover;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    display: block;
}


.image-dealer-wrapper-sorta {
    display: flex;
    align-items: flex-start;
    padding: 8px 0 8px 0;
}

input[type="submit"]{
    background-color: var(--contrast-bg);
    color: var(--contrast-text);
    cursor: pointer;
}

.image-dealer-wrapper-sorta img.user-image {
    width: 40px;
    height: 40px;
    display: inline-block;
    margin-bottom: 0;
}


.image-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-file-upload input[type="file"] {
    display: none; /* Hide the default input */
}

.image-file-upload label.styleme {
    /* background-color: black;
    color: white; */

    background-color: var(--divs-bg);
    color: var(--divs-text);

    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
}

.image-file-upload label.styleme:hover {
    /* background-color: #0056b3; */
    opacity: 0.7;
}

#file-name {
    font-size: 14px;
    color: #333;
    margin: auto;
    color: var(--divs-bg);
}


.ql-container,
.ql-snow {
    background-color: white; /* Your desired color */
}

.form-action-field {
    align-items: center !important;
    background-color: unset !important;
}

.form-action-field .form-response p {
    font-weight: 600;
    padding: 10px;
    /* background: black;
    color: white; */
    background-color: var(--divs-bg);
    color: var(--divs-text);

    text-align: center;
}

.main-container p {
    font-size: 1.8rem;
}

footer {
    margin-top: 40px;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: var(--footer-bg);
    color: var(--footer-color);
    border-top: 1px solid;
}

footer .container a {
    width: auto;
    max-width: fit-content;
}

.editor-container {
    min-height: 200px;
}
.editor-container .ql-editor {
    min-height: 200px;
    color: var(--field-text);
}

.container {
    padding: 20px;
    width: 100%;
    max-width: 1240px;
    margin: auto;
}

.main-container {
    min-height: 30vh;
    margin: 0px auto;
}

label {
    cursor: pointer;
    /* padding: 10px; */
    font-weight: 500;
}

.active-display-wrapper {
    margin: 40px 0;
    max-width: 900px;
    line-height: 1.4;
}

.event-container .active-display-wrapper {
    font-size: 1.8rem;
}

.user-container p,
.event-container p {
    font-size: 1.8rem;
}

.active-display-wrapper p {
    white-space: pre-wrap;
    margin-bottom: 15px;
}

.event-participants-wrapper {
    margin: 50px 0;
}

span#resendPassword {
    display: block;
    width: fit-content;
    margin: 4rem 0;
    cursor: pointer;
    text-decoration: underline;
    /* text-decoration-color: var(--text-color); */
    text-decoration-color: var(--contrast-bg);
}



.event-participants {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 4rem;
}



ul {
    list-style: none;
    padding-left: 20px; /* Space for custom bullets */
}

li {
    position: relative;
    padding: 5px 10px;
}

li::before {
    content: "•";  /* Custom bullet (•, ➤, ✓, etc.) */
    color: var(--contrast-bg); /* Blue bullet */
    font-size: 18px;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}




.event-participants .event-participants-item {
    border: 1px solid;
    /* background-color: black;
    color: white; */
    display: grid;
    align-items: center;
    position: relative;
    font-size: 2rem;
    background-color: var(--divs-bg);
    color: var(--divs-text);
}

.event-participants-item img.user-image {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
}

.event-participants span.full-name {
    font-weight: 600;
    display: block;
}

.event-participants {

    span.full-name {
        font-weight: 600;
        display: block;    
    }

    span.job {
        font-size: 1.6rem;
    }

}

.event-participants .event-participants-item a {
    text-decoration: none;
    width: 100%;
    line-height: 1;
    display: grid;
    grid-template-columns: 75px 1fr;
    justify-content: center;
    align-items: center;       
    text-decoration: none;
    padding: 20px;  
    border-radius: 5px;
}

.participant-item i { 
    text-align: center;
    position: absolute !important;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: var(--contrast-bg);
}

.icon-badge {
    position: relative;
    display: inline-block;
    width: max-content;
    font-size: 3rem;
}
.icon-badge span.badge-count {
    position: absolute;
    top: -5px;
    background-color: var(--contrast-bg);
    color: var(--contrast-text);
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
    left: 20px;
}

.icon-badge span.badge-sentence {
    width: fit-content;
    display: contents;
    font-size: 1.6rem;
    color: #fcfcfcab;
    color: var(--contrast-bg);
}

textarea,
input {
    padding: 10px;
    width: 100%;
    color: var(--field-text);
    border: 1px solid var(--field-text);
}

input[type="checkbox"] {
    /* outline: 3px solid black; */
    appearance: auto;
    width: auto;
}

input:checked {
    outline: 2px solid yellow;
}

input[type="checkbox"]:hover {
    outline: 2px solid yellow;
}


[type="checkbox"]:not(:checked) + label, [type="checkbox"]:checked + label {
    position: relative;
    padding-left: 2.3em;
    font-size: 1.05em;
    line-height: 1.7;
    cursor: pointer;
}

hr {
    display: block;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    margin-left: auto;
    margin-right: auto;
    border-style: inset;
    border-width: 1px;
    background-color: var(--contrast-text);
}


p.location,
p.date {
    padding: 10px 20px;
    /* background-color: black;
    color: white; */
    display: inline-block;
    margin: 10px 10px 10px 0;
    line-height: 1;
    border: 2px solid var(--contrast-bg);
    background-color: var(--divs-bg);
    color: var(--divs-text);
}

textarea {
    min-height: 150px;
    width: 100%; /* Adjust width as needed */
    resize: none; /* Disable manual resizing if you don't want it */
    overflow-y: hidden; /* Prevent scrollbars */
    box-sizing: border-box; /* Include padding and borders in the width/height calculations */
}

footer .container {
    display: grid;
    gap: 5px;
}

.form-field {
    display: grid;
    grid-template-columns: 100px auto;
    align-items: center;
    gap: 0 30px;
}

.form-field label {
    /* color: var(--contrast-text); */
}

svg {
    width: 100%;
    max-height: 12px;
}

span.spent {
    background: red !important;
    color: white !important;
    cursor: default !important;
}

a.logo {
    display: block;
    max-width: 200px;
}

form.invitation-form,
form.user-form {
    max-width: 800px;
}


.user-display-wrapper p:first-of-type{ margin-top: 2.5rem; }
.user-display-wrapper p:last-of-type{ margin-bottom: 2.5rem; }

.user-display-wrapper p {
    /* margin: 20px 0; */
    display: inline-block;
    margin-bottom: 1.5rem;
}

.user-display-wrapper span.job {
    
    border-radius: 0px;
    padding: 5px 15px;
    /* background: white; */
    width: fit-content;
    border: 2px solid var(--contrast-bg);
    background-color: var(--divs-bg);
    color: var(--divs-text);
}

form.login-form {
    max-width: 500px;
}


.invite-response-wrapper {
    width: 100%;
    height: auto;
    margin-bottom: 5rem;
}
.invite-response-wrapper select { padding-left: 20px;}


.activate-user-wrapper form div.email-form-field {
    margin-top: 0;
    display: grid;
    grid-template-columns: 2fr 5fr;
    align-items: center;
    font-size: 18px;
    max-width: 800px;
    background-color: black;
    gap: 0;
}


.invite-response-wrapper form {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr 5fr;
    align-items: center;
    font-size: 2rem;
}

.activate-user-wrapper label,
.invite-response-wrapper label { color: white; display: block; text-align: center; width: -webkit-fill-available;}

.invite-response-wrapper label {
    height: 100%;
    /* height: -webkit-fill-available; */
    align-content: center;
    /* background-color: black; */
    background-color: var(--contrast-bg);
    color: var(--contrast-text);
}

.hide {
    display: none;
}

.hidden {
    display: none !important;
}

td.comms {
    /* display: grid;
    grid-template-columns: repeat(2, minmax(50px, 50px));
    gap: 16px; */
    /* display: flex;
    flex-flow: row wrap; */
}

td.comms span.comms-action {
    margin: 0 10px 0 0;
    cursor: pointer;
    background: black;
    padding: 8px 12px;
    color: white;
    line-height: 1;
}

form .form-field:not(:last-of-type) {
    margin-bottom: 15px;
}

form {
    margin-top: 15px;
}


h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
    width: fit-content;
}

h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    width: fit-content;
}

h3 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    display: block;
    width: fit-content;
}


h4 {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    width: fit-content;
}

.its-me-mario {
    /* opacity: 0.9; */
}

.user-display-wrapper {
    display: grid;
}

header {
    /* margin-top: 30px; */
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 60px;
    /* background-color: white; */
    background-color: var(--header-bg);
    color: var(--header-color);
    border-bottom: 1px solid;
}

.psst-log-in {
    background-color: black;
    color: white;

    background-color: var(--divs-bg);
    color: var(--divs-text);

    padding: 20px 30px;
    width: 100%;
    font-size: 16px;
}

.psst-log-in a {
    color: var(--divs-bg);
    background-color: var(--divs-text);
    padding: 8px 16px;
    text-decoration: none;
    margin-left: 20px;
    display: inline-block;
}



ul {
    margin: 20px 0;
}




.my-events .events-item {
    line-height: 1;
    width: 100%;
    /* max-width: 800px; */
    /* border: 2px solid var(--text-color); */
    margin: 10px 0;
    
    font-size: 1.8rem;
    border-radius: 5px;

    a {
        display: grid;
        grid-template-columns: 3fr 1fr;
        justify-content: center;
        /* align-items: center;        */
        text-decoration: none;
        /* gap: 50px; */
    }

    h3 {
        margin-bottom: 0;
    }

    span.event-title {
        padding: 30px;
        /* background-color: black;
        color: white; */


        background-color: var(--divs-bg);
        color: var(--divs-text);
    }

    span.invite-status {
        /* background: white; */
        padding: 30px;
        text-align: center;
        background-color: var(--contrast-bg);
        color: var(--contrast-text);

        i {
            margin-left: 10px;
        }

        
        
    }


}

thead,
tbody{
    background-color: var(--divs-bg);
    color: var(--divs-text);
}

td a {
    color: var(--contrast-bg);
}

p.copyright {
    color: var(--contrast-bg);
}

select {
    padding: 10px;
    background: white url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) no-repeat 99% 50%;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    height: 30px;
    /* width: 100px; */
    padding: 10px;
    min-height: 50px;
    color: var(--field-text);
    /* border: 1px solid var(--field-text); */
    /* border: 1px solid var(--contrast-text); */
    border-left: 1px solid var(--contrast-text);
    cursor: pointer;
}


table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px auto;
    text-align: left;
    justify-content: center;
}
th, td {
    /* border: 1px solid #ddd; */
    padding: 18px;
}
th {
    background-color: #f4f4f4;
    font-weight: bold;
}

tr:nth-child(odd) {
    background-color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}
tr:hover {
    background-color: #f1f1f1;
}

tr.invite {
    height: 72px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: grey;
    opacity: 0.5;
    height: 100%;
    min-height: 100vh;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}




@media only screen and (max-width: 940px) {

    .user-display-wrapper {
        margin: 1rem 0 2.5rem 0 !important;
    }

    .user-display-wrapper span.job {
        line-height: 1.3;
        font-size: 1.4rem;
    }

    footer {
        margin-top: 2rem;
    }

    .event-participants .event-participants-item a {
        padding: 1.5rem;
        font-size: 1.4rem;
        min-height: 100px;
    }

    .event-participants-wrapper {
        margin: 2rem 0 0 0;
    }

    .event-participants {
        grid-template-columns: 1fr;
        margin-bottom: 0;

        span.job {
            font-size: 1.4rem;
        }
    }

    .event-container {
        p.location, p.date {
            font-size: 1.4rem;
            margin: 2px 0;        
        }
    
    }

    ul {
        margin: 1.5rem 0;
    }

    .event-container .active-display-wrapper {
        font-size: 1.6rem;
    }

    .event-container p {
        font-size: 1.6rem;
    }

    hr {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .invite-response-wrapper form {
        font-size: 1.5rem;
        grid-template-columns: 1fr 2fr;
    }

    .invite-response-wrapper select {
        padding-left: 1rem;
    }

    .active-display-wrapper {
        margin: 0 0 1.5rem 0;
    }

    .form-field {
        gap: 0 1.5rem;
        font-size: 1.5rem;
    }

    img.user-image {
        width: 115px;
        height: 115px;
    }

    .user-container p {
        font-size: 1.6rem;
    }

    .my-events .events-item {

        font-size: 1.5rem;
        
        a {
            align-items: center;
        }

        span.event-title{
            padding: 1.3rem;
            height: 100%;
            line-height: 1.3;
            display: grid;
            align-items: center;

            i {
                display: none;
            }
        }

        span.invite-status {
            padding: 1.2rem;
            height: 100%;
            display: grid;
            align-items: center;

            i {
                display: none;
            }
        }

    }

    h1 {
        font-size: 3rem;
        line-height: 1.3;
    }


    h2 {
        font-size: 2.4rem;
        line-height: 1.3;
    }

    header {
        margin-bottom: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    .psst-log-in {
        padding: 1.5rem;
        line-height: 1.3;
    }

    .psst-log-in a {
        padding: 0;
        line-height: 1;
    }

}
