/* CSS RESET */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
position: relative;
line-height: 1;
min-height: 100vh;
max-width: 100vw;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
html {
box-sizing:border-box
}
* {
box-sizing:inherit;
}

/* END CSS RESET */

h1, h2 {
    width: 100%;
    text-align: center;
    font-size: 33px;
    color: #240047;
    font-weight: 700;
    margin: 30px 0px 30px 0px;
    padding: 0 40px;
    line-height: 120%;
}

h2 {
    font-size: 25px;
}

p {
    line-height: 120%;
}

header {
    padding-top: 20px;
}

main {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 0px 0px 40px 0px;
}

textarea {
    margin: 0;
    resize: none;
    border: 2px solid #240047;
    border-radius: 0px 10px 10px 10px;
    padding: 10px;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    width: 100%;
}

input {
    font-family: 'Poppins', sans-serif;
    border: 2px solid #240047;
    border-radius: 10px;
    padding: 10px 15px;
}

input::placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

hr {
    width: 100%;
    border: 1px solid #240047;
}

section {
    width: 100%;
    padding-bottom: 30px;
}

nav {
    position: relative;
    z-index: 3;
    background-color: #240047;
    color: #FFFFFF;
    width: 100%;
    height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

#logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

#logo h2 {
    font-size: 28px;
    padding: 0px;
}

#menu-button rect {
    fill: #FFFFFF; /* Initial fill color */
    transition: fill 0.3s ease; /* Smooth transition */
}

#menu-button:hover rect {
    fill: #e7dcff;
    transition: 0.2s ease color;
}

#help-button {
    scale: 1;
    transition: 0.2s all;
    position: absolute;
    top: 10px;
    right: 10px;
}

#help-button:hover {
    cursor: pointer;
    scale: 1.06;
    transition: 0.2s all;
}

#help-button-close {
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 25px;
}

#help-modal-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding-top: 100px;
    background: #2626267d;
    justify-content: center;
    align-items: flex-start;
}

#help-modal-inner {
    position: relative;
    width: 80%;
    min-height: 700px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: #26262659 0px 0px 20px;
    padding: 30px 10% 60px 10%;
    font-size: 16px;
    line-height: 140%;
}

#help-modal-inner ol {
    list-style: decimal;
    padding-inline-start: 40px;
}

#help-modal-inner ul {
    list-style: disc;
    padding-inline-start: 40px;
}

#help-modal-inner h3 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

#help-modal-inner span {
    color: #8652FF;
}

#test-users {
    font-size: 18px;
    display: flex;
    flex-direction: column;
}

#test-users input {
    margin: 0px 15px 10px 0px;
    transform: scale(1.5);
}

#address-form-container {
    background: #FFFFFF;
    min-height: 100%;
    width: 100%;
    padding: 30px 40px 30px 0px;
    flex-direction: column;
}

#address-form-container button, label {
    width: 200px;
}

#address-form-container h2 {
    text-align: left;
}

#address-form-container input {
    width: 100%;
    margin-bottom: 10px;
}

#address-form-container #email-inputs input {
    width: 80%;
    margin-top: 10px;
}

#address-form-button-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#campaign-name-input, .campaign-name {
    position: absolute;
    top: -35px;
    left: 0;
    border-radius: 10px 10px 0px 0px;
    font-size: 15px;
}

#campaign-name-input {
    background: #FFFFFF;
    border: 2px solid #240047;
    padding: 5px 14px 5px 14px;
    width: 45%;
}

#campaign-name-input:focus {
    outline: none;
}

#copy-container {
    opacity: 0;
    position: absolute;
    top: -1000px;
    left: -1000px;
}

#text-output {
    width: 80%;
    margin: 0 auto 30px auto;
    border-radius: 20px;
    padding: 30px 40px;
    background-color: #262626;
    color: #FFFFFF;
    font-family: 'Fira Code', monospace;
    line-height: 120%;
    overflow-x: scroll;
    white-space: pre;
}

#text-output::-webkit-scrollbar {
width: 0.1em;
background-color: transparent;
}

#text-output::-webkit-scrollbar-thumb {
background-color: transparent;
}

#message-selector {
    margin: 20px 0px 20px 0px;
}

#file-input {
    opacity: 0;
    position: absolute;
    left: -9999px;
}

#file-name {
    margin-top: 20px;
    padding: 15px 30px;
    border-radius: 50px;
}

#file-outputs {
    padding: 20px 80px;
}

#file-outputs a:not(:last-child) {
    margin-right: 15px;
}

#download-btn {
    padding: 0px 30px;
}

#attribute-container, #event-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
}

.fade-in {
    position: relative;
    width: 100%;
    opacity: 0;
    display: initial;
    transition: opacity 0.2s ease-in-out;
}

.fade-in.show {
    opacity: 1;
}

.hide {
    opacity: 0;
    display: none;
}

.drawer {
    left: 0;
    width: 100%;
    z-index: 2;
    background-color: #240047;
    position: absolute;
    display: flex;
    flex-direction: column;
    top: -236px;
    transition: 0.2s ease-in all;
}

.drawer a {
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    margin: 20px auto 0 auto;
}

.drawer a:hover {
    color: #e7dcff;
    transition: 0.2s ease color;
}

.drawer a:last-child {
    margin-bottom: 20px;
}

.drawer .active {
    color: #bda0ff;
}

.expanded {
    top: 70px;
    transition: 0.3s ease-out all;
}

.med-input {
    min-width: 350px;
    margin-bottom: 10px;
}

.custom-file-input {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.history-container {
    background: #E9DEFF;
    height: 100%;
    padding: 20px 20px;
}

.campaign-name {
    background: #240047;
    color:#FFFFFF;
    max-width: 300px;
    padding: 8px 14px;
    top: -30px;
}

.test-user-container {
    position: relative;
    padding: 10px 0px 0px 0px;
    width: 22vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.address-container {
    margin-top: 30px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.user-item {
    width: 250px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-item svg {
    scale: 80%;
}

.address-controls {
    width: 100%;
}

.button-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.download-link {
    color: #FFFFFF;
    height: 50px;
    background: #240047;
    border-radius: 50px;
    min-width: 150px;
    padding: 15px 20px;
}

.message {
    margin: 20px auto;
    font-size: 18px;
}

.email-input {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.email-input input {
    width: 60%;
    margin-right: 15px;
}

.email-input button {
    margin-top: 0px;
}

button, .custom-file-input {
    font-family: 'Poppins', sans-serif;
    margin-top: 15px;
    background: #8552FF;
    color: #FFFFFF;
    border-radius: 50px;
    border: none;
    height: 50px;
    min-width: 150px;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s ease all;
}

button:hover, .custom-file-input:hover {
    cursor: pointer;
    background: #5b1c9b;
    transition: 0.3s ease all;
}

button:disabled {
    background: #717171;
    cursor: not-allowed;
}

.info {
    width: 100%;
    text-align: center;
    color: #240047;
    font-size: 19px;
}

.enter-code {
    resize: vertical;
    border-radius: 10px 10px 10px 10px;
    height: 200px;
}

.inner-container {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    position: relative;
}

.inner-container input {
    width: 60%;
}

.inner-container div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

@media screen and (max-width: 1160px) {
    .button-container {
        flex-direction: column;
        width: 70%;
    }
    .button-container button {
        margin-right: 0!important;
    }
    main {
        flex-direction: column;
    }
    #test-users {
        margin-bottom: 100px;
    }
    .address-container {
        width: 80%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .test-user-container {
        width: 80%;
        margin-bottom: 90px;
    }
    #form-saved-users {
        align-self: center;
    }
}

@media screen and (max-width: 678px) {
    nav {
        font-size: 13px;
    }
    h1 {
        font-size: 24px;
    }
    #submit {
        min-width: 150px!important; /* TODO: do not use !important */
    }
    #help-modal-inner h2 {
        margin-top: 10px;
        padding: 0 20px;
    }
    #help-modal-inner h3 {
        font-size: 16px;
    }
    #help-modal-inner {
        min-height: 500px;
        max-height: 80vh;
        overflow-y: scroll;
        font-size: 14px;
        padding: 20px 20px 40px 20px;
        width: 90%;
    }
    #text-output {
        font-size: 12px;
        padding: 20px 15px;
    }
    #logo h2 {
        font-size: 20px;
    }
    #help-button {
        scale: 0.7
    }
    #help-button:hover {
        scale: 0.8
    }
    #help-button-close {
        scale: 0.8;
        top: 15px;
        right: 20px;
    }
}

@media screen and (max-width: 575px) {
    nav {
        font-size: 11px;
    }
    .med-input {
        min-width: 300px;
        margin-bottom: 10px;
    }
}