html, 
body, 
#background { 
width: 100vw;
min-height: 100vh;
background-color: light-dark(#E9F2FC, #04121D);
}

div.row{
    margin-bottom: 0px;
}

.primaryLeague {
    background-color: #705bd7;
    border-color: #705bd7;
    border-radius: .25rem;
    color: #fff;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding-block: 1px;
    padding-inline: 6px;
    width: 100%;
    margin-bottom: 1rem;
    margin: 0;
    overflow: visible;
    font-family: inherit;
    text-transform: none;
    display: inline-block;
}

.primaryLeague:hover {
    color: #fff;
    background-color: #816fdc;
    border-color: #816fdc;
}

.header img {
    float: left;
    border-radius: 100%; 
    width: 50px; 
    height: 50px;
    }
    
.header h2 {
    position: relative;
    left: 15px;
    top: 3px;
}

.header h4 {
    position: relative;
    left: 15px;
    top: 9px;
}

#img {
    border-radius: 100%;
    width: 75px; 
    height: 75px;
}

#msg {
    border: 2px solid;
    border-color: #015887;
    background-color: #029AE8;
    color: #E0E3E7;
}

#title {
    grid-template-columns: 6fr 1fr;
}

#headFull {
    display: block;
}

#headSmall {
    display: none;
}

#subheading {
    display: block;
}

#icon:hover {
    color: light-dark(#4D535E, #C2C7D0);
    cursor: pointer;
}

#box{
    border-style: none solid none solid; 
    border-width: 8px; 
    border-color: light-dark(#033452, #017FC0);  
    border-radius: 20px;          
    padding: 40px;
    background-color: light-dark(#9BCCFD, #1c212c);
}

#leagueBox{
    border-style: none solid none solid; 
    border-width: 8px; 
    border-color: light-dark( #321856, #7540BF);  
    border-radius: 20px;          
    padding: 40px;
    background-color: light-dark(#cac2f0,  #1c212c);
}

#tournGrid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: row
}

#filterGrid {
    grid-template-columns: repeat(4, 2fr) repeat(2, 1fr);
    grid-auto-flow: row
}

#tournOptions {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    margin-top: 5px;
}

#tournPage {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    grid-template-rows: auto;
}

#scoreTable {
    grid-template-columns: 5fr 6fr;
    grid-auto-flow: row;
}

#first-child {
    grid-column: span 1;
    grid-row: span 2;
    border-style: none solid none solid; 
    border-width: 8px; 
    border-color: light-dark(#033452, #017FC0);  
    border-radius: 20px;          
    padding: 40px;
    background-color: light-dark(#9BCCFD, #1c212c);
}

#leagueFirstChild {
    grid-column: span 1;
    grid-row: span 2;
    border-style: none solid none solid; 
    border-width: 8px; 
    border-color: light-dark(#321856, #7540BF);  
    border-radius: 20px;          
    padding: 40px;
    background-color: light-dark(#cac2f0, #1c212c);
}

#School{
    border-style: solid; 
    border-width: 1px; 
    border-color: light-dark(#7569DA, #B0A3E8);  
    border-radius: 10px;          
    padding: 8px;
    background-color: light-dark(#B0A3E8, #7569DA);
}

#Club{
    border-style: solid; 
    border-width: 1px; 
    border-color: light-dark(#017FC0, #51B4FF);  
    border-radius: 10px;          
    padding: 8px;
    background-color: light-dark(#51B4FF, #017FC0);
}

#Social{
    border-style: solid; 
    border-width: 1px; 
    border-color: light-dark(#3C71F7, #9CA7FA);  
    border-radius: 10px;          
    padding: 8px;
    background-color: light-dark(#9CA7FA, #3C71F7);
}

#County{
    border-style: solid; 
    border-width: 1px; 
    border-color: light-dark(#9062CA, #BD9FDF);  
    border-radius: 10px;          
    padding: 8px;
    background-color: light-dark(#BD9FDF, #9062CA);
}

.timing-new {
    width: 50px;
}

#btn{
    color: light-dark(#373C44, #E0E3E7);
    border-radius: 10px;          
    padding: 8px;
    background-color: light-dark(#E0E3E7, #181C25);
}

#btn:hover {
    background-color: light-dark(#C2C7D0, #2A3140);
    color: light-dark(#202632, #C2C7D0);
    border-color: light-dark(#202632, #C2C7D0);
}
    
nav.container {
    background-color: var(--background-color);
    align-items: center;
}

nav :is(.menu-btn, .menu-icon) {
    display: none;
    cursor: pointer;
    user-select: none;
}

@media (width < 50em) {
    nav.container {
        flex-wrap: wrap;
        overflow: hidden;
        & .menu-icon {
            display:block;
        }
        & >ul.menu {
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-height: 0;
            transition: max-height 0.5s ease-out;
        }
    & .menu-btn:checked ~ .menu {
        max-height: 100vh;
    }
    }
    
    #img {
        border-radius: 100%;
        width: 40px; 
        height: 40px;
    }
    
    #title {
        grid-template-columns: 2fr 1fr 2fr;
    }

    #headFull {
        display: none;
    }
    
    #headSmall {
        display: block;
    }

    #subheading {
        display: none;
    }

    #tournGrid {
        display: grid;
        grid-template-columns: 1fr;
        grid-column-gap: 0px;
        grid-row-gap: 25px;
    }

    #filterGrid {
        display: grid;
        grid-template-columns: 1fr;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    #tournPage {
        display: grid;
        grid-template-columns: 1fr;
        grid-column-gap: 0px;
        grid-row-gap: 25px;
    }

    #scoreTable {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: auto;
    }

    #box{
        border-style: none solid none solid; 
        border-width: 8px; 
        border-color: light-dark(#033452, #017FC0);  
        border-radius: 20px;          
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 30px;
        padding-bottom: 30px;
        background-color: light-dark(#9BCCFD, #1c212c);
    }
    
    #leagueBox{
        border-style: none solid none solid; 
        border-width: 8px; 
        border-color: light-dark( #321856, #7540BF);  
        border-radius: 20px;          
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 30px;
        padding-bottom: 30px;
        background-color: light-dark(#cac2f0,  #1c212c);
    }
    
    #first-child {
        grid-column: span 1;
        grid-row: span 1;
        border-style: none solid none solid; 
        border-width: 8px; 
        border-color: light-dark(#033452, #9BCCFD);  
        border-radius: 20px;          
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 30px;
        padding-bottom: 30px;
        background-color: light-dark(#9BCCFD, #033452);
    }

    #leagueFirstChild {
        grid-column: span 1;
        grid-row: span 1;
        border-style: none solid none solid; 
        border-width: 8px; 
        border-color: light-dark(#321856, #7540BF);  
        border-radius: 20px;          
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 30px;
        padding-bottom: 30px;
        background-color: light-dark(#cac2f0, #1c212c);
    }
}

@media (min-width:50em) and (max-width:80em) {
    nav.container {
        flex-wrap: wrap;
        overflow: hidden;
        & .menu-icon {
            display:block;
        }
        & >ul.menu {
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-height: 0;
            transition: max-height 0.5s ease-out;
        }
    & .menu-btn:checked ~ .menu {
        max-height: 100vh;
    }
    }
    
    #title {
        grid-template-columns: 3fr 1fr;
    }

    #subheading {
        display: none;
    }

    #tournGrid, #filterGrid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }

    #scoreTable {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: auto;
    }

    #filterGrid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 0px;
    }
}

ul.a {
    list-style-type: circle;
  }
