/* ########### General ################################################### */
html, body {
    background: #000;
    color: white;
    font-family: "Poppins", "Noto Sans", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    height: 100%;
    width: 100%;
}

#pageWrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    align-items: center;
}

#headerSpacer {
    margin: 25px 0;
}

h1 {
    font-size: 2rem;
    color: #25eab5;
}

:root {
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root {
    color-scheme: dark;
    }

    html, body {
        background-color: #000;
        color: #e6e6e6;
    }
}



/* ########### Scrollbar ################################################# */
:root{
    --sb-size: 12px;
    --sb-radius: 10px;
    --sb-track: #000; 
    --sb-thumb: #25eab5;
    --sb-thumb-hover: #57f0cc; /* 57f0cc */
    --sb-thumb-active: #25eab5; /* 8ef7dd */
}

/* 1) Chromium/Edge/Safari/iOS Safari */
*::-webkit-scrollbar{
    width: var(--sb-size);
    height: var(--sb-size);
}
*::-webkit-scrollbar-track{
    background: var(--sb-track);
}
*::-webkit-scrollbar-thumb{
    background-color: var(--sb-thumb);
    border-radius: var(--sb-radius);
    border: 2px solid var(--sb-track);
}
*::-webkit-scrollbar-thumb:hover{
    background-color: var(--sb-thumb-hover);
}
*::-webkit-scrollbar-thumb:active{
    background-color: var(--sb-thumb-active);
}
*::-webkit-scrollbar-corner{
    background: var(--sb-track);
}

/* 2) Firefox */
*{
    scrollbar-color: var(--sb-thumb) var(--sb-track);
    scrollbar-width: thin;
}




/* ########### Header / Footer ########################################### */
header {
    background-color: #222;
    width: 100%;
    height: 50px;
    display: flex;
    position: absolute;
    top: 0;
}

#headerLogo {
    background-image: URL('../img/logoOneLine150.png');
    background-repeat: no-repeat;
    background-size: 95%;
    background-position: center;
    width: 140px;
    height: 100%;
    cursor: pointer;
}

#headerFlexGrow {
    flex-grow: 1;
}

footer {
    background-color: #222;
    width: 100%;
    height: 100px;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    display: flex;
    flex-direction: column;
}

#emailUs {
    color: #25eab5;
}

#emailLink {
    cursor: pointer;
}

#emailLink:hover {
    color: #25eab5;
}



/* ########### Header Profile ############################################ */
#headerProfile {
    position: relative;
    font-family: sans-serif;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    user-select: none;
}

/* Login / Username style */
#headerProfile span {
    transition: color 0.2s ease;
}

#headerProfile:hover span {
    color: #25eab5;
}

/* Dropdown */
#headerProfile .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #222;
    border: 1px solid #25eab5;
    border-radius: 5px;
    display: none;
    flex-direction: column;
    min-width: 150px;
    z-index: 1000;
}

#headerProfile .dropdown span,
#headerProfile .dropdown a {

    color: white;
    padding: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}

#headerProfile .dropdown span:hover,
#headerProfile .dropdown a:hover {
    background: #25eab5;
}

/* Show dropdown on hover */
#headerProfile.loggedIn:hover .dropdown {
    display: flex;
}



/* ########### Home Page ################################################# */
#pageBackground {
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#pageContent {
    width: min(1000px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#tagline {
    text-align: center;
    padding: 2rem 1rem 0rem;
    color: #e6e6e6;
    margin: 0;
    width: 100%;
}

#tagline h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #25eab5;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

#tagline h4 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #cfcfcf;
    line-height: 1.6;
    margin: 0;
}

#signupNote {
    text-align: center;
    margin: 2rem auto 3rem;
    max-width: 700px;
    color: #cfcfcf;
}

#signupNote p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
    font-style: italic;
}

#signupNote p:first-child {
    font-weight: 600;
    color: #25eab5;
    font-style: normal;
}





/* ########### Signup Form ############################################### */
/* General setup */
#signup {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

#signup h1 {
    color: #25eab5;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

#signup h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    color: #b8b8b8;
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#signup h2::before,
#signup h2::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #25eab5;
    margin: 0 0.5rem;
    opacity: 0.6;
}

/* Form layout */
#signupForm {
    display: grid;
    gap: 1rem;
}

#signupForm label {
    font-size: 0.9rem;
    color: #b8b8b8;
    margin-bottom: -0.5rem;
}

#signupForm p {
    font-size: 0.7rem;
    color: #b8b8b8;
}

#signupForm input,
#signupForm select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: #121212;
    color: #e6e6e6;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#signupForm input:focus,
#signupForm select:focus {
    outline: none;
    border-color: #25eab5;
    box-shadow: 0 0 0 3px rgba(37,234,181,0.2);
}

/* Dropdown tweaks */
#signupForm select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='%23b8b8b8' xmlns='http://www.w3.org/2000/svg'%3E<path d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

/* Button */
#signupForm button {
    background: #25eab5;
    color: #2b0f4b;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

#signupForm button:hover {
    background: #1ec095;
}



/* ########### Kippur Qualities ########################################## */
#kippurQualities {
    margin: 4rem auto;
    padding: 2rem;
    color: #e6e6e6;
    font-family: "Poppins","Noto Sans","Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;
}

#kippurQualities h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #25eab5;
    letter-spacing: 1px;
    border-bottom: 2px solid #25eab5;
    display: inline-block;
    padding-bottom: 0.25rem;
}

#kippurQualities ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

#kippurQualities li {
    position: relative;
    padding-left: 2.25rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d6d6d6;
}

/* custom turquoise bullet */
#kippurQualities li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 1rem;
    color: #25eab5;
}



/* ########### Kippur Help ############################################### */
#kippurHelp {
    margin: 0 auto 4rem;
    padding: 2rem;
    color: #e6e6e6;
    font-family: "Poppins","Noto Sans","Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;
}

#kippurHelp h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #25eab5;
    letter-spacing: 1px;
    border-bottom: 2px solid #25eab5;
    display: inline-block;
    padding-bottom: 0.25rem;
}

#kippurHelp ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

#kippurHelp li {
    position: relative;
    padding-left: 2.25rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d6d6d6;
}

#kippurHelp li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 1rem;
    color: #25eab5;
}




/* ########### Anime Cards ############################################### */
#animeCards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    padding: 0 1rem 2rem;
    cursor: pointer;
}

#animeCards h1 {
    text-align: center;
    font-size: 2rem;
    color: #25eab5;
    letter-spacing: 1px;
    border-bottom: 2px solid #25eab5;
    display: inline-block;
    padding-bottom: 0.25rem;
    align-self: flex-start;
}

#animeCards > p {
    font-size: 1.25rem;
    font-weight: 400;
    color: #cfcfcf;
    line-height: 1.6;
    margin: 0;
}

.animeCard {
    width: 100%;
    background: #111;
    border: 1px solid #25eab5;
    border-radius: 12px;
    padding: 2rem;
    color: #e6e6e6;
    transition: transform 0.2s, box-shadow 0.2s;
}

.animeCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 234, 181, 0.2);
}

.animeCard h2 {
    font-size: 2rem;
    color: #25eab5;
    margin-bottom: 0.5rem;
}

.animeCard .genre,
.animeCard .theme {
    font-size: 0.95rem;
    color: #b8b8b8;
    margin: 0.25rem 0;
}

.animeCard .description {
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    font-style: italic;
}

.animeCard .tagline {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    background: rgba(37,234,181,0.1);
    border: 1px solid #25eab5;
    border-radius: 8px;
    color: #25eab5;
}

.animeCard .interest {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #25eab5;
    font-weight: 600;
}
.heart {
    font-size: 1.75rem;
    vertical-align: sub;
}



/* ########### Alerts #################################################### */
#alertCont {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 600px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.alert {
    background: #000;
    border: 2px solid;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-family: sans-serif;
    opacity: 0;
    transform: translateY(-100%);
    transition:
      transform 0.4s cubic-bezier(0.25, 1.5, 0.5, 1),
      opacity 0.3s ease,
      margin 0.3s ease,
      max-height 0.3s ease,
      padding 0.3s ease;
    overflow: hidden;
    max-height: 200px;
    padding: 15px 20px;
    pointer-events: all;
    width: 90%;
}

.alert.show {
    opacity: 1;
    transform: translateY(20px);
}

.alert.hide {
    opacity: 0;
    transform: translateY(-100%);
    margin: 0 !important;
    max-height: 0;
    padding: 0 20px;
}

.alert h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.alert p {
    margin: 0;
    font-size: 14px;
    color: #ddd;
}



/* ########### Popup Window ############################################## */
#popupWindowBackground {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000;
    opacity: 0.8;
    display: none;
    cursor: pointer;
}

#popupWindowCont {
    width: 100vw;
    height: 90vh;
    position: fixed;
    top: 10vh;
    left: 0;
    z-index: 550;
    display: none;
    align-items: flex-start;
    justify-content: center;
}

#popupWindow {
    background: #000;
    border: 1px solid #25eab5;
    border-radius: 25px;
    box-shadow: 0 0 0 3px rgba(37,234,181,0.2);
    padding: 20px;
    z-index: 1;
    width: 350px;
    min-height: 200px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}




/* ########### Login / Signup ############################################ */
#loginPopup {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: sans-serif;
}

#loginTitle {
    margin-bottom: 20px;
    color: #25eab5;
    font-size: 24px;
}

#loginForm {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 300px;
}

.formGroup {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.formGroup label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ccc;
}

.formGroup input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #111;
    color: white;
    font-size: 14px;
}

.formGroup input:focus {
    border: 1px solid #25eab5;
}

#loginButton {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #25eab5;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

#loginButton:hover {
    background: #1fb296;
}

#loginLinks {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 300px;
}

#loginLinks button {
    background: none;
    border: none;
    color: #25eab5;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 5px;
    transition: color 0.2s;
}

#loginLinks button:hover {
    color: #1fb296;
}

#signupUserPopup {
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: sans-serif;
}

#signupUserTitle {
    margin-bottom: 20px;
    color: #25eab5;
    font-size: 24px;
}

#signupUserForm {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 300px;
}

#signupUserButton {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #25eab5;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

#signupUserButton:hover {
    background: #1fb296;
}

#signupUserLinks {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    width: 80%;
    max-width: 300px;
}

#signupUserLinks button {
    background: none;
    border: none;
    color: #25eab5;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 5px;
    transition: color 0.2s;
}

#signupUserLinks button:hover {
    color: #1fb296;
}

.errorInput {
    border: 1px solid #f00 !important;
}



/* ########### Info Icon ################################################# */
.infoIcon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #25eab5;
    color: #25eab5;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 14px;
    cursor: help;
    margin-left: 8px;
    margin-top: 2px;
    position: relative;
    user-select: none;
}

.infoIcon .infoTooltip {
    width: 200px;
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    text-align: left;
    border: 1px solid #25eab5;
    z-index: 1000;
    transition: opacity 0.3s;
}

.infoIcon:hover .infoTooltip {
    visibility: visible;
    opacity: 1;
}

.infoCont {
    display: flex;
}



/* ########### Series Popup ##############################################*/
#seriesPopup {
    width: 100%;
    color: #e6e6e6;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.seriesTitle {
    color: #25eab5;
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 0.03em;
}

.seriesSubtitle{
    color: #25eab5;
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

.seriesText {
    margin-top: 0.3rem;
    color: #cfcfcf;
    font-size: 0.95rem;
    line-height: 1.5;
}

.seriesActions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.seriesVoteBtn {
    background: transparent;
    border: 1px solid #25eab5;
    color: #25eab5;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.seriesVoteBtn:hover {
    background-color: #25eab5;
    color: #0d0d0d;
}

.voteIcon {
    margin-right: 6px;
}
