/* games/170out/style.css - STYLES ONLY FOR 170 OUT GAME SCREEN */

/* Overriding container width for the 170out GAME (1215px container) */
.container.wide-game {
    max-width: 1215px;
}

.title-and-round-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-bottom: 10px;
}

.game-title {
    color: #B0E3FF;
    font-size: 2.2em;
    font-weight: 700;
    text-align: left;
    margin: 0;
}

#round-display {
    font-size: 1.8em;
    color: #B0E3FF;
    margin: 0;
    font-weight: 700;
    text-align: right;
    border-bottom: none;
    padding-bottom: 0;
}

.darts-input-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    padding: 10px 0 20px 0;
}

.dart-column {
  flex: 1;
  min-width: 100px;
  background-color: #1D2025;
  padding: 12px 12px 12px 12px;
  border-radius: 8px;
  text-align: center;
}

.dart-column h3 {
    font-size: 1.5em;
    color: #ffffff;
    margin: 10px 0 10px 0;
    font-weight: 600;
}

.dart-column p {
    margin-top: 0;
    margin-bottom: 20px;
}

.dart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 5px;
}

.dart-buttons button {
  width: 100%;
  height: 60px;
  padding: 15px 10px;
  margin: 0;
  font-size: 1.1em;
  border-radius: 6px;
  opacity: 1;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  font-weight: bold;
}

/* COLOR SCHEME FOR HIT/MISS */
.hit-btn {
    background-color: #24262B;
    color: white;
}
.hit-btn:hover {
    background-color: #022F07;
}
.hit-btn.active {
    background-color: #11671B;
}
.hit-btn.active:hover {
    background-color: #157D21;
}

.miss-btn {
    background-color: #24262B;
    color: white;
}
.miss-btn:hover {
    background-color: #3B0808;
}
.miss-btn.active {
    background-color: #750909;
}
.miss-btn.active:hover {
    background-color: #890E0E;
}

/* --- CONTROL BUTTON STYLES --- */
.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#register-round-btn {
    width: auto;
    height: 80px;
    margin: 10px auto 10px auto;
    font-size: 1.1em;
    background-color: #F2BA01;
    color: #212121;
    font-weight: bold;
    padding: 12px 30px;
    transition: background-color 0.2s;
}

#register-round-btn:hover {
    background-color: #FFCA1A;
    transform: none;
    box-shadow: none;
}

#undo-round-btn {
    background-color: transparent;
    border: none;
    color: #40495D;
    width: 100%;
    padding: 5px 0;
    font-size: 0.9em;
    font-weight: 400;
    text-decoration: none;
    max-width: 40%;
    margin: 0 auto;
    display: block;
}

#undo-round-btn:hover {
    background-color: transparent;
    color: #76c7c0;
    transform: none;
    box-shadow: none;
}

.info-block {
  background-color: #1D2025;
  padding: 15px 25px;
  border-radius: 8px;
  text-align: left;
  margin-top: 50px;
}
.info-block h4 {
    color: #B0E3FF;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
}
.info-block p {
    font-size: 0.9em;
    color: #ffffff;
}

@media (min-width: 601px) {
    .container.wide-game .game-controls {
        width: 100%;
        margin: 0;
        flex-direction: column;
        align-items: center;
    }

    #register-round-btn {
        width: calc((100% - 30px) / 3);
        max-width: none;
        margin: 10px 0;
    }

    #undo-round-btn {
        width: calc((100% - 30px) / 3);
        max-width: none;
        margin: 0;
    }
}


/* NEW: Full-screen modal for immediate round feedback (minimalist) */
.round-feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.3s ease-in-out;
    pointer-events: none;
    display: none;
}

.round-feedback-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.round-feedback-modal.show:not(.perfect-catch-bg) {
    background-color: rgba(15, 15, 15, 0.95);
    background-size: cover;
}

.round-feedback-modal.show.perfect-catch-bg {
    background-image: url("https://i.imgur.com/4mjMbqL.jpeg");
    background-size: cover;
}


.round-feedback-modal .feedback-content {
    text-align: center;
    padding: 0px;
    min-width: 300px;
    min-height: 100px;
}


.round-feedback-modal h2 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    border-bottom: none !important;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}


/* --- KLASY KOLORÓW DLA FEEDBACKU --- */
.round-feedback-modal h2.keep-throwing {
    color: #FFCA1A;
    background-color: transparent;
    padding: 0;
}

.round-feedback-modal h2.not-bad {
    color: #88DD00;
    background-color: transparent;
    padding: 0;
}

.round-feedback-modal h2.amazing {
    color: #00FF95;
    background-color: transparent;
    padding: 0;
}

.round-feedback-modal h2.perfect-catch {
    color: #212121;
    background-color: transparent;
    padding: 0;
}
