@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Science+Gothic:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tourney:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');@media (max-width: 768px) {

    #formulas {
        overflow-x: scroll;
    }
}




h1,
h2,
h3,
h4,
div,
td,
th,
tr {
    font-family: "Inter", sans-serif;
}



#sport-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    max-width: 90%;
    margin: auto;
    margin-top: 5%;
    margin-bottom: 10px;
    align-items: center;
}

#sport-selector>div {
    flex: 0 1 80px;
}

#sport-selector img {
    width: 100%;
    height: auto;
    display: block
}


.home-subtitle {
    color: white;
    margin: 2%;
    text-align: center
}
p{
    color:white;
    padding: 10px;
    font-size: 1.1rem;
    font-family: sans-serif;
    font-weight: 400;
    text-align: left;
    margin:2%;
}
.home-title {
    color: #8ea2fd;
    font-family: Tourney, sans-serif;
    margin: 2%;
    margin-top: 5%;
    text-align: center;
    font-size: 5vw;
}

.about-subtitle {
    color: #8ea2fd;
    font-family: Ubuntu, sans-serif;
    margin: 2%;
    text-align: left;
    font-size: 30px;
}

#sub-container {
    margin-bottom: 5%;
    border: #a4a3a3 solid 2px;
    max-width: 75%;
    margin: auto;
    margin-top: 1%;
    margin-bottom: 3%;
}
#ratings-container {
    margin-bottom: 5%;
    margin: auto;
    margin-top: 1%;
    margin-bottom: 3%;
}

#rank-table {
    margin-bottom: 5%;
}


#categories {
    margin:auto;
    justify-content: space-around;
    display:flex;
    width: 75%;
    background-color:#8ea2fd;

}

#categories > div{
    padding: 2%;
    text-align:center;
}

#categories > div > a{
    color:#232931;
    font-weight: 700;
    text-align:center;
}

#ticker {
    max-width: 75%;
    margin: auto;
}

#top-ratings {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#top-ratings>div {
    margin: 10px;
}

#top-ratings-mlb {
    color: white;
    border: #a7e7b1 4px solid;

}

#top-ratings-nba {
    color: white;
    border:rgb(255, 178, 143) 4px solid;
}

#top-ratings-nhl {
    color: white;
    border: rgb(189, 143, 255) 4px solid;
}

#top-ratings-nhl h3 {
    padding: 0px 10px 0px 10px;
}

#top-ratings-mlb h3 {
    padding: 0px 10px 0px 10px;
}

#top-ratings-nba h3 {
    padding: 0px 10px 0px 10px;
}


#top-ratings-mlb h2 {
    margin-top: 0;
    padding: 5px;
    text-align: center;
    color: black;
    /* background-color: #75F7CC; */
    /* background-color: #4ECCA3; */
    background-color: #a7e7b1;
}

#top-ratings-nba h2 {
    margin-top: 0;
    padding: 5px;
    text-align: center;
    color: black;
    background-color: rgb(255, 178, 143);
}

#top-ratings-nhl h2 {
    padding: 5px;
    margin-top: 0;
    text-align: center;
    color: black;
    background-color: rgb(189, 143, 255);
}

.top-ratings-class {
    /* max-width: 30%; */
    font-size: 80%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

html {
    background: #232931;
}

h3 {
    font-weight: 400
}

h2 {
    font-weight: 500;
}

.link{
    color:white;
}
.link:visited{
    color:white;
}

#graph-container {
    width: 75%;
    height: 600px; 
    margin: auto;
    background-color: white;
    /* background-color: #121212;  */
    /* border: 1px solid #333; */
}



#navbar {

    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #393E46;
    padding: 0rem 2rem;

}

#navbar > div{
    display:flex;
}

.nav-links:first-of-type {
    justify-content: flex-start;
    gap: 20px;
}

/* Center the logo container */
#navbar div:nth-child(2) {
    justify-content: center;
}

/* Align the right links to the end */
.nav-links:last-of-type {
    justify-content: flex-end;
    gap: 20px;
}

#gametime{
    color:white;
    text-align: center;
    margin:0;
    font-weight: 300;
}
#prediction-container{
    margin:auto;
    max-width: auto;
    width: 60%;
    border: #a4a3a3 solid 2px;
    padding:10px;
}
#prediction-container > h3{
    margin:0;
    color: white;
    margin-bottom: 15px;
    font-weight: 300
}

.game{
    text-align:center;
    margin-top: 2px;
    margin-bottom: 35px;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #8ea2fd;
    padding: 8px;
    font-family: "Tourney", sans-serif;
}

.nav-links a {
    color: #F1EFEC;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
}

.nav-links a:visited {
    color: #F1EFEC;

}

.nav-links{
    margin-right: 35px;
}


.nav-links a:hover {
    color: #aaa;
}


#githubLink a {
    color: #c5a7e7;
    text-decoration: none;
}


.mathEquations {
    margin: 5%;
}

.mathEquations {
    color: white;
    font-size: 1.4rem;

}

#githubLink a:visited {
    color: #c5a7e7;
    text-decoration: none;
}


/* 
a:visited {
    /* color: #c5a7e7; */
    /* text-decoration: none; */
/* } */

/* a { */
    /* color: #c5a7e7; */
    /* text-decoration: none; */

/* } */ 

#series {

    margin: auto;
    margin-top: 1%;
    display: flex;

    overflow-x: scroll;
    max-width: 90%;
    border-bottom: 2px solid #393E46;
    justify-content: center;

}

#series a {
    color: #F1EFEC;
    font-size: 0.7em;
    cursor: pointer;



}

.sport-option{
    width: 5vw;
    max-width: 80px;
    min-width: 30px;
}

.directory{
    color:white;
    margin-left: 2%;
    font-size: 1.2rem
}

h3 >a {
    color:#8ea2fd;
}

li >a {
    color:#8ea2fd;
}

p >a {
    color:#8ea2fd;
}

ul.directory ul.directory {
    list-style-type: none;
}
ul.directory ul.directory li::before{
    content: "↳ ";
    /* display:inline-block; */
}

.ratings-page-container>h3{
    color:white;
    padding:1%;
    margin:0;
    margin-left: 30px;
}
#series h2 {
    padding-right: 10%;
    padding-left: 10%
}

#year {

    margin: auto;
    margin-top: 1%;
    display: flex;

    overflow-x: scroll;
    max-width: 90%;
    border-bottom: 2px solid #393E46;
    padding: 5px;

}

#year a {
    color: white;
    font-size: 0.7em;
    cursor: pointer;


}


#year h2 {
    padding-right: 10%;
    padding-left: 10%;
    margin: 0.5%;


}


#races {
    margin: auto;
    margin-top: auto;
    margin-top: 1%;
    display: flex;
    max-width: 75%;
    overflow-x: scroll;
    white-space: nowrap;
    padding-bottom: 10px;
    padding-top: 10px;
    max-width: 90%;

}

#races a {
    color: #F1EFEC;
    font-size: 0.7em;
    cursor: pointer;



}


#races h2 {
    padding-right: 10%;
    padding-left: 10%;

    margin: 0.5%;


}

thead{
    background-color: rgba(0,0,0,0.3);
}


#data-table {
    /* border: #a4a3a3 2px solid; */
    border-radius: 6px;
    margin: auto;
    width: 70%;




}
.click-pointer{
    cursor: pointer;
}

#data-table td{
    font-family: "Roboto Mono", monospace;
    font-weight: 500;
    color: rgb(255, 178, 143);

}

#data-table th {
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #303741;
    color: #F1EFEC;

}

/* #data-table tr:nth-child(even) {
    background-color: #111010;
}

#data-table tr:nth-child(odd) {
    background-color: #111213;
} */

#data-table th,
tr,
td,
table,
tbody {
    border-collapse: collapse;
    padding: 5px;
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
}

#data-table tr:hover {
    background-color: #1C1F24;

}





#data-table thead th {
    cursor: pointer;


}


.red {
    color: #FF6B6B;
}

.green {
    color: #4ECCA3;
}

#race-title {
    color: #F1EFEC;
    text-align: center;
}

math {
    margin: auto;
}



#options ul li {
    list-style-type: none;
    /* display:inline-block; */
    margin: 1%;
    padding: 10px;
    color: #F1EFEC;

    border: 2px #393E46 solid;


}

#options ul {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0px;
}


#division-select {
    display: flex;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

#division-select a {
    margin: 0px 25px 25px 25px;
    padding: 10px;
    border: #a4a3a3 2px solid;
    
}

.division-option {
    color: #F1EFEC;
    text-decoration: none;
}

.division-option:visited {
    color: #F1EFEC;
}


#predictions {
    margin: 5%;
}

#predictions h4 {
    padding: 0;
    margin: 0;
    color: #F1EFEC;
    font-weight: lighter;
}

#predictions h3 {
    padding: 0;
    margin: 0;
    margin-bottom: 15px;
    color: #F1EFEC;
}

#hometeam {
    text-decoration: wavy;
}
.home-link-nav{
    display:none;
}

@media(max-width: 480px ){
    .home-title{
        font-size:30px;
        margin-bottom: 15px;
    }
    .nav-links{
        flex-wrap:wrap;
        justify-content: center;
        margin-right:0;
    }
    .home-link-nav{
        display:inline;
    }
    .nav-links>a{
        margin-left:0;
    }

    #categories{
        margin-top:15px;
        flex-direction:column;
        margin-bottom:15px;
    }

    #sport-selector > div{
        flex: 0 1 50px;
        margin-bottom: 15px;
    }
    /* #top-ratings{
        display:none;
    } */
    #sub-container{
        margin-top:30px;
    }
    #navbar{
        justify-content: center;
        padding: 10px;
    }
    .logo{
        display:none;
        margin:0;
        padding:0;

    }
    .about-link-nav{
        display:none;
    }

}