@import url(variable.css);

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-image: url('../assets/img/ft.png');
    background-size: cover;
    color: #333;
}

h1, h2, h3 {
    font-family: "pirate";
}

.container {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.btn {
    background-color: rgba(57, 2, 2, 0.692);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin: 10px 0;
    font-family: "pirate";
}

.btn:hover {
    background-color: #720f0f8c;
    transform: scale(105%);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

#caracteristicasPersonaje {
    display: none;
    font-family: "pirate";
    background-color: rgba(255, 255, 255, 0.2);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.character-card {
    border: 2px solid #ffffff;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.character-card:hover {
    transform: translateY(-10px);
}

.character-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid rgba(57, 2, 2, 0.692);
}

.character-info {
    padding: 15px;
    text-align: center;
}

.character-info h3 {
    margin-top: 0;
    color: rgba(57, 2, 2, 0.892);
    font-size: 1.4rem;
}

.tab-buttons {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.equipment-section {
    margin-top: 20px;
    font-family: "pirate";
    font-size: 20px;
}

.selected-items {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    min-height: 50px;
}

.item-tag {
    display: inline-block;
    background-color: rgba(57, 2, 2, 0.692);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    margin: 3px;
    font-size: 14px;
}

.item-tag button {
    background: none;
    border: none;
    color: white;
    margin-left: 5px;
    cursor: pointer;
}

.button-link {
    width: 100px;
    height: 50px;
    background-size: cover;
    font-family: 'Cinzel', serif;
    color: rgb(167, 127, 25);
    font-size: 0.8rem;
    display: flex;
    font-family: 'D&D', serif;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px black;
    text-transform: uppercase;
    align-self: center;
    background-color: rgba(57, 2, 2, 0.692);
    text-shadow:
    -1px -1px 0 black,
    1.5px -1px 0 black,
    -1px  1px 0 black,
    1.5px  1px 0 black;
    margin-bottom: 2%;
    border-radius: 15px;
    text-decoration: none;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    color: rgba(57, 2, 2, 0.692);
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.character-detail-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid rgba(57, 2, 2, 0.692);
}

.character-detail-section {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.btn-delete {
    background-color: #dc3545;
}

.btn-delete:hover {
    background-color: #c82333;
}

.stats-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.stat-item {
    background-color: rgba(57, 2, 2, 0.1);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}


@media (orientation: portrait) {
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-position: fixed;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        background-image: url('../assets/img/responsive-backgroun.jpg');
        background-size: cover;
        /* background-repeat: no-repeat; */
        color: #333;
    }
}