/* LigaDeAventureros
Copyright (C) 2023-2024 Santiago González Lago

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>. */

html, body {
    height: 100%;
    margin: 0;
}
  
body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    padding-top: 1em;
    padding-bottom: 1em;
}

.badge-player {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: .25rem;
    height: 3.5em;
    padding: 0.5em;
}

.badge-player a {
    color: inherit;
    text-decoration: none;
}

a.badge-player div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
}

.badge-player a:hover {
    text-decoration: underline;
}

.badge-player div:first-child {
    margin-bottom: 0.25em;
}

.badge-player.badge-me {
    border-radius: 0;
}
.badge-player.badge-me.btn-success:not(:hover, :focus) {
    border-color: #1b7a1b;
    background-color: #1b7a1b;
}
.badge-player.badge-me.btn-danger:not(:hover, :focus) {
    border-color: #7a1b1b;
    background-color: #7a1b1b;
}
.badge-player.badge-me.btn-warning:not(:hover, :focus) {
    border-color: #7a6b1b;
    background-color: #7a6b1b;
    color: white;
}

.card-join-session .card-footer {
    min-height: 4em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

select option:disabled {
    display: none;
}

.registered-players-block {
    max-height: 17.75em;
    overflow-y: auto;
    padding-top: 3px;
}

@media (min-width: 576px) {
    .border-join-session {
        border-right: 1px solid #dee2e6 !important;
    }
}

@media (max-width: 575px) {
    .border-join-session {
        border-bottom: 1px solid #dee2e6 !important;
    }
}

.badge-lg {
    font-size: 1em;
    padding: 0.5rem ;
    width: 4em;
}

.text-small {
    font-size: 0.6em;
}

footer {
    position: relative;
}

.links-container {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
}

.table-calendar th {
    padding: .5em;
}

.table-top-right {
    margin-top: -1em;
    margin-right: -0.5em;
}

.table-sessions {
    margin: auto -0.5em -0.5em;
    min-height: 5em;
}

.footer-links .separator {
    color: lightgray;
}

@media screen and (max-width: 720px) {
    .footer-links {
        text-align: center;
        margin-top: 10px;
    }

    .footer-links small {
        display: block;
        margin-bottom: 5px;
    }

    .footer-links .separator {
        display: none;
    }
}

.image-box {
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    height: 0;
}

.image-box.image-box-square, .image-box.image-box-circle {
    padding-bottom: 100%;
}

.image-box.image-box-circle img {
    border-radius: 50%
}
   
.image-box img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    object-position: center;
}

.modal-character-sheet {
    max-width: 100%;
    margin: 0;
    max-height: 100%;
    height: 100%;
}

.modal-character-sheet .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.modal-character-sheet .modal-body {
    padding:0;
    width: 100%;
    height: 100%;
}

.modal-character-sheet iframe {
    position: absolute; 
    width: 100%;
    height: 100%;
}

.character-description {
    padding: 1em;
    font-style: italic;
}

.character-description br {
    margin-bottom: 15px;
}

.character-image {
    width: 25%;
    float: right;
    margin-left: 2em;
}

@media screen and (max-width: 720px) {
    .character-image {
        width: 33%;
    }
}

.max-width {
    width: 100%;
}

.emoji {
    font-style: normal !important;
}

.character-image-profile {
    margin: -1rem;
    width: 25%;
    float: left;
    margin-right: 1em;
}

.row-character {
    padding: 0.25rem 0.75rem !important;
}

.row-character .flexbox {
    display: flex;
    align-items: center;
}

.character-image-all-characters {
    width: 2.5rem;
    margin-right: .5rem;
}

.card-session {
    background-size: cover;
    background-position: center;
}

.session-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.session-info {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 5px;
    width: 100%;
}

.day-row {
    background-size: cover;
    background-position: center;
}

.day-row-number {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    padding: 2px;
}

.buttons-ranks {
    display: flex;
}

.buttons-ranks button {
    flex: 1;
    margin-right: 0;
    background-color: white;
    border: 1px solid #007bff;
    color: #007bff;
    border-radius: 0;
}

@media screen and (max-width: 767px) {
    .buttons-ranks {
        margin-bottom: .5rem;
    }

    .buttons-ranks button {
        padding-top: .3rem;
        padding-bottom: .3rem;
    }
}

.buttons-ranks button + button {
    margin-left: -1px;
}

.buttons-ranks button.active {
    background-color: #007bff;
    color: white;
}

.buttons-ranks button:hover {
    background-color: #0056b3;
    color: white;
}

.character-card {
    border-radius: .75rem 0;
}

.character-card .card-header {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.badge-rank-4 {
    background: linear-gradient(to bottom right, #90AFC5, #52616B, #B24848);
    color: #FFFFFF;
}

.badge-rank-3 {
    background-color: #FFD700;
    color: #000000;
}

.badge-rank-2 {
    background-color: #C0C0C0;
    color: #000000;
}

.badge-rank-1 {
    background-color: #CD7F32;
    color: #000000;
}

.jumbotron {
    overflow: hidden;
    padding-top: 1em;
    padding-bottom: 1em;
    margin-bottom: 1rem;
}

.jumbotron-dark {
    background-color: #1A1A2E;
    color: white;
}

.jumbotron .text-accent {
    font-weight: bold;
    color: #3EC7E8;
}

.new-character-guide-section:not(:first-child) {
    margin-top: 2em;
}

.new-character-guide-section h2 {
    color: #1A1A2E;
}

.input-error {
    border: 2px solid red;
}

.menu-icon {
    min-width: 1em;
    margin-right: 0.5em;
}

.border-priority {
    border: 2px solid BLACK !important;
}

/* Contenedor principal - Sin fondo */
.buttons-wsetting-home {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Botones base */
.buttons-wsetting-home button {
    flex: 1;
    padding: 10px 0;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    color: #495057;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efecto hover */
.buttons-wsetting-home button:hover:not(.active) {
    transform: translateY(-3px);
    background: #f8f9fa;
    color: #212529;
    border-color: #dee2e6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Efecto activo (seleccionado) */
.buttons-wsetting-home button.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow:
        0 8px 25px rgba(106, 17, 203, 0.25),
        0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Efecto de onda al hacer clic */
.buttons-wsetting-home button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(106, 17, 203, 0.2);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
    z-index: -1;
}

.buttons-wsetting-home button:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

/* Efecto de borde sutil para estado activo */
.buttons-wsetting-home button.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.buttons-wsetting-home button.active:hover::before {
    opacity: 0.15;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

@media (min-width: 576px) {
  .dropdown-submenu > a.dropdown-toggle::after {
    transform: rotate(-90deg);
    margin-left: 0.5em;
  }
}