@font-face {
  font-family: Nikodecs;
  src: url(/assets/fonts/nikodecs.otf) format("opentype");
}

body{
    background-color: #DEDEDE;
    font-family: Sans-Serif;	
    margin:0;
    padding:0;
    height:100%;
    overflow-y:hidden;
}

#main-container{
    background-color: #FFF;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
}

.user_avatar{width:10vw;height:10vw;position:relative;margin:auto;}
.user_avatar img{width:100%;height:100%;position:absolute;top:0;left:0;}

.game {
    height:100%;
    width:70%;
    position:relative;
    float:left;
}

.game-info {
    width:100%;
    background-color: rgb(3,143,191);
    height:7%;
    padding-top:1%;
}

.active-player{
    color:white;
}

.name {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 1rem;
    float:left;
}

.playerinfo{
    padding-bottom:20px;
    width:50%;
}

.myblock{float:left;}
.oponentblock{float:right;}

.players-name {
    font-weight: bold;
    font-size: 1.5em;
    margin-bottom: 1em;
    text-align: center;
}

.oponent-name {
    font-weight: bold;
    font-size: 1.5em;
    margin-bottom: 1rem;
    text-align: center;
    float:right;
    margin-right:5%;
}

.user_avatar{width:2vw;height:2vw;position:relative;margin:auto;float:left;padding:0 1vw 0 1vw;}
.user_avatar img{width:100%;height:100%;position:absolute;top:0;left:0;}
.oponent-avatar{float:right;}

#chat{
    position:relative;
    width:30%;
    height:100%;
    float:left;
}

.timeleft{position:relative;display:inline-block;}
#oponenttimeleft{margin-right:2em;float:right;}


#wordies{
    width:100%;
    height:80%;
}

#gamebar{
    width:100%;
    height:10%;
    background-color:#2222AA;
    color:white;
    font-weight: bold;
    position:absolute;
    font-size:200%;
}

#bar-letter{
    width:10%;
    height:100%;
    padding:0;
    background-color:#CC1111;
    border-right: solid white 3px;
    position:relative;
    float:left;
    display: flex;
    justify-content: center;  /* Horizontal centering */
    align-items: center;      /* Vertical centering */
}

#bar-category{
    height:100%;
    display: flex;
    justify-content: center;  /* Horizontal centering */
    align-items: center;      /* Vertical centering */
}



#wordies-content{
    width:100%;
    height: 90%;
    display:flex;
    justify-content: center;  /* Horizontal centering */
    align-items: center;      /* Vertical centering */
}

#wordies-content form{
    display:block;
    width:40%;
}

#wordies-content form input{
    display:block;
    width:100%;
    font-size:300%;
    font-weight:bold;
}

#submit{
    background-color:#CC1111;
    border:none;
    color:white;
    margin-top:0.5em;
}



#final-results{
    
}




/* Style for the word list container */
.wordies-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size:1.5em;
    width:70%;
    margin-top:20%;
    height:75%;
    overflow-y: scroll;
}


/* Custom scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.wordies-list::-webkit-scrollbar {
    width: 1em; /* Set the width of the scrollbar */
    max-width:1em;
    box-shadow:none;
}

.wordies-list::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
}

.wordies-list::-webkit-scrollbar-thumb {
    background-color: red; /* Scrollbar thumb color */
    border-radius: 10px; /* Rounded scrollbar corners */
    border: 3px solid #f1f1f1; /* Add padding around the thumb */
}

/* Style for each list item */
.wordies-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
}

/* Style for player words */
.p1-word, .p2-word {
    flex-grow: 1;
    text-align: center;
    width:20%;
    padding-left:1em;
    padding-right:1em!important;    
}

/* Style for points */
.p1-points, .p2-points {
    background-color: blue;
    color: white;
    padding: 5px;
    border-radius: 5px;
    min-width: 2em;
    text-align: center;
    flex-shrink: 0;
}

/* Style for category and letter */
.category-letter {
    background-color: red;
    color: white;
    padding: 5px;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    width: 33%;
    text-align: center;
    flex-shrink: 0; /* Prevent shrinking */
    font-size:1em;
}

/* Letter is placed to the left */
.letter {
    font-weight: bold;
    position:relative;
    margin-right:0.5em;
    margin-left:0.5em;
    float:left;
    left:0;
    color:white;
}


.match-result{
    position:absolute;
    color:green;
    top:20%;
    font-size:2em;
    font-weight:bold;
}

.rematch-btn{
    color:white!important;
}

#score{
    position:fixed;
    background-color:red;
    width:10%;
    height:7%;
    left:30%;
    display:flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0; /* Prevent shrinking */
    font-size:3em;
    color:white;
}

#progressbar{
    width:100%;
    height:10px;
    background-color:blue;
    position:absolute;
    z-index:20;
}

#progressContent{
    background-color:#AA2222;
    width:100%;
    height:100%;
}

@media (max-height: 800px) {
    #score{
        font-size:2em;
    }
}

@media (max-width: 1800px) {
    .wordies-list {
        font-size:1.2em;
    }
}

@media (max-width: 1200px) {
    .wordies-list {
        font-size:1em;
    }
}