@import url('https://fonts.googleapis.com/css2?family=Jersey+15&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    font-family: "Jersey 15", sans-serif;
    font-weight: 300;
}

html, body {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

.main {
    background: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 50px;
    max-width: 1400px;
    width: 100%;
}

.main > div {
    flex-shrink: 0;
}

.left-section {
    flex: 1;
}

.right-section {
    width: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.header {
    margin-bottom: 30px;
}

h1 {
    text-align: center;
    color: rgb(41, 41, 41);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.users {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.character-card {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.character-card.attacker {
    border: 3px solid #000000;
}

.character-card.defender {
    border: 3px solid #a4a4a4;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.character-card.attacker h2 {
    color: black;
}

.character-card.defender h2 {
    color: #a4a4a4;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #4d4d4d;
    font-size: 1.5rem;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.3rem;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #000000;
}

select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.3rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

hr {
    margin: 20px 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

.button-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 20px;
}

button {
    padding: 12px 30px;
    font-size: 1.8rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: "Jersey 15", sans-serif;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

.btn-attack, .btn-attack2 {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    cursor: pointer !important;
}

.btn-invert, .btn-invert2 {
    background: linear-gradient(135deg, #383838 0%, #383838 100%);
    color: white;
    cursor: pointer !important;
}

.btn-reset {
    background: linear-gradient(135deg, #777777 0%, #777777 100%);
    color: white;
    cursor: pointer !important;
}

.battle-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.battle-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2rem;
}

.battle-log {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    min-height: 600px;
    max-height: 600px;
    overflow-y: auto;
    font-size: 1.5rem;
    color: #555;
}

.battle-log:empty::before {
    content: "Aguardando início da batalha...";
    color: #999;
    font-style: italic;
}

/* Scrollbar personalizada */
.battle-log::-webkit-scrollbar {
    width: 8px;
}

.battle-log::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.battle-log::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.battle-log::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* Estilos da seção de conversão */
.converter-section {
    background: #f7f7f7;
    border-radius: 15px;
    padding: 25px;
}

.converter-title {
    font-size: 1.8rem;
    color: #000000;
    text-align: center;
    margin-bottom: 15px;
}

.converter-description {
    font-size: 1.3rem;
    text-align: justify;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.converter-input-group {
    margin-bottom: 20px;
}

.converter-input-group label {
    font-size: 1.4rem;
    color: #4d4d4d;
    margin-bottom: 8px;
}

.converter-input-group input[type="number"] {
    font-size: 1.3rem;
}

.converter-distribution {
    margin-bottom: 25px;
}

.distribution-title {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.stat-distribution {
    margin-bottom: 20px;
}

.stat-label {
    font-size: 1.4rem;
    color: #4d4d4d;
    display: block;
    margin-bottom: 10px;
}

.radio-group {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.radio-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.radio-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.radio-option input[type="radio"] {
    margin-bottom: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option span {
    font-size: 1.3rem;
    color: #555;
    font-weight: 400;
}

.radio-option input[type="radio"]:checked + span {
    color: #667eea;
   
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

.converter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.converter-buttons button {
    flex: 1;
    font-size: 1.6rem;
}

.down-section {
    flex: 1;
    
    border: 2px solid rgb(248, 248, 248);
    border-radius: 20px;
    background: #f7f7f7;
    padding: 15px;
}
.down-section-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}
.down-sec-type {
    font-size: 2rem;
    font-weight: 100;
}
.down-sec-p {
    font-size: 1.1rem;
}
.down-section-main-chac {
    height: 400px;
    width: 220px;
    border: 3px solid rgba(0, 0, 0, 0.103);
    border-radius: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    transition: 200ms;
   
    background: white;
    margin-bottom: 20px;
}
.down-section-main-chac:hover {
    transform: translateY(-5px);
}

/* Visual selection state for character cards */
.down-section-main-chac.selected {
    border-color: #f1c40f;
    box-shadow: 0 8px 20px rgba(241, 196, 15, 0.2);
    transform: translateY(-8px);
}

.down-section-main-chac .assigned-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #2ecc71;
    color: white;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 1.4rem;
    font-weight: 100;
}

.down-section-main-chac.assigned-attacker .assigned-badge { background: black; }
.down-section-main-chac.assigned-defender .assigned-badge { background: #383838; }


/* Responsividade */
@media (max-width: 1200px) {
    .main {
        flex-direction: column;
        gap: 30px;
    }
    
    .right-section {
        width: 100%;
    }
    
    .users {
        flex-direction: column;
    }
    
    .character-card {
        max-width: 100%;
    }
}
.meuheader {
    background: rgb(0, 0, 0);
    border-radius: 10px;
    color: white;
    font-weight: 100;
    padding: 3px;
}

#pollic {
    position: fixed;
    width: 250px;
    height: 250px;
    bottom: -30px;
    left: -15px;
    transform: scaleX(-1);
    background-image: url("./assets/Pollic2.png");
    background-size: cover;
    image-rendering: pixelated;
}

#pollic:hover {
    background-image: url("./assets/Pollic1.png");
    animation: jump 0.35s ease-out;
}

#pollic::after {
    content: 'Isso é um sistema de um jogo meuu!';
    position: absolute;
    top: -30px;

    padding: 4px 8px;
    color: black;
    background: white;
    width: 200px;
    
    font-size: 1.5rem;
    border-radius: 5px;
    border: 2px solid black;

    opacity: 0;
    transform: scaleX(-1);
    transition: opacity 0.15s;
}

#pollic:hover::after {
    opacity: 1;
}

@keyframes jump {
    0%   { transform: scaleX(-1) translateY(0); }
    40%  { transform: scaleX(-1) translateY(-30px); }
    70%  { transform: scaleX(-1) translateY(-15px); }
    100% { transform: scaleX(-1) translateY(0); }
}
