@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


body, button{font-family: "IBM Plex Mono", monospace;}

body{
    margin: 0;
}

ul{
    padding: 0;
    margin: 0;
}

button{
    cursor: pointer;
    border: solid 2px black;
    border-radius: 5px;
    padding: 5px;
}

button:hover{
    background-color: lightgray;
}

button:active{
    transform: scale(0.9);
}

.MainTable{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80vw;
    margin-top: 1vh;
}

.Title{
    width: 70vw;
    font-size: 50px;
}

.Infos{
 display: flex;
 justify-content: space-around;
}

.UpgradeTitle{
    border: solid 2px;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
}

.UpgradeSection{
    display: flex;
    align-items: center;
    height: 10vh;
}

.Nav{
    display: flex;
    margin: 5px;
    gap: 10px;
    justify-content: right;
}

a{
    color: black;
    text-decoration: none;
}

.Home-container{
    display: flex;
    justify-content: space-between;
    width: 70vw; 
}

#Home,
#Research,
#Worker{
    margin-top: 10px;
    justify-content: center;
}
#Home{display: flex;}
#Research{
    justify-content: center;
    display: none;
}
#Worker{display: none;} 

#WorkerRedirect{
    display: none;
}

#TwoUpgradePrice,
#ThreeUpgradePrice,
#FourUpgradePrice,
#FiveUpgradePrice,
#SixUpgradePrice,
#TwoUpgrade,
#ThreeUpgrade,
#FourUpgrade,
#FiveUpgrade,
#SixUpgrade{
    display: none;
}

.Header{
    display: flex;
    justify-content: center;
}

.UpgradeSection-worker{
    display: flex;
    width: 70vw;
    justify-content: space-around;
    overflow-x: auto;
    gap: 10px;
}

.UpgradeTitle-worker{
    border: solid 2px;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    max-width: 15vw;
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    scroll-behavior: smooth;
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* IE et Edge */
    user-select: none;
}

.UpgradeSection-worker::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}

.UpgradeWorker{
    flex: 0 0 auto;
    border: solid 2px;
    border-radius: 5px;
    padding: 2px;
}

.NotAlreadyBoughtWorker{
    display: none;
    flex: 0 0 auto;
    border: solid 2px;
    border-radius: 5px;
    padding: 2px;
}

.UpgradeWorker-Btn{
    display: grid;
    gap: 10px;
    justify-content: center;
    user-select: none;
}

.UpgradeWorker-Btn button{
 width: 15vw;
 border: solid 2px;
 border-radius: 5px;
 margin: 5px;
 height: 7vh;
 padding: 5px;
}

.WorkerNumber{
    display: flex;
    justify-content: center;
}

.top-header{
    background-color: black;
    height: 5vh;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.credit-info{
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 600px;
    overflow: hidden;
    gap: 500px;
    white-space: nowrap;
    border: solid 2px white;
    border-radius:5px ;
}

.credit-info div{
    animation: scroll infinite 10s linear;
    display: flex;
    gap: 600px;
}

.credit-info div div{
   font-size:20px;
}

@keyframes scroll {
    from{
        transform: translateX(-400px);
    }
    to{
        transform: translateX(400px);
    }
}

.ResearchHeader{
    display: flex;
    justify-content: space-evenly;
    width: 68vw;  
    border: solid 2px black;
    border-radius:15px ;
    padding: 10px;
    gap: 20px;
    align-items: center;
}
.ResearchMain{
    display: flex;
    justify-content: space-around;
    margin-top: 2vh;
}
.Researcher{
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
#AdvancedResearcher{
    display: none;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
.Researcher button,
.AdvancedResearcher Button{
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px;
    border: solid 2px black;
}

.ResearchContainer{
    border: solid 2px black;
    border-radius: 15px;
}

.ResearchButtonsPlusMinus{
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.ResearchButtonsPlusMinus button{
    width: 60px;
    margin: 2px;
    border: solid 2px black;
    border-radius: 5px;
    font-size: 20px;
}

.ResearchContainer{
    padding: 10px;
}

.ResearchTitle{
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px black;
    border-radius: 5px;
    margin:2px ;
}  

#ResearcherAssigned{
    margin: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ResearchList{
    border: solid 2px black;
    border-radius: 15px;
    height: 30vh;
    display: flex;
    justify-content: center;
}

.ResearchList ul{
overflow: auto;
}

.ResearchPAndServerContainer{
    display: grid;
    justify-content: center;
    align-items: center;
}

.ResearchPointContainer{
    border: solid 2px black;
    border-radius: 10px;
    padding: 35px;
    font-size: 20px;
}

#researcherAssignedForP{
    margin-bottom: 5px;
}

#ResearchPointPerSec{
    margin-top: 5px;
}

#Server{
    border: solid 2px black;
    border-radius: 15px;
    display: none;
    justify-content: center;
    align-items: center;
}

.ServerTitle{
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    border: solid 2px black;
    border-radius: 5px;
}

.Serverflex{
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px;
}

.Serverflex button{
    border: solid 2px black;
    border-radius: 5px;
    width: 10vw;
}

.InProgressTitle{
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    border: solid 2px black;
    border-radius: 5px;
    padding: 5px;
}

.InProgressResearch{
    border: solid 2px black;
    border-radius: 15px;
    padding: 10px;
    width: 15vw;
    display: flex;
    justify-content: center;
}
.InProgressResearch ul{
    list-style: none;
    height: 35vh;
    overflow: auto;
}

ul li button{
    border: solid 2px black;
    border-radius: 5px;
    list-style: none;
    margin: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 215px;
    height: 50px;
}

ul:empty{
    overflow: hidden;
}