/* Custom CSS that builds on your existing design */

body {
    font-family: 'Lato', sans-serif;
    background-color: #f8f9fa;
}

h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.25rem;
}

/* Make buttons match your current design */
.btn-danger {
    background-color: #D91D25;
    border-color: #D91D25;
}

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

/* Bingo title styling */
.letter {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
    background-color: #D91D25;
    border-radius: 0.375rem;
}

/* Bingo card styling - keep your existing layout */
.bingo-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.bingo-cell {
    aspect-ratio: 1;
    background-color: white;
    border: 2px solid #7D7D7D;
    border-radius: 0.375rem;
    display: flex;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.bingo-cell.marked {
    background-color: #D91D25;
    color: white;
    transform: scale(0.98);
}

.bingo-cell.free {
    background-color: #f8f9fa;
    border: 2px dashed #D91D25;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ballot-icon {
    font-size: 2rem;
    color: #D91D25;
    margin-bottom: 0.25rem;
}

.free-text {
    font-weight: bold;
    color: #D91D25;
}

/* Winner modal styling */
.modal-header {
    border-bottom: 0;
}

.modal-footer {
    border-top: 0;
}

/* Add these styles to your bootstrap-styles.css file */

/* Results grid styling */
.results-grid {
    line-height: 1.3;
    letter-spacing: 0.2em;
    font-family: monospace;
    max-width: 300px;
    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Events list styling */
.events-list .list-group-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Copy results button styling */
#copyResults:focus {
    box-shadow: none;
}

#copyResults.btn-success {
    background-color: #008A17;
    border-color: #008A17;
}

/* Make the emoji grid look even better on mobile */
@media (max-width: 576px) {
    .results-grid {
        font-size: 1.2rem !important;
        letter-spacing: 0.1em;
        padding: 0.5rem;
    }
}

@media (max-width: 760px) {
    
    /* Smaller BINGO header letters */
    .letter {
      font-size: 1.2rem;
      height: 35px;
    }
    
    /* Smaller bingo cell text */
    .bingo-cell {
      font-size: 0.65rem;
      padding: 3px;
    }
    
    /* Adjust free space */
    .ballot-icon {
      font-size: 1.3rem;
    }
    
    .free-text {
      font-size: 0.7rem;
    }
    
    /* Smaller gap between cells */
    .bingo-card {
      gap: 4px;
    }

  }

  @media (max-width: 525px) {
    
    /* Smaller BINGO header letters */
    .letter {
      font-size: 1.0rem;
      height: 30px;
    }
    
    /* Smaller bingo cell text */
    .bingo-cell {
      font-size: 0.5rem;
      padding: 3px;
    }
    
    /* Adjust free space */
    .ballot-icon {
      font-size: 1.3rem;
    }
    
    .free-text {
      font-size: 0.7rem;
    }
    
    /* Smaller gap between cells */
    .bingo-card {
      gap: 2px;
    }

  }

  /* Add these styles to your bootstrap-styles.css file */

/* Results grid styling */
.results-grid {
    line-height: 1.5;
    letter-spacing: 0.2em;
    font-family: monospace;
    max-width: 300px;
    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Hidden textarea for clipboard operations */
#resultContent {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

/* Events list styling */
.events-list .list-group-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Copy results button styling */
#copyResults:focus {
    box-shadow: none;
}

#copyResults.btn-success {
    background-color: #008A17;
    border-color: #008A17;
}

/* Make the emoji grid look even better on mobile */
@media (max-width: 576px) {
    .results-grid {
        font-size: 1.2rem !important;
        letter-spacing: 0.1em;
        padding: 0.5rem;
    }
}