@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background-color: #0F1923;
    color: #ECE8E1;
    font-family: 'Teko', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0; /* Reset browser default margin */
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

.valorant-font {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

header h1 {
    font-size: 4rem;
    font-weight: 700;
}

.text-danger {
    color: #FD4556 !important;
}

.map-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #ECE8E1;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden; /* for overlay and image zoom */
}

.map-card:hover {
    transform: scale(1.05);
    border-color: #FD4556;
}

.map-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.map-card:hover img {
    transform: scale(1.1);
}

.map-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 25, 35, 1), rgba(15, 25, 35, 0));
    color: #ECE8E1;
    padding: 20px 10px 10px;
    font-size: 1.8rem;
    text-align: center;
    text-transform: uppercase;
}

.ban-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 25, 35, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 700;
    color: #FD4556;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Make sure it doesn't block clicks */
}

.map-card.banned .ban-overlay {
    opacity: 1;
}

.map-card.banned img {
    filter: grayscale(100%);
}


.btn-danger {
    background-color: #FD4556;
    border-color: #FD4556;
    padding: 10px 30px;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #b72b3a;
    border-color: #b72b3a;
}

.btn-secondary {
    padding: 10px 30px;
    font-size: 1.5rem;
}

.btn-primary {
    padding: 10px 30px;
    font-size: 1.5rem;
}

.modal-content {
    background-color: #1a2838;
    border: 2px solid #FD4556;
}

.modal-header, .modal-footer {
    border-color: #FD4556;
}

.bo3-map-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 25, 35, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: #FD4556;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    line-height: 1.2;
}

.map-card.banned .bo3-map-status,
.map-card.picked .bo3-map-status {
    opacity: 1;
}

#bo3-results {
    background-color: rgba(26, 40, 56, 0.5);
    border: 1px solid #FD4556;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 20px auto 0;
}

#bo3-results p {
    margin: 5px 0;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.form-control {
    background-color: #1a2838;
    border: 1px solid #ECE8E1;
    color: #ECE8E1;
    text-align: center;
    font-size: 1.2rem;
}

.form-control:focus {
    background-color: #1a2838;
    border-color: #FD4556;
    color: #ECE8E1;
    box-shadow: 0 0 0 0.25rem rgba(253, 69, 86, 0.25);
}

.form-control::placeholder {
    color: #adb5bd;
}

.btn-outline-danger {
    border-color: #FD4556;
    color: #FD4556;
}

.btn-outline-danger:hover, .btn-outline-danger.active {
    background-color: #FD4556;
    color: #0F1923;
}

.btn-group .btn.active {
    background-color: #FD4556;
    color: #0F1923;
}

.rules-container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0,0,0,0.2);
    padding: 1rem 2rem;
    border-radius: 5px;
    border: 1px solid #333;
}

.rules-container ol {
    padding-left: 1.2rem;
    font-family: sans-serif; /* For better readability of Japanese text */
    font-size: 1rem;
}

.rules-container li {
    margin-bottom: 0.5rem;
}

/* --- Side Picker Styles --- */
#side-picker-animation {
    perspective: 1000px;
}

.result-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-height: 250px;
}

.vs-logo {
    font-size: 5rem;
    color: #FD4556;
    font-weight: 700;
}

.team-card-container {
    width: 200px;
    height: 150px;
}

.team-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.team-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 2rem;
    padding: 1rem;
    text-align: center;
}

.card-front {
    background-color: #1a2838;
    border: 2px solid #ECE8E1;
    color: #ECE8E1;
}

.card-back {
    background-color: #0F1923;
    border: 2px solid #FD4556;
    transform: rotateY(180deg);
    flex-direction: column;
}

.attack-side {
    color: #FD4556; /* Red for Attack */
}

.defense-side {
    color: #53aefc; /* Blue for Defense */
}

.team-a-assignment {
    color: #FD4556; /* Red for A */
}

.team-b-assignment {
    color: #FD4556; /* Red for B */
}

@keyframes selected-glow {
    0% {
        box-shadow: 0 0 10px rgba(253, 69, 86, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(253, 69, 86, 1);
    }
    100% {
        box-shadow: 0 0 10px rgba(253, 69, 86, 0.5);
    }
}

#result-map-image {
    transition: opacity 0.1s ease-in-out;
}

#result-map-image.selected {
    animation: selected-glow 1.5s infinite;
    border-radius: 8px; /* Add some rounding to make shadow look better */
} 