/* General reset for consistent styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1e88e5;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    width: 100%;
    flex-shrink: 0;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
}

/* Main content wrapper */
.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;     /* Center horizontally */
    justify-content: center; /* Center vertically */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Styled Match Selection Text */
.match-selection h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1e88e5;
    border-bottom: 2px solid #1e88e5;
    padding-bottom: 0.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Matches Section */
.matches {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

/* Match Box Styling */
.match-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.match-box:hover,
.match-box:focus,
.match-box.active {
    transform: scale(1.05);
    box-shadow: 0px 4px 12px rgba(30, 136, 229, 0.3);
    border-color: #1e88e5;
    background-color: rgba(30, 136, 229, 0.1);
}

.match-box h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    text-decoration: none;
}

.watch-live {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    color: white;
    background-color: #1e88e5;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.watch-live:hover,
.watch-live:focus {
    background-color: #1565c0;
}

/* Responsive Design */
@media (min-width: 700px) {
    .match-box {
        width: calc(50% - 1rem);
    }
}

@media (min-width: 1129px) {
    .match-box {
        width: calc(33.33% - 1rem);
    }
}

/* Footer Styling */
footer {
    background-color: #1e88e5;
    color: white;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    flex-shrink: 0;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}