﻿body {
    margin-bottom: 60px;
    background-image: url("/lib/Images/fonts.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #E8DCC2;
    font-family: myFont;
    color: #3E2F1C;
    background-attachment: fixed;
}

.title {
    margin-top: 50px;
    font-size: 50px;
    position: relative;
    display: inline-block;
}

.headtitle {
    padding-bottom: 10px;
    text-shadow: 1px 1px 0 #A68A64;
}

.title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 14px;
    background-repeat: repeat-x;
    background-size: 40px 14px;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='40' height='14'>\
  <defs>\
    <filter id='shadow' x='-20%' y='-20%' width='140%' height='140%'>\
      <feDropShadow dx='1' dy='1' stdDeviation='0.6' flood-color='%233E2F1C' flood-opacity='0.45'/>\
    </filter>\
  </defs>\
  <text x='0' y='12' font-size='14' fill='%233E2F1C' filter='url(%23shadow)'>ᚠᚢᚦᚨ</text>\
</svg>");
}


@font-face {
    font-family: myFont;
    src: url("/fonts/VengeanceAtSea.ttf");
}

.navbar-pri {
    color: #0F1A2B;
    text-decoration: none;
    font-size: 30px;
}

.link {
    color: #2C1E0F;
    text-shadow: 1px 1px 0 #A68A64;
    text-decoration: none;
    padding: 10px 14px;
    position: relative;
    display: inline-block;
}

    .link:after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 14px;
        background-repeat: repeat-x;
        background-size: 20px 7px;
        background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='40' height='14'>\
  <defs>\
    <filter id='shadow' x='-20%' y='-20%' width='140%' height='140%'>\
      <feDropShadow dx='1' dy='1' stdDeviation='0.6' flood-color='%233E2F1C' flood-opacity='0.45'/>\
    </filter>\
  </defs>\
  <text x='0' y='12' font-size='14' fill='%233E2F1C' filter='url(%23shadow)'>ᚠᚢᚦᚨ</text>\
</svg>");
    }

.fiche-perso {
    padding-top: 30px;
}

.maps-container {
    padding-bottom: 8rem;
}

    .maps-container label,
    .maps-container .map-button {
        color: #3E2F1C;
    }

.map-button {
    display: inline-block;
    padding: 8px 14px;
    background-color: #F3E9D2;
    border: 2px solid #C6A67A;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    margin-bottom: 5px;
}

    .map-button:hover {
        background-color: #E9D8A6;
        border-color: #BFA542;
    }


.map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.map-toggle:checked + label + .map-overlay {
    display: flex;
}

.map-toggle:checked + .map-button {
    background-color: #E9D8A6;
    border-color: #8A1A1A;
    color: #3E2F1C;
    box-shadow: 0 0 6px rgba(138, 26, 26, 0.4);
}

.map-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
    border-radius: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: white;
    padding: 20px;
    width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    color: black;
}

.title, h5 {
    color: #2C1E0F;
    text-shadow: 1px 1px 0 #A68A64;
}

.btn-primary {
    background-color: #7A1A1A;
    border-color: #5C1313;
    color: #F8F4E3;
}

    .btn-primary:hover {
        background-color: #5C1313;
    }

.btn-secondary {
    background-color: #C9A66B;
    border-color: #A68A64;
    color: #3E2F1C;
}

    .btn-secondary:hover {
        background-color: #B0895B;
    }

.modal-box {
    background-color: #DCC9A3;
    border: 2px solid #A68A64;
    color: #3E2F1C;
    padding: 20px;
    width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.btn-ruby,
.btn-ruby-danger {
    width: 110px;
    text-align: center;
    padding: 6px 0;
    display: inline-block;
}

.btn-ruby {
    background: linear-gradient(180deg, #B22222 0%, #8A1A1A 100%);
    border: 2px solid #5A0F0F;
    color: #F8F4E3;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 0 #5A0F0F;
    transition: 0.2s ease;
    margin-bottom: 5px;
}

    .btn-ruby:hover {
        background: linear-gradient(180deg, #8A1A1A 0%, #6A0F0F 100%);
        transform: translateY(1px);
        box-shadow: inset 0 1px 0 rgba(0,0,0,0.2), 0 2px 0 #5A0F0F;
    }

.btn-ruby-danger {
    background: linear-gradient(180deg, #7A0F0F 0%, #5A0A0A 100%);
    border: 2px solid #3A0505;
    color: #F8F4E3;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 3px 0 #3A0505;
}

    .btn-ruby-danger:hover {
        background: linear-gradient(180deg, #5A0A0A 0%, #3A0505 100%);
        transform: translateY(1px);
    }

.input-parchment {
    background-color: #F3E9D2;
    border: 2px solid #C6A67A;
    color: #3E2F1C;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

    .input-parchment::placeholder {
        color: #7A5F4A;
        opacity: 0.8;
    }

    .input-parchment:focus {
        outline: none;
        border-color: #BFA542;
        box-shadow: 0 0 6px rgba(191,165,66,0.5);
        background-color: #F8F0D8;
    }

.table {
    background-color: #F3E9D2;
    border: 2px solid #C6A67A;
    color: #3E2F1C;
}

    .table th {
        background-color: #E9D8A6;
        color: #3E2F1C;
        border-color: #C6A67A;
        font-weight: bold;
    }

    .table td {
        background-color: #F8F0D8;
        border-color: #C6A67A;
        color: #3E2F1C;
    }

    .table tbody tr:nth-child(even) td {
        background-color: #F3E9D2;
    }

    .table tbody tr:hover td {
        background-color: #E9D8A6;
        transition: 0.2s ease;
    }

.skill-box {
    background-color: #F3E9D2;
    border: 2px solid #C6A67A;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    flex: 1;
    min-width: 250px;
}

    .skill-box h3 {
        margin-bottom: 15px;
        color: #3E2F1C;
    }

.character-box {
    background-color: #F3E9D2;
    border: 2px solid #C6A67A;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    width: 70%;
}

.stats-row {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stats-box {
    background-color: #F3E9D2;
    border: 2px solid #C6A67A;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.rune-underline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .rune-underline:after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 9px;
        background-repeat: repeat-x;
        background-size: 28px 9px;
        background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='28' height='9'>\
  <defs>\
    <filter id='shadow' x='-20%' y='-20%' width='140%' height='140%'>\
      <feDropShadow dx='1' dy='1' stdDeviation='0.4' flood-color='%233E2F1C' flood-opacity='0.45'/>\
    </filter>\
  </defs>\
  <text x='0' y='8' font-size='9' fill='%233E2F1C' filter='url(%23shadow)'>ᚠᚢᚦᚨ</text>\
</svg>");
    }

.skill-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #C6A67A; 
}

.skill-name {
    flex: 1;
    font-weight: bold;
}

.skill-value {
    width: 60px; 
    text-align: right;
    font-weight: bold;
    color: #7A1A1A; 
}

.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #C6A67A;
    margin-left: 30px;
}

.stat-name {
    flex: 1;
    font-weight: bold;
}

.stat-value {
    width: 60px;
    text-align: right;
    font-weight: bold;
    color: #7A1A1A;
}

.skills-row {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.inventory-box {
    width: 100%;
}

.edit-icon {
    cursor: pointer;
    margin-left: auto;
    font-size: 18px;
    opacity: 0.7;
    transition: 0.2s;
}

    .edit-icon:hover {
        opacity: 1;
        transform: scale(1.2);
    }

.add-icon,
.delete-icon {
    cursor: pointer;
    margin-left: 10px;
    font-size: 18px;
    opacity: 0.7;
    transition: 0.2s;
}

    .add-icon:hover,
    .delete-icon:hover {
        opacity: 1;
        transform: scale(1.2);
    }
.inventory-box input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 5px;
    cursor: pointer;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-window {
    background: #fdf7e3;
    padding: 25px;
    border: 2px solid #5a3e1b;
    border-radius: 10px;
    width: 450px;
    max-height: 80vh;
    overflow-y: auto;
}

.bank-line {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.popup-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
