html {
  font-size: 14px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.center-everything {
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
    text-align: center;
    align-self: center;
    justify-self: center;
    place-self: center;
}

.home-page-wrapper {
    height: 100vh;
    width: 100vw;
    align-content: center;
    align-items: center;
    justify-content: center;
    justify-items: center;
    text-align: center;
    background-image: url('/images/HomePageBackground.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: whitesmoke;
    text-shadow: 0 4px 16px rgba(100, 100, 100, .8);
}

/* Mobile viewport adjustments */
@media (max-width: 1080px) {
    .home-page-wrapper {
        /* Use JavaScript-calculated viewport height for perfect accuracy */
        height: calc(var(--vh, 1vh) * 100);
    }
}

.play-area {
    background-image: url('/images/wood.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 97vh;
    width: 98vw;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.play-row {
    display: flex;
    flex-direction: row;
    height: 13vh;
    width: 100%;
}

.player-field {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 90%;
    height: 49%;
}

.rotate-180 {
    transform: rotate(180deg);
}

.selected {
    box-shadow: 0 0 3rem rgba(0, 0, 255, 0.9);
}

.resting {
    opacity: 0.5;
    box-shadow: 0 0 3rem rgba(100, 100, 100, 0.9);
}

.player-hand-row {
    display: flex;
    flex-direction: row;
    height: 7vh;
    width: 100%;
}

.center {
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.deck {
    position: relative;
    display: inline-block;
    height: 100%;
    margin-right: 3rem;
}

.deck-count {
    position: absolute;
    top: 65%; /* Adjust as needed */
    left: 40%; /* Adjust as needed */
    color: aqua;
    font-weight: bold;
    font-size: 1.2em;
    z-index: 2;
    pointer-events: none; /* Optional: makes sure clicks go through to the image */
}

.purchase-row {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.purchase-pile{
    width: 35vw;
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
    text-align: center;
}

.enemy-hand {
    margin-right: 1%;
    height: 100%;
}

.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    height: 53%;
    overflow-y: auto;
    max-width: 95%;
    position: relative;
    background-image: url('/images/Stone.jpg');
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.player-gold {
    margin: 1rem;
    color: gold;
}

.player-health {
    color: green;
}

.card-popup {
    position: absolute;
    z-index: 1000;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
    white-space: pre-wrap;
    transition: opacity 0.2s ease-in-out;
}

.hidden {
    display: none;
}

.image-contain {
    background-size: cover;
    background-repeat: no-repeat;
    flex: 1;
    height: 100%;
    width: 100%;
}

.taunt-card {
    border: 6px solid red !important;
}

#instructions-modal .modal-body {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-shadow: 0 0 5px black;
    padding: 2rem;
    border-radius: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

#instructions-button {
    position: absolute;
    top: 30px;
    left: 30px;
}

/* Mobile adjustments for instructions button */
@media (max-width: 1080px) {
    #instructions-button {
        top: 80px;
        left: 50px;
    }
}