/* CSS Reset based on https://piccalil.li/blog/a-modern-css-reset/ */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

:root {
    scroll-behavior: smooth;
    --main-color: #D97B66;
    --main-color-shadow: #A0522D;
    --secondary-color: #6B8E62;
    --secondary-color-hover: #577450;
    --accent-color: #444857;
    --background-color1: #FDFBF7;
    --background-color2: #F4F1E7;
    --text-color: #2E2E2E;
    --alt-text-color: #fff;
}


/* Styles for the main layout of the website */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

p {
    line-height: 1.6;

}


/* Header  styles */
header {
    background-color: var(--main-color);
    width: 100%;
    border-bottom: 1px solid var(--accent-color);
}

.header-container {
    display: flex;
    align-items: center;        /* Vertically center items */
    justify-content: space-between; /* Space between title and CTA */
    max-width: 800px;         /* Optional: limit max width */
    margin: 0 auto;            /* Center the container */
}

.main-title a,
.main-title a:visited,
.main-title a:active {
    margin: 0;
    padding: 15px;
    color: var(--alt-text-color);
    display: inline-block;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s;
}

.main-title a:hover {
    transform: translate(0, -2px);
}

.header-actions {
    display: none; /* Hide by default on mobile */
    margin-left: auto;
    gap: 10px;
}

/* Hamburger styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    margin-left: 1em;
}

/* Hide header actions on small screens */
@media (max-width: 700px) {
    .header-actions {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: var(--main-color);
        position: absolute;
        top: 80px; /* increased to appear below the header */
        right: 0;
        z-index: 100;
        margin-top: 0;
    }
    .header-actions.show {
        display: flex;
    }
    .cta, .log-in {
        width: 90%;
        text-align: center;
        margin: 8px 0;
    }
    .hamburger {
        display: block;
    }
    .header-container {
        position: relative;
    }
}

/* Desktop: show header actions as flex */
@media (min-width: 701px) {
    .header-actions {
        display: flex;
        margin-left: auto;
        gap: 10px;
    }
}

.cta {
    margin: 0;
    padding: 15px;
    display: inline-block;
    margin-left: auto;
}

.cta a {
    background: var(--secondary-color);
    color: var(--alt-text-color);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.2s;
}
.cta a:hover {
    background: var(--secondary-color-hover);
}

.log-in {
    margin: 0;
    padding: 15px;
    display: inline-block;
    margin-left: auto;
}

.log-in a {
    background: var(--accent-color);
    color: var(--alt-text-color);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.2s;
}

.log-in a:hover {
    background: #17181d;
    box-shadow: #2E2E2E 0 1px 3px;
}



/* Section styles */
.section-odd {
    background-color: var(--background-color2);
    padding: 20px;
}

.section-even {
    background-color: var(--background-color1);
    padding: 20px;
}


/* Body styles */
body {
    font-family: Arial, sans-serif;
    background: var(--background-color1);
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.text-box {
    margin: 20px auto;
    max-width: 800px;
    text-align: left;
}

ul {
    text-align:left; 
    max-width:600px; 
    margin:0 auto 0 0;
}

.emoji-hand-list {
    list-style-type: none;
    padding-left: 1em;
}

.emoji-hand-list li::before {
    content: " 👉 ";
    margin-right: 0.5em;
}


/* Form styles */
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: auto;
}

.form-container {
    border: 2px var(--main-color) solid;
    width: 100%;
    height: auto;
    padding-bottom: 15px;
    margin: 10px auto;
    border-radius: 20px;
    box-shadow: 5px 5px 5px #A0522D;
}

.form-container h2 {
    margin-bottom: 15px;
}

.login-form {
    border: 2px var(--secondary-color) solid;
    width: 300px;
    height: auto;
    padding: 15px;
    margin: 10px auto;
    border-radius: 20px;
    box-shadow: 5px 5px 5px var(--main-color-shadow);

}

input, select, textarea{
    margin-top: 5px;
    margin-bottom: 10px;
    width: 90%;
    display: inline-block;
    padding: 0.3em;
    box-sizing: border-box;
    border-radius: 0.3em;
    border: 1px solid #2E2E2E;
}

select {
    padding: 0.3em;
}

label {
    margin: 5px;
    font-weight: bold;
    display: block;
    text-align: left;
    padding-left: 30px;
}

.signup-button {
    background-color: var(--secondary-color);
    color: var(--alt-text-color);
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
}

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

.delete-account-button {
    background-color: #c50000;
    color: var(--alt-text-color);
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
}

.delete-account-button:hover {
    background-color: rgb(173, 49, 49);
}

/* --- Choices.js custom styling to match site --- */
.choices {
    width: 100%;
    font-size: 1rem;
}

.choices__inner {
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-height: 44px;
    padding: 0.5em;
    box-shadow: none;
    transition: border 0.2s;
}

.choices__inner:focus-within {
    border-color: var(--main-color);
}

.choices__list--multiple .choices__item {
    background-color: var(--main-color);
    color: var(--alt-text-color);
    border-radius: 4px;
    margin: 2px 4px 2px 0;
    padding: 0.2em 0.7em 0.2em 0.5em;
    font-size: 0.98em;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    border-radius: 0 0 6px 6px;
    border: 1px solid #ccc;
    border-top: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    z-index: 1001 !important;
    position: relative;
}

.choices__item--selectable.is-highlighted {
    background-color: #f5e6e1;
    color: var(--main-color);
}

.choices__item--choice {
    padding: 0.5em 1em;
    font-size: 1em;
}

.choices__input {
    font-size: 1em;
    padding: 0.2em;
}

.choices__button {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.7;
    font-size: 1.1em;
    margin-left: 0.2em;
    cursor: pointer;
}

.choices__button:hover {
    opacity: 1;
}

/* Remove outline on click, but keep for keyboard navigation */
.choices__inner:focus {
    outline: none;
}

/* --- End Choices.js custom styling --- */


/* Footer styles */
footer {
    background-color: var(--text-color);
    width: 100%;
}

.footer-text {
    display: inline-block;
    margin: 0px;
    padding: 20px;
    color: #F4F1E7;
}

.footer-link {
    text-decoration: none;
    color: #F4F1E7;
    margin: 0px;
    padding: 0px;
}



/* pop ups */
.popup-message {
    position: relative;
    margin: 0 auto 20px auto;
    max-width: 350px;
    background: #fff0f0;
    color: #a94442;
    border: 1.5px solid #e57373;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 18px 24px;
    font-size: 1.1em;
    text-align: center;
    z-index: 1000;
    animation: fadeInPop 0.4s;
}
.popup-message-text {
    font-weight: bold;
}
@keyframes fadeInPop {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}