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

body {
    color: rgb(0, 0, 0);
    font-size: 14px;
    font-weight: 400;
    background-color: rgb(255, 255, 255);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', 'sans-serif';
}

@keyframes fadeIn {
    /* 0% { opacity: 0; }
    100% { opacity: 1; } */
    0% { left: 0; }
    100% { left: 100%; }
  }

#header-wrapper {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 999;
    background-color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    box-shadow: 0 5px 10px rgba(4, 4, 4, 0.2);
}

#header-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    font-size: 20px;
    padding-left: 5px;
    color: black;
}

.header-link {
    padding: 10px 0px 10px 0px;
    font-size: 15px;
    font-weight: 800;
    margin-right: 40px;
    cursor: pointer;
}

#season-2022-23 {
    border-bottom: 3px solid rgb(0,0,0);
    margin-bottom: -3px;
}

.header-link-text{
    text-decoration: none;
}

#home-link {
    margin-right: 50px;
}

#content {
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 800px;
    padding: 10px 10px;
}

.table-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin-bottom: 25px;
}

.table-container {
    width: 100%;
}

.table-caption-section {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 10px;
    text-overflow: wrap;
    font-size: 14px;
    line-height: 18px;
    text-align: left;
    width: 100%;
    border-bottom: 2px solid rgb(151, 151, 151);
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}

.table-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 30px;
    /* border-bottom: 2px solid rgb(151, 151, 151); */
    /* padding: 5px 0px; */
    vertical-align: middle;
}

.table-season-title {
    font-size: 18px;
    color: rgb(152, 152, 152);
    vertical-align: middle;
    font-weight: 300;
}

.table-blurb {
    padding-top: 10px;
    text-align: left;
}

.table {
    border-collapse: collapse;
    box-shadow: 0 5px 10px rgb(200, 200, 200);
    background-color: rgb(255, 255, 255);
    text-align: center;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    width: 100%;
}

.chart-section {
    margin-bottom: 50px;
    width: 100%;
}


th {
    padding: 8px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

th.with-border {
    border-right: 1px solid rgb(200, 200, 200);
}

tr {
    border: 1px solid rgb(200, 200, 200);
}

td {
    border-right: 1px solid rgb(200, 200, 200);
    padding: 4px 10px;
}

td.left {
    text-align: left;
}

td.center {
    text-align: center;
}

td.right {
    text-align: right;
}

td.with-bar {
    padding: 4px 4px;
}

.sorted {
    background-color: rgba(224, 231, 241, 0.4);
}

tr:nth-child(even) {
    background-color: rgba(241, 240, 247, 0.5);
}

.table-icon {
    height: 24px;
    width: 24px;
    margin-top: 5px;
    margin-left: 10px;
}

.horizontal-bar-col {
    width: 80px;
}

.horizontal-bar {
    height: 20px;
    background-color: rgb(188, 166, 213);
    border-radius: 3px;
    animation: fadeIn 2s;
}

.sort-col {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: rgba(224, 231, 241, 0.4)
}

.sort-icon {
    margin-left: 8px;
    padding-right: 0px;
    cursor: pointer;
}

#home-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-short-name {
    visibility: hidden;
    height: 0px;
    width: 0px;
}

.team-full-name {
    visibility: visible;
}

a {
    color: rgb(0, 0, 0);
}

#intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 45px;
    padding-top: 35px;
    padding-bottom: 35px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    background-image: linear-gradient(rgb(202, 188, 218), rgb(231, 224, 238));
}

#intro-text-container {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#intro-blurb {
    font-size: 50px;
    line-height: 55px;
    font-weight: 800;
    text-align: left;
    color: rgb(40, 17, 64);
    padding-bottom: 10px;
    text-align: center; 
}

#intro-blurb-subtitle {
    font-size: 18px;
    font-weight: 200px;
    line-height: 22px;
    text-align: center;
    padding-left: 35px;
    padding-right: 35px;
    color: rgb(0, 0, 0);
    max-width: 800px;
}

#season-dropdown-container {
    align-self: flex-start;
    width: 125px;
    margin-top: 10px;
    user-select: none;
}

.dropdown {
    position: relative;
    width: 125px;
}

.dropdown * {
    box-sizing: border-box
}

.select {
    background-color: rgb(245, 245, 245);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid rgb(200, 200, 200);
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.select-clicked {
    box-shadow: 0 0 5px 0 rgba(0,0,0,0.5);
}

.select:hover {
    background-color: rgb(255, 255, 255);
}

.caret {
    width: 0px;
    height: 0px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgb(0, 0, 0);
    transition: 0.3s;
}

.caret-rotate {
    transform: rotate(180deg);
}

.menu {
    list-style: none;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 5px 0 rgba(0,0,0,0.5);
    border-radius: 5px;
    position: absolute;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    opacity: 0;
    display: none;
    transition: 0.2s;
    z-index: 1;
}

.menu li {
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.menu li:hover {
    background-color: rgb(235, 231, 240);
}

.active {
    background-color: rgb(245, 245, 245);
}

.menu-open {
    display: block;
    opacity: 1;
}

#home-footer {
    padding-top: 100px;
    padding-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#footer-text {
    text-align: center;
}

.icon-col {
    width: 5%;
}

.team-col {
    width: 25%;
}

.games-col,
.in-favor-col,
.against-col,
.pct-in-favor-col {
    width: 14%;
}

.bar-col {
    width: 16%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 5px);
    background: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 3px;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
    pointer-events: none;
}

.dropdown.active > .header-link + .dropdown-menu{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#faq-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.question-answer {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
    line-height: 18px;
}

.question {
    font-weight: 800;
    padding-bottom: 5px;
}

@media screen and (max-width: 480px) {
    .team-full-name {
        visibility: hidden;
        width: 0px;
        height: 0px;
    }

    .team-short-name {
        visibility: visible;
        height: 100%;
        width: 100%;
    }

    .table {
        font-size: 12px;
    }

    .table-icon {
        height: 20px;
        width: 20px;
        margin-top: 5px;
        margin-left: 10px;
    }

    th {
        letter-spacing: 0px;
        font-size: 10px;
        padding: 5px 6px;
    }

    .icon-col {
        width: 5%;
    }
    
    .team-col {
        width: 10%;
    }
    
    .games-col,
    .in-favor-col,
    .against-col,
    .pct-in-favor-col {
        width: 14%;
    }
    
    .bar-col {
        width: 51%;
    }

    #intro-section {
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    #intro-blurb {
        font-size: 30px;
        line-height: 35px;
    }
    
    #intro-blurb-subtitle {
        font-size: 14px;
        line-height: 18px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .table-title {
        font-size: 20px;
        line-height: 24px;
    }

    .table-season-title {
        font-size: 14px;
    }
}