/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #283E51, #4B79A1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.matches-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 40px;
    text-align: center;
}

.vector-1, .vector-2 {
    position: absolute;
    width: 45px;
    height: 45px;
}

.vector-1 {
    top: 20px;
    left: 20px;
}

.vector-2 {
    top: 20px;
    right: 20px;
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #34495E;
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.search-box {
    width: 100%;
    max-width: 30%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    text-align: center;
}

.filter-btn {
    padding: 15px 30px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background-color: #2ecc71;
}

.matches-list-container {
    width: 100%;
    margin-top: 30px;
}

.matches-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #34495E;
}

.match-header-name, .match-header-tournament, .match-header-round {
    width: 30%;
    text-align: center;
}

.matches-list {
    max-height: 400px;
    overflow-y: auto;
}

.match-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2C3E50;
    transition: background-color 0.3s ease;
}

.match-item:hover {
    background-color: #f0f0f0;
}

.match-item:nth-child(even) {
    background: #ecf0f1;
}

.match-item:nth-child(odd) {
    background: #ffffff;
}

.match-name, .match-tournament, .match-round {
    width: 30%;
    text-align: center;
}

.match-name a {
    text-decoration: none;
    color: #2C3E50;
    transition: color 0.3s;
}

.match-name a:hover {
    color: #8E2DE2;
}

/* Media Queries for Tablet and Mobile */
@media (max-width: 768px) {
    .search-box {
        max-width: 100%;
    }

    .matches-header, .match-item {
        flex-direction: column;
        align-items: center;
    }

    .match-header-name, .match-header-tournament, .match-header-round,
    .match-name, .match-tournament, .match-round {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .matches-container {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .filter-form {
        flex-direction: column;
    }

    .vector-1, .vector-2 {
        width: 35px;
        height: 35px;
    }
}
