:root {
    --orange-main: #E18141;
    --text-color: #F9F7F4;
    --number-color: #F73147;
    --board-bg: #393A3F;
}

body {
    background-image: url("/images/crack-wall-bg.jpg");
    background-size: cover;

    margin: 0;
}

/* MAIN BOARD*/
#main-board {
    /* Board styling */
    width: 1000px;
    height: 700px;
    background-color: var(--orange-main);
    margin: 50px auto 0;
    padding: 20px;

    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/* TITLE STYLES */
#title-section {
    width: 100%;
    height: 25%;

    display: flex;
}

#teams {
    flex: 3; /* 75% of title-section (parent) space */
    
    /* Inner texts' styles */
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 70px;
}

.team-span {
    font-weight: bold;
}

#logo {
    flex: 1; /* 25% of title-section (parent) space */
    margin: 10px 20px;

    /* NBA logo */
    background-image: url("/images/nba_logo.webp");
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

/* SCORE SECTION STYLES */
#score-section {
    width: 100%;
    height: 75%;
    background-color: var(--board-bg);

    border: solid 3px var(--text-color);
    border-radius: 5px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 100px; /* Base font size for scaling */
}

.team-labels {
    color: var(--text-color);
    font-size: 0.9em; /* Scales with parent font-size */
}

.foul-label {
    color: var(--text-color);
    font-size: 0.7em; /* Scales with parent font-size */
    margin-top: 30px;
}

.period-label {
    color: var(--text-color);
    font-size: 0.6em;
    margin: 50px 0px 10px 0px; /* top right bottom left */
}

/* SCORE SECTION STYLES - HOME & GUEST's scores */
.lg-blk-box {
    width: 170px;
    height: 90px;
    font-size: 0.35em;
    color: var(--orange-main);

    background-color: black;
    font-weight: 400;
    border-radius: 10px;
}

/* SCORE SECTION STYLES - FOULS & PERIOD points */
.md-blk-box {
    width: 80px;
    height: 70px;
    font-size: 0.30em;
    color: var(--number-color);

    background-color: black;
    font-weight: 400;
    border-radius: 10px;
}

.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#timer-box {
    width: 230px; /* Fix timer box */
    height: 80px; /* Fix timer box */
    background-color: black;
    color: var(--number-color);
    font-size: 0.6em;
    font-weight: 800;

    border: solid 5px var(--text-color);
    border-radius: 5px;
}

.score-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 18px;
}


/* FONT CLASSES */
.audiowide-regular {
  font-family: "Audiowide", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.audiowide-light {
    font-family: "Audiowide", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.arial-regular {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
}

.orbitron-bold {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-style: normal;
}

.verdana-bold {
    font-family: 'Verdana', sans-serif;
    font-weight: 700;
    font-style: normal;
}

.verdana-regular {
    font-family: 'Verdana', sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* HIGHLIGHT LEADING TEAM */
.leading-team {
    border: 4px solid var(--number-color);
    border-radius: 8px;
    background-color: rgba(0,0,0,0.15);
    transition: border 0.2s;
    margin-bottom: 10px;
}

/* TIMER BUTTONS */
.timer-btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* SCORE BUTTONS UNDER SCORE ELEMENTS */
.score-btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 0 0;
}

.score-btn {
    background: black;
    color: var(--orange-main);
    border: none;
    border-radius: 5px;
    padding: 6px 16px;
    font-size: 0.25em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}

.score-btn:hover {
    background: var(--orange-main);
    color: #fff;
}

#start-btn, #reset-btn {
    padding: 10px 28px;
    font-size: 30px;
    border-radius: 6px;
    border: none;
    background-color: var(--board-bg);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

#start-btn:hover {
    background-color: var(--orange-main);
    color: #fff;
}

#reset-btn:hover {
    background-color: var(--number-color);
    color: #fff;
}

#home-score-el,
#guest-score-el,
#home-fouls-el,
#guest-fouls-el,
#period-el {
    user-select: none;
    -webkit-user-select: none; /* For Safari */
}
