body { background-color: #121212; /* Dark background color */ font-family: Arial, sans-serif; /* Use a common sans-serif font */ color: #fff; /* White text color */ } h1 { text-align: center; margin-top: 15px; margin-bottom: 25px; color: #f2f2f2; /* Lighten the text color */ } .scoreboard { display: flex; flex-wrap: wrap; justify-content: space-around; margin-top: 20px; } .game-box { background-color: #333; /* Dark background color for game boxes */ border-radius: 12px; /* Rounded corners */ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */ padding: 1%; margin-bottom: 1%; margin-top: 1%; margin-left: 1.4%; margin-right: 1.4%; width: 15.2%; position: relative; /* Position relative for absolute positioning */ } .team-info { display: flex; align-items: center; margin-bottom: 7px; margin-top: 25px; /* Added margin-top */ } .team-info-column { display: flex; flex-direction: column; } .team-logo { width: 50px; height: auto; margin-right: 10px; } .team-name { font-size: 18px; font-weight: bold; } .team-score { font-size: 25px; font-weight: bold; margin-left: auto; } .team-record { font-size: 12px; margin-left: auto; font-weight: bold; } .team-sog { font-size: 12px; /* Adjust font size as needed */ color: #ddd; /* Lighter text color */ } .team-power-play { font-size: 12px; /* Adjust font size as needed */ color: red; /* Set color to red */ margin-left: 10px; /* Add some margin for spacing */ } .game-info { margin-top: 12px; color: #aaa; /* Lighten the text color */ text-align: center; font-size: 14px; } .game-info strong { margin-right: 5px; } .live-dot { position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; background-color: red; border-radius: 50%; } .pre-state { position: absolute; top: 10px; left: 10px; /* Adjusted left position */ background-color: #444; /* Darker background color for pre state */ padding: 5px; border-radius: 5px; font-size: 12px; color: #fff; /* White text color for live state */ font-weight: bolder; /* Bold text for live state */ z-index: 1; /* Ensure the live state box is above other content */ } .final-state { position: absolute; top: 10px; left: 10px; /* Adjusted left position */ background-color: #444; /* Darker background color for final state */ padding: 5px; border-radius: 5px; font-size: 12px; color: #ddd; /* Lighter text color for final state */ z-index: 1; /* Ensure the final state box is above other content */ font-weight: bold; } .live-state { position: absolute; top: 10px; left: 10px; /* Adjusted left position */ background-color: #0b6e31; /* Darker green background color for live state */ padding: 5px; border-radius: 5px; font-size: 12px; color: #fff; /* White text color for live state */ font-weight: bolder; /* Bold text for live state */ z-index: 1; /* Ensure the live state box is above other content */ width: 18px; } .live-state-intermission { position: absolute; top: 10px; left: 10px; /* Adjusted left position */ background-color: #444; /* Darker green background color for live state */ padding: 5px; border-radius: 5px; font-size: 12px; color: #fff; /* White text color for live state */ font-weight: bolder; /* Bold text for live state */ z-index: 1; /* Ensure the live state box is above other content */ width: 40px; } .live-time { position: absolute; top: 10px; left: 45px; /* Adjusted left position */ background-color: #444; /* Darker background color for time box */ padding: 5px; border-radius: 5px; font-size: 12px; color: #ddd; /* Lighter text color for time box */ z-index: 1; /* Ensure the time box is above other content */ width: 30px; display: flex; /* Use flexbox */ justify-content: space-evenly; /* Center content horizontally */ align-items: center; /* Center content vertically */ } .live-time-intermission { position: absolute; top: 10px; left: 65px; /* Adjusted left position */ background-color: #444; /* Darker background color for time box */ padding: 5px; border-radius: 5px; font-size: 12px; color: #ddd; /* Lighter text color for time box */ z-index: 1; /* Ensure the time box is above other content */ width: 30px; display: flex; /* Use flexbox */ justify-content: space-evenly; /* Center content horizontally */ align-items: center; /* Center content vertically */ } #live-games-section { display: flex; align-items: start; flex-wrap: wrap; justify-content: flex-start; } #pre-games-section { display: flex; align-items: start; flex-wrap: wrap; justify-content: flex-start; } #final-games-section { display: flex; align-items: start; flex-wrap: wrap; justify-content: flex-start; } /* Existing CSS styles */ /* Add media query for smaller screens */ @media only screen and (max-width: 768px) { .scoreboard { flex-direction: column; /* Change direction to column for smaller screens */ align-items: center; /* Center align items */ } .game-box { width: 90%; /* Adjust width for better fit on smaller screens */ margin-left: 1.5%; margin-right: 1.5%; margin-top: 2.5%; margin-bottom: 2.5%; padding: 4%; } .team-info { align-items: center; /* Center align items */ margin-top: 26px; /* Adjust top margin */ margin-bottom: 5px; /* Adjust bottom margin */ } .team-logo { width: 36px; /* Adjust logo size */ height: 36px; } .team-name { font-size: 16px; /* Decrease font size for better readability */ font-weight: bold; } .team-score { font-size: 24px; /* Decrease font size for better readability */ font-weight: bold; } .game-info { font-size: 12px; /* Decrease font size for better readability */ } .live-state, .live-time, .pre-state, .final-state { font-size: 12px; /* Decrease font size for better readability */ } }