@font-face{
    font-family:"PlayWrite-400";
    src: url('../fonts/PlaywriteAUQLD-Regular.ttf');
}
@font-face{
    font-family:"Bitcount";
    src:url('../fonts/BitcountPropSingle-Regular.ttf');
}
@font-face {
    font-family: "Exo2";
    src: url('../fonts/Exo2-Medium.ttf');
}
html{
      /* background: rgba(75, 75, 250, 0.3); */
      background-color: #330033;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='365' height='365' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23404' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23505'%3E%3Ccircle cx='769' cy='229' r='6'/%3E%3Ccircle cx='539' cy='269' r='6'/%3E%3Ccircle cx='603' cy='493' r='6'/%3E%3Ccircle cx='731' cy='737' r='6'/%3E%3Ccircle cx='520' cy='660' r='6'/%3E%3Ccircle cx='309' cy='538' r='6'/%3E%3Ccircle cx='295' cy='764' r='6'/%3E%3Ccircle cx='40' cy='599' r='6'/%3E%3Ccircle cx='102' cy='382' r='6'/%3E%3Ccircle cx='127' cy='80' r='6'/%3E%3Ccircle cx='370' cy='105' r='6'/%3E%3Ccircle cx='578' cy='42' r='6'/%3E%3Ccircle cx='237' cy='261' r='6'/%3E%3Ccircle cx='390' cy='382' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------Nav Bar----------------------- */
nav{
    z-index: 2;
    position:sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    border: solid black 2px;
    border-radius: 10px;
    font-family:"Exo2";
    text-align: center;
    background-color: white;
    & a{
        font-size: 30px;
        flex: 1;
        display: block;
        padding-right: 5%;
        color: black;
        padding: 5px 5px 10px 10px;
        text-decoration: none;
    }
    & a:hover{
        transition: ease 0.7s;
        flex: 3;

        &:nth-child(1){background-color: black;color: white;}
        &:nth-child(2){background-color: rgb(38, 122, 190);color: white;}
        &:nth-child(3){background-color: rgb(104, 31, 230);color: white;}
        &:nth-child(4){background-color: rgb(20, 93, 53);color: white;}
    }
    & a:not(:hover){
        transition: ease-in-out 0.5s ;
    }
}

/* --------------------Body Elements----------------------- */

#Resource{
    display: grid;color: white;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    margin: 3% 10% 3% 10%;
}
#header{
    display: block;
    margin-left: auto;
    margin-right: auto;
    color:white;margin-left:10%;
    width: 90%;
    font-family: "Exo2";
    font-size: larger;
}

#Resource .res-box {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    list-style-type:square;
    font-size: large;
    gap: 3%;
    margin-bottom: 50px;
}

#Resource .res-box .Items {
    border: 2px solid gray;
    border-radius: 10px ;
    padding-top: 2.5%;
    padding-bottom: 2.5%;
    padding-left: 1%;
    margin-bottom: 5%;
    transition: ease 0.7s;
    width: 90%;
}
#Resource .res-box .Items:hover{
    background-color: white;
    color:black;
}
#Resource .res-box .Items span{
    cursor:default;
    user-select: none;
}
#Resource .res-box .Items ul{
    overflow: hidden;
    max-height: 5px;
    transition: max-height 1s;
    font-size: medium;
    cursor: pointer;
}
#Resource .res-box .Items:hover ul{
    max-height: 400px;
    transition: linear 1s;
}
#Resource .res-box .Items ul  li a{
    text-decoration: none;
    color:rgb(0, 86, 19);
}
#Resource .res-box .Items ul li{
    padding-bottom:5% ;
    padding-top: 5%;
}

@media screen and (max-width: 600px){

    nav a {
        font-size: x-large;
        &:nth-child(3){
        display: none;
        }
    }
    #header{
      margin-left:20px;
    }
    #Resource{
        grid-template-columns: 1fr;
        gap: 0;
        margin: 0;
    }
}
