@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  border: 0;
}

.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    overflow: hidden;
    z-index: 99;
    max-height: 0;
    opacity: 0;
    -webkit-transition: all .5s ease-in-out 0s;
    transition: all .5s ease-in-out 0s;
    pointer-events: none;
  }
   /* Change color of dropdown links on hover */

  .button-list{
    cursor: pointer;
    padding: 0.7ch 0;
    font-weight: 600;
    color: white;
    font-size: 1.2rem;
    white-space: nowrap;
    border-radius: 15px;
    background-color: rgb(46,46,46);
    text-shadow: 2px 2px 2px #000000;
    transition: .2s ease;
    border: 1px solid rgba(255, 255, 255, 0.30);
    
  }

  .button-list:hover {
    background-color: rgb(73, 73, 73);
    border: 1px solid rgba(255, 255, 255, 0.70);
  }

  /* Show the dropdown menu on hover */
  .open {
    pointer-events: auto; /* 👈 re-enables clicks when visible */
    opacity: 1!important;
    max-height:500px;
  }
  


body{
    background-image: url("../Images/I4pgKHd.jpg"), linear-gradient(90deg, rgba(25,0,255,0.65) 0%, rgba(34,34,34,0.55) 45%, rgba(34,34,34,0.55) 55%, rgba(255,0,0,0.65) 100%);
    background-blend-mode:hard-light;
    background-size:cover;
    background-attachment:fixed;
    background-repeat: no-repeat;
    background-position: center;
}

footer{
    color: rgba(255, 255, 255, 0.651);
    margin-left:auto;
    margin-right: auto;
    text-align: center;
    max-width: 60rem;
    margin-top: 25px;
}

#page-lobby{
    display: block;
  }

.home-container{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}


.errorbar{
    display: flex;
    background-color: rgb(223, 95, 90);
    border: solid 1px rgba(255, 255, 255, 0.404);
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    visibility:hidden;
    margin-bottom: 10px;

}

.symbol{
    color:rgb(255, 255, 255);
    /* position: absolute; */
    /* width: 9%; */
    /* height: 18%; */
    justify-self: center;
    margin-right: 10px;

}


.text-style-errormsg{
    font-weight: 400;
    color: rgb(255, 255, 255);
    padding: 1ch 0;

}

.home--buttons{
    cursor: pointer;
    padding: 0.7ch 0rem;
    font-weight: 600;
    color: white;
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px #0000007c;
    white-space: nowrap;
    border-radius: 5px;
    text-shadow: 2px 2px 4px #000000;
    border: 1px solid rgba(255, 255, 255, 0.30);
}

#link-randomrites{
    margin-left: auto;
    margin-right: auto;
    grid-column:  span 2;
    padding: 10px 20px;
    background-color: #b75700;
    color: white;
    border-radius: 25px;
    text-shadow: 2px 2px 6px black;
    border: 1px solid rgba(255, 255, 255, 0.30);
    transition: 0.2s linear;
    user-select: none;

}
#link-randomrites:hover{
    border: 1px solid white;
    background-color: #d66801
}

.button-join{
    background-color: rgb(52,152,219);
    transition: 0.2s linear;

}

.button-join:hover{
    background-color:rgb(61, 174, 250);
    box-shadow: rgb(61, 174, 250) 0px 0px 7px 2px;
}



.button-create{
    background-color: #259453;
    transition: 0.2s linear;
}

.button-create:hover{
    background-color: #2ecc71;
    box-shadow: #00ff2279 0px 0px 7px 2px;
}
    
#settingsBtnGrpHomepage{
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    
}

#settingsBtnGrpHomepage button{
    color: white;
    user-select: none;
    background: none;
    cursor: pointer;
    vertical-align: middle;
    font-size: 1.3rem;
    margin-left: 5px;
    text-shadow: 2px 2px 4px black;
}

#settingsBtnGrpHomepage i {
    vertical-align: middle;
}

.button-settings{
    background-color: rgb(70, 70, 70);
    transition: 0.2s linear;
}

.button-settings:hover{
    background-color:rgb(100, 100, 100);
    box-shadow: rgba(100, 100, 100, 0.281) 0px 0px 8px 1px;
}

#input-lobbycode{
    justify-self: end;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: rgb(255,140,0);
    text-transform:uppercase;
    border-radius: 5px;
    outline: rgba(255, 255, 255, 0.616) 2px solid;
    text-shadow: 1px 1px 2px #000000;
 
}

#input-lobbycode::placeholder{
    text-shadow:none;
    text-transform: capitalize;
    color:#6d747a;
  }


#input-lobbycode:focus {
    outline: orange 2px solid;
    box-shadow: rgba(255, 166, 0, 0.986) 0px 0px 10px 5px;
    
}


#input-lobbycode:focus::placeholder{
    color: transparent;
    text-shadow: none;
}



.width100{
    width: 100%;
    box-sizing: border-box;
}

.width50{
    width: 50%;
    box-sizing: border-box;
}

.grid-container {
    display: grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows: auto 5rem auto auto auto;
    gap: 0rem 10px;
    padding-top: 5rem;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    
}

.grid-container-createList {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 15px 15px;
    margin-left: auto;
    margin-right: auto;
    width: 96%;
    background-color: rgba(255, 255, 255, 0.219);
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid #ffffff59;
    border-radius: 0px 0px 5px 5px;
    border-top: none;
    margin-bottom: 20px;
}

.modal h1{
    padding: 1rem;
    color: white;
}

#customCreatorDialogWrapper {

}


.modal{

    margin-left: auto;
    margin-right: auto;
    position: absolute;
    top: 10%;
    border-radius: 5px;
    border: 2px solid rgb(66, 66, 66);
    box-shadow: 0px 0px 10px 7px #00000070;
    background: rgb(34, 34, 34);
    pointer-events: none;
    display: block;
    opacity: 0;
    max-height: 800px;

}

.modal[open] {
    opacity: 1;
    pointer-events: auto;
    animation: slidein 0.3s forwards;
  }

  @keyframes slidein {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

.modal::backdrop{

background: rgba(0, 0, 0, 0.37);
backdrop-filter: blur(15px);
}

.customList{

    list-style-type: decimal;
    width: 80%;
    max-height: 500px;
    margin-left: auto;
    margin-right: auto;
    overflow: auto;
    padding-right: 10px;
    padding-left: 10px;
    outline: #5c5959 solid 2px;
    border-radius: 3px;
  

}



.modalGrid{
    display: grid;
    grid-template-columns:1fr;
    gap: 5px 5px;

}

select{
    cursor: pointer;
    width: 100%;
    border: solid 2px orange;
    font-weight: 500;
    font-size: 1.2rem;
    color: rgb(20, 20, 20);
    border-radius: 0px 5px 5px 0px;
  
}


.pointer{
    cursor: pointer;
}


select:focus{

    outline: none;
    background-color: rgba(235, 234, 234, 0.788);
}



li span{
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: orange;
    width: 4ch;
    text-align: center;
    vertical-align: middle;
    color: white;
    text-shadow: 1px 1px 2px black;
    border-radius: 5px 0px 0px 5px;
}
.dialogButtons{
    display: flex;
    width: 100%;
    background-color: #363232;
    justify-content: end;
    border-top: solid 2px rgb(148 145 142 / 72%);
    margin-top: 5ch;
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}


.listItem{
    display: flex;
    /* grid-template-columns:1fr 1fr; */
    /* gap: 5px 5px; */
    justify-content: space-between;
    border-bottom: 1px solid rgba(173, 173, 173, 0.603);
    padding-top: 1ch;
    padding-bottom: 1ch;
    animation: fadein 2s;

}

@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}

.listButton{
    margin-top: 2ch;
    margin-bottom: 2ch;
    width: 100%;
    padding: 1ch 5ch;


}

.buttonsFlex{
display: flex;
justify-content: end;

}
.modalcustomButton{

padding: 1ch 0ch;
margin-left: 10px;
margin-right: 10px;
width: 25%;

}

   
.modalcustomButton2{
padding: 0.5ch 3ch;
margin-left: 3px;
transition: all linear 0.1s ;
border-radius: 5px;
cursor: pointer;
color: white;
background-color: rgb(255, 61, 61);
}

.modalcustomButton2:hover{
    box-shadow: inset 0px 0px 2px 2px white;
}
        
    



.text-style-title{
    color: white;
    text-align: center;
    font-weight: 800;
    text-shadow: 4px 4px 4px #000000;
}

.text-style-subtitle{
    color: rgba(255, 255, 255, 0.651);
    text-align: center;
    font-weight: 300;
    text-shadow: 2px 2px 4px #000000;

}

.span-2 {
    grid-column: span 2;

}

.img-style{
    max-width: 100%;
    justify-self: center;
    filter: drop-shadow(10px 10px 4px #0000006c);
    overflow: hidden;
}

.custom-br{
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    display: block;
    width: 50%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.014);
}


  
  .logo{
      width: 2.5rem;
  }
  


 #title-othertools{
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 5px;
    text-decoration: underline;

    color: white;
    text-align: center;
    font-weight: 400;
    text-shadow: 2px 2px 2px #000000;
 }

@media only screen and (max-width: 1150px){
 
    .button-list{
        font-size: 1rem;
    }
}


@media only screen and (max-width: 1000px){


    #input-lobbycode::placeholder{
      font-size: 1.2rem;
    }

    .grid-container-createList {
    grid-template-columns: 1fr 1fr;
    }

}


@media only screen and (max-width: 950px){


    #input-lobbycode::placeholder{
      font-size: 1.3rem;
    }

    .grid-container{
        width: 80%;
    }

    footer{
        font-size:0.8rem;
        width: 80%;
    }

    body{
        background-image: url("../Images/I4pgKHd.jpg"), linear-gradient(90deg, rgba(25,0,255,0.65) 0%, rgba(34,34,34,0.55) 45%, rgba(34,34,34,0.55) 55%, rgba(255,0,0,0.65) 100%);
        background-blend-mode:hard-light;
        background-size:cover;
        background-attachment: scroll;
        background-repeat:no-repeat;
        background-position:center;
    }


}

@media only screen and (max-width: 600px){

    .text-style-errormsg{
       font-size: 0.8rem;
    
    }
    
    #input-lobbycode::placeholder{
        font-size: 1.2rem;
        
      }

     .home--buttons{
        font-size:1.2rem;
    }

  
}   



@media only screen and (max-width: 450px){

    .text-style-errormsg{
       font-size: 0.7rem;
    
    }
    
    #input-lobbycode::placeholder{
        font-size: 1rem;
        
      }

     .home--buttons{
        font-size:1rem;
    }

  
}   