@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: url(stadium.jpg) no-repeat center/cover;
    height: 100vh;
}

#main-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    color: #fff;
}

#main-header h1 {
    font-size: 40px;
    font-weight: bolder;
    color: #fff;
}

#form-wrapper {
    max-width: 400px;
    margin:0 auto 20px;
}

#error-message {
    text-align: center;
    padding: 10px;
    margin-bottom: 30px;
    background-color: #f50b0b;
    color: #fff;
    display: none;
}

#league {
    margin-bottom: 20px;
}

select,
input {
    border: 0;
    outline: 0;
    padding: 10px;
    margin-bottom: 20px;
    width: 100%;
    border-radius: 5px;
}

#btn {
    cursor: pointer;
    border: 0;
    outline: 0;
    padding: 10px;
    background-color: #2119e9;
    color: #fff;
    border-radius: 5px;
}

#btn:focus {
    transform: scale(.97);
}

#standings {
    background-color: rgba(0, 0, 0, .9);
    position: absolute;
    top: 0%;
    left: 0;
    height: 100vh;
    width: 100vw;
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 10;
}

#standings-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

table {
    transition: fadeIn 2s ease-in-out;
}

#standings-title {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

#standings-title p {
    font-size: 29px;
    font-weight: bold;
    color: #fff;
}

#standings-title p:first-child {
    margin-right: 30px;
}

table {
    border-collapse: collapse;
    box-shadow: 1px 3px 4px 4px rgba(0, 0, 0, 0.2);
}

tbody tr:nth-child(odd) {
    background-color: rgb(157, 158, 158);
}

tbody tr:nth-child(even) {
    background-color: rgb(213, 214, 214);
}

thead tr {
    background-color: #2119e9;
    color: #fff;
}

tr th:first-child {
    text-align: left;
}

th,
td {
    padding: 4px;
}

.team td:first-child {
    display: flex;
}

.position,
.logo {
    margin-right: 5px;
}

.logo {
    height: 18px;
    width: 18px;
    border-radius: 50%;
}

@media (max-width: 500px) {
    #main-header h1 {
        font-size: 20px;
    }

    #form-wrapper {
        margin-bottom: 50px;
    }

    #form-wrapper,
    #standings-wrapper {
        padding: 0 10px;
    }

    #standings-title p {
        font-size: 17px
    }

    .not-in-mobile {
        display: none;
    }
}