.watermark-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 500px;  
    opacity: 0.1;      
    z-index: 0;
    pointer-events: none;

}

.tag-button {
  background-color: pink;
  border-radius: 25px;
  width: 150px;
  height: 50px;
  font-size: 13px;
  font-weight: bold;
  font-style: italic;
  font-family: Arial, sans-serif;
  color: black;
  border: 2px solid black;
  cursor: pointer;
  transition: 0.1s;

  }

  .tag-button:active {
    transform: translateY(4px);
  
  }

  .green-button {
    background-color: lightgreen;
    

  }

  .red-button {
    background-color: lightcoral;
    
  }

  .grey-button {
    background-color: lightgrey;

  }
  .black-button {
    color: white;
    background-color: black;

  }

  .counter {
    display: block;
    font-size: 13px;
    margin-top: 5px;
  
  }

    .player-box {
    border: 4px solid black;
    border-radius: 20px;
    padding: 20px;
    background-color: white;
    width: 310px;
      
  }

.match-report-box {
    border: 4px solid black;
    border-radius: 20px;
    padding: 20px;
    background-color: white;
    width: 350px;
    margin-bottom: 0px;
  
}
  
.game-feed {
    border: 4px solid black;
    border-radius: 20px;
    padding: 20px;
    background-color: white;
    width: 597px;

    max-height: 605px;
    overflow-y: auto;
  
}

.shot-scored-event {
  background-color: #D8B4FE;
  color: black;

}

.shot-missed-event {
  background-color: #AEB6C2;
  color: black;
  
}

.attack-rebound-won-event {
  background-color: #D8B4FE;
  color: black;
  
  }

.attack-rebound-lost-event {
  background-color: #AEB6C2;
  color: black;
  
  }

.feed-success-event {
  background-color: #D8B4FE;
  color: black;
  
 }

.feed-missed-event {
  background-color: #AEB6C2;
  color: black;
  
}

.centre-success-event {
  background-color: #D8B4FE;
  color: black;
  
}

.centre-fail-event {
  background-color: #AEB6C2;
  color: black;
  
}

.turnover-event {
  background-color: #D8B4FE;
  color: black;
  
}

.unforced-error-event {
  background-color: #AEB6C2;
  color: black;
  
}

.defence-rebound-won-event {
  background-color: #D8B4FE;
  color: black;
  
}

.defence-rebound-lost-event {
  background-color: #AEB6C2;
  color: black;
  
}

.feed-success-event {
  background-color: #D8B4FE;
  color: black;
  
}

.oppo-score-event {
  background-color: #AEB6C2;
  color: black;
  
}

  .player-title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    font-family: arial, sans-serif;

  }

  .report-heading {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-top: 2px;
  margin-bottom: 4px;
}

   .container {
   display: flex;
   gap: 40px;
   align-items: flex-start;
  
  }

   .progress-bar {
   width: 350px;
   height: 20px;
   background-color: lightgray;
   border-radius: 10px;
   overflow: hidden;
   margin-top: 0px;
   margin-bottom: 30px;
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
     z-index: 1;
   border: 1px solid rgba(0,0,0,0.2);
     
 }

   .progress-fill {
   height: 100%;
   width: 0%;
 background-color: #A78BFA;
   transition: width 0.3s;

   position: absolute;
   left: 0;
   top: 0;
   z-index: 2;
     
 }

   .progress-text {
   position: center;

   font-size: 16px;
   font-weight: bold;

   z-index: 3;

    color: #111827;

  }

  .column {
    display: flex;
    width: auto;
    flex-direction: column;
    gap: 0px;

  }

   #start-match, #opposition-score-btn {
  vertical-align: top;
  }

  /* =========================
   iPAD LANDSCAPE
========================= */

@media screen and (max-width: 1200px) and (orientation: landscape) {

    /* MAIN THREE-COLUMN LAYOUT */
    .container {
        width: 100%;
        display: flex;
        gap: 12px;
        padding: 0 10px;
        box-sizing: border-box;
        align-items: flex-start;
    }

    /* ALLOW COLUMNS TO SHRINK */
    .container > .column {
        box-sizing: border-box;
        min-width: 0;
    }

    /* MATCH REPORT */
    .container > .column:nth-child(1) {
        flex: 0 0 29%;
    }

    /* GAME FEED */
    .container > .column:nth-child(2) {
        flex: 0 0 37%;
    }

    /* BUTTONS */
    .container > .column:nth-child(3) {
        flex: 0 0 32%;
    }

    /* BOXES FILL THEIR COLUMN */
    .match-report-box,
    .game-feed,
    .player-box {
        width: 100%;
        box-sizing: border-box;
    }

    /* PLAYER BOX */
    .player-box {
        padding: 12px;
    }

    /* MAIN TITLES */
    .player-title {
        font-size: clamp(20px, 3vw, 36px);
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
        margin-bottom: 10px;
    }

    /* REPORT HEADINGS */
    .report-heading {
        font-size: clamp(14px, 1.8vw, 22px);
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
    }

    /* =========================
       CROSSKEYS BUTTON BOX
    ========================= */

    .column .player-box:first-child {
        display: block;
    }

    /* TITLE MUST NOT BE PART OF BUTTON GRID */
    .column .player-box:first-child .player-title {
        display: block;
        width: 100%;
    }

    /* BUTTONS ONLY */
    .column .player-box:first-child .tag-button {
        display: inline-block;
        width: calc(50% - 5px);
        height: 46px;
        box-sizing: border-box;
        font-size: clamp(9px, 1.1vw, 13px);
        padding: 4px;
        vertical-align: top;
        margin-bottom: 8px;
    }

    /* REMOVE THE BR ELEMENTS */
    .column .player-box:first-child br {
        display: none;
    }

    /* COUNTERS */
    .counter {
        font-size: 12px;
        margin-top: 3px;
    }

    /* =========================
       BOTTOM CONTROL BOX
    ========================= */

    .column .player-box:last-child {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .column .player-box:last-child .tag-button {
        width: 100%;
        height: 46px;
        box-sizing: border-box;
        font-size: clamp(9px, 1.1vw, 13px);
        padding: 4px;
    }

    .column .player-box:last-child br {
        display: none;
    }

    /* PROGRESS BARS */
    .progress-bar {
        width: 100%;
        box-sizing: border-box;
    }
}

  /* =========================
   iPHONE PORTRAIT
========================= */

@media screen and (max-width: 600px) and (orientation: portrait) {

    /* MAIN PAGE */
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    /* =========================
       COLUMN ORDER
       
       1 = MATCH REPORT
       2 = TAGGING PANEL
       3 = GAME FEED
    ========================= */

    /* Match Report */
    .container > .column:nth-child(1) {
        order: 1;
        width: 100%;
    }

    /* Game Feed -> move to third */
    .container > .column:nth-child(2) {
        order: 3;
        width: 100%;
    }

    /* Tagging Panel -> move to second */
    .container > .column:nth-child(3) {
        order: 2;
        width: 100%;
    }


    /* =========================
       BOX WIDTHS
    ========================= */

    .match-report-box,
    .game-feed,
    .player-box {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }


    /* =========================
       MATCH REPORT
    ========================= */

    .match-report-box {
        padding: 12px;
    }

    .report-heading {
        font-size: 18px;
        line-height: 1.1;
        white-space: normal;
    }

    .progress-bar {
        width: 100%;
        height: 20px;
        margin-bottom: 18px;
    }


    /* =========================
       TAGGING PANEL
    ========================= */

    .player-box {
        padding: 12px;
    }

    .player-title {
        font-size: 28px;
        line-height: 1.1;
        margin-bottom: 12px;
        white-space: nowrap;
    }

    /* First player box = main tagging buttons */

    .column .player-box:first-child {
        display: block;
    }

    .column .player-box:first-child .player-title {
        display: block;
        width: 100%;
    }

    .column .player-box:first-child .tag-button {
        display: inline-block;
        width: calc(50% - 5px);
        height: 50px;
        box-sizing: border-box;
        font-size: 11px;
        padding: 4px;
        vertical-align: top;
        margin-bottom: 8px;
    }

    .column .player-box:first-child br {
        display: none;
    }

    .counter {
        font-size: 12px;
        margin-top: 3px;
    }


    /* =========================
       BOTTOM CONTROL BOX
    ========================= */

    .column .player-box:last-child {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .column .player-box:last-child .tag-button {
        width: 100%;
        height: 50px;
        box-sizing: border-box;
        font-size: 11px;
        padding: 4px;
    }

    .column .player-box:last-child br {
        display: none;
    }


    /* =========================
       GAME FEED
    ========================= */

    .game-feed {
        max-height: 450px;
        overflow-y: auto;
        padding: 12px;
    }
}

/* =========================
   LOGIN HOMEPAGE
========================= */

html:has(body.login-page) {
    margin: 0;
    padding: 0;
    background: black;
}

body.login-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw;
    min-height: 100vh;
    background: black !important;
    overflow: hidden;
}

.login-page .login-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-height: 0;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    
    box-sizing: border-box;
    padding-top: 17vh;
}

.login-page .login-logo {
    color: white !important;
    font-family: Arial, sans-serif !important;
    font-size: clamp(42px, 6vw, 78px) !important;
    font-weight: bold !important;
    font-style: italic !important;
    text-align: center;
    white-space: nowrap;
    margin: 0 0 45px 0;
    width: auto;
}

.login-page .login-form {
    width: 145px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.login-page .login-form input {
    width: 145px;
    height: 29px;
    box-sizing: border-box;
    margin: 0 0 13px 0;
    padding: 4px 8px;
    
    border: none;
    border-radius: 0;
    
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.login-page #login-button {
    width: 145px;
    height: 24px;
    
    box-sizing: border-box;
    padding: 0;
    
    border: none;
    border-radius: 0;
    
    background-color: #eeeeee;
    color: black;
    
    font-family: Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.login-page #login-button:active {
    transform: translateY(2px);
}

.login-page #login-error {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 11px;
    text-align: center;
    margin: 10px 0 0;
}