@import url('https://fonts.googleapis.com/css2?family=Cinzel&family=Cinzel+Decorative&family=IM+Fell+DW+Pica+SC&family=IM+Fell+DW+Pica:ital@0;1&display=swap');

html {
    background-color: #fff3c9;
}

body {
    margin: auto;
    max-width: 600px;
    font-family: "IM Fell DW Pica", serif;
}


/* LOGIN */

.login {
    margin: 80px auto;
    padding: 30px;
    border: 3px solid #8b0000;
    background-color: #facf7f;
}

.login h1 {
    font-family: "IM Fell DW Pica SC", serif;
    font-weight: normal;
    color: #8b0000;
    font-size: 3rem;
    text-align: center;
    margin: 0 0 30px 0;
}


/* FORM */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* USERNAME / PASSWORD */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: #8b0000;
    font-family: "IM Fell DW Pica SC", serif;
    font-size: 1.25rem;
    font-weight: normal;
}

.form-field input[type="text"],
.form-field input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 2px solid #8b0000;
    background-color: #fff3c9;
    color: #333;
    font-family: "IM Fell DW Pica", serif;
    font-size: 1.1rem;
}

.form-field input[type="text"]:focus,
.form-field input[type="password"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px #8b0000;
}


/* ERRORS */

.form-field span {
    color: #8b0000;
    font-family: "IM Fell DW Pica", serif;
    font-size: 0.95rem;
}


/* REMEMBER ME */

.remember-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-field input[type="checkbox"] {
    margin: 0;
}

.remember-field label {
    color: #8b0000;
    font-family: "IM Fell DW Pica SC", serif;
    font-size: 1.1rem;
    font-weight: normal;
}


/* LOGIN BUTTON */

.login-form input[type="submit"] {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    border: 2px solid #8b0000;
    background-color: #8b0000;
    color: #fff3c9;
    font-family: "IM Fell DW Pica SC", serif;
    font-size: 1.25rem;
    font-weight: normal;
    text-align: center;
    cursor: pointer;
}

.login-form input[type="submit"]:hover {
    background-color: #facf7f;
    color: #8b0000;
}

.flash {
    margin-bottom: 20px;
    padding: 10px;
    border: 2px solid #8b0000;
    color: #8b0000;
    font-family: "IM Fell DW Pica", serif;
    font-size: 1.1rem;
    text-align: center;
}

.password-wrapper {
    position: relative;
    display: flex;
}

.password-wrapper input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 45px 10px 10px;
    border: 2px solid #8b0000;
    background-color: #fff3c9;
    color: #333;
    font-family: "IM Fell DW Pica", serif;
    font-size: 1.1rem;
}

.show-password {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 40px;
    padding: 0;
    border: none;
    background-color: #fff3c9;
    color: #8b0000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-password:hover .eye-icon {
    stroke-width: 2.5;
}

.eye-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #8b0000;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eye-closed {
    display: block;
}

.eye-open {
    display: none;
}


/* NAVIGATION BAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #8b0000;
    border-bottom: 2px solid #facf7f;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.settings-button {
    width: 50px;
    height: 50px;
    padding: 0;
    margin-left: auto;
    border: none;
    background-color: transparent;
    color: #fff3c9;
    font-size: 1.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-button:hover {
    color: #facf7f;
}

.page-content {
    padding-top: 50px;
}

/* SETTINGS MENU */

.settings-menu {
    position: relative;
    margin-left: auto;
}

.settings-button {
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    background-color: transparent;
    color: #fff3c9;
    font-size: 1.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-button:hover {
    color: #facf7f;
}

.settings-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    min-width: 180px;
    border: 2px solid #8b0000;
    background-color: #facf7f;
    z-index: 1001;
}

.settings-dropdown a {
    display: block;
    padding: 12px 15px;
    color: #8b0000;
    font-family: "IM Fell DW Pica SC", serif;
    font-size: 1.1rem;
    text-decoration: none;
    white-space: nowrap;
}

.settings-dropdown a:hover {
    background-color: #fff3c9;
}

/* HOME TAB */

.home-tab {
    height: 50px;
    box-sizing: border-box;
    padding: 0 25px;
    display: flex;
    align-items: center;

    color: #fff3c9;
    background-color: #8b0000;

    border: 2px solid transparent;
    border-bottom: none;

    font-family: "IM Fell DW Pica SC", serif;
    font-size: 1.2rem;
    text-decoration: none;

    position: relative;
    top: 2px;
}

.home-tab:hover {
    color: #facf7f;
}

.home-tab.active {
    color: #8b0000;
    background-color: #fff3c9;
    border: 2px solid #facf7f;
    border-bottom: 2px solid #fff3c9;
    border-radius: 4px 4px 0 0;
}

.home-tab:not(.active)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -2px;
    right: -2px;
    height: 2px;
    background-color: #facf7f;
}

/* CHARACTERS */

.characters {
    margin: 70px 0 30px 0;
}

.characters h1 {
    margin: 0 0 20px 0;
    color: #8b0000;
    font-family: "IM Fell DW Pica SC", serif;
    font-size: 2.5rem;
    font-weight: normal;
    text-align: center;
}


/* CHARACTER ROW */

.character-row {
    box-sizing: border-box;
    min-height: 52px;
    display: flex;
    align-items: center;

    margin-bottom: 10px;

    border: 2px solid #8b0000;
    background-color: #facf7f;

    color: #333;
}

.character-add select {
    box-sizing: border-box;
    height: 38px;
    width: 100px;
    margin: 5px;

    padding: 6px 10px;

    border: 2px solid #8b0000;
    background-color: #f3d28d;
    color: #333;

    font-family: "IM Fell DW Pica", serif;
    font-size: 1.05rem;

    cursor: pointer;
}

.character-add select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #8b0000;
}
/* CHARACTER NAME */

.character-name {
    flex: 1;
    padding: 10px 15px;

    color: #8b0000;
    font-family: "IM Fell DW Pica", serif;
    font-size: 1.2rem;
}

.character-name a {
    color: inherit;
    text-decoration: none;
}

.character-name a:hover {
    font-weight: bold;
}
.character-name a:visited,
.character-name a:active {
    color: inherit;
    text-decoration: none;
}
/* CHARACTER VERSION */

.character-version {
    width: 100px;
    padding: 10px;

    color: #8b0000;
    font-family: "IM Fell DW Pica", serif;
    font-size: 1rem;
    text-align: center;
}


/* ADD CHARACTER FORM */

.character-add {
    padding-left: 10px;
    background-color: #facf7f;
}

.character-add input {
    box-sizing: border-box;
    height: 38px;
    margin: 5px;

    border: 2px solid #8b0000;
    background-color: #f3d28d;

    color: #333;
    font-family: "IM Fell DW Pica", serif;
    font-size: 1.05rem;
}

.character-add input:first-child {
    flex: 1;
    min-width: 0;
}

.character-add input:nth-child(2) {
    width: 100px;
}


/* ADD / DELETE BUTTON */

.character-button {
    width: 42px;
    height: 42px;
    margin: 3px;

    border: 2px solid #8b0000;

    font-family: "IM Fell DW Pica", serif;
    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* ADD */

.add-button {
    background-color: #387a3c;
    border-color: #387a3c;
    color: #fff3c9;
}

.add-button:hover {
    background-color: #2f6533;
    border-color: #2f6533;
}


/* DELETE */

.delete-button {
    background-color: #8b0000;
    color: #fff3c9;
}

.delete-button:hover {
    background-color: #facf7f;
    color: #8b0000;
}


/* EMPTY LIST */

.no-characters {
    padding: 20px;

    border: 2px solid #8b0000;
    background-color: #facf7f;

    color: #8b0000;
    font-size: 1.1rem;
    text-align: center;
}
