* {
    margin: 0;
    padding: 0;
    font-size: 1.5vh;    
    box-sizing: border-box;
    font-family: "Roboto", Verdana, Helvetica;


    @media screen and (orientation: landscape) {
        font-size: 2.3vh;
    }
    @media screen and (orientation: portrait) {
        font-size: 1.4vh;
    }

    @media screen and (min-width: 1024px) { /* Gäller för större skärmar (desktop) */
        font-size: 1.5vh; /* Anpassad fontstorlek för desktop */
    }
    
}


body {
    background-color: rgb(29, 15, 109);
    color: #fff;
    display: flex;

    @media screen and (orientation: landscape) {
        flex-direction: row;
        ;
    }

    @media screen and (orientation: portrait) {
        flex-direction: column-reverse;
        ;
    }


}

.chat-container {
    @media screen and (orientation: landscape) {
        height: 75vh;
        width: 25%;
        border-right: 1px solid #4b51ff;
    }

    @media screen and (orientation: portrait) {
        height: 48vh;
        width: 100%;
    }
    
    padding: 1px;
}

main {
    @media screen and (orientation: landscape) {
        width: 100%;
        height: 100vh;
        padding: 1rem;
    }

    @media screen and (orientation: portrait) {
        height: 48vh;
        width: 100%;
    }
    
    display: flex;
    flex-flow: column;
}

.game-container {

    @media screen and (orientation: landscape) {
        height: 100vh;
        width: 74%;
        padding: 1px;
    }

    @media screen and (orientation: portrait) {
        height: 48vh;
        width: 100%
    }

    text-align: center;

}

.game-actions {
    padding: 2px;
}

form {
    width: 100%;
    margin: auto;
    max-width: 800px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    gap: .20rem;
}

.narrow-button {
    width: auto; /* Smal bredd */    
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0.5rem 1rem; /* Padding för knappen */
    

}

input {
    flex-grow: 1;
    max-width: calc(80% - .25rem);
}

button {
    text-overflow: ellipsis; /* Visar "..." om texten är för lång */
    overflow: hidden;
    white-space: nowrap;
}

input,
button {
    border-radius: 2px;
    padding: 1px;
}

.chat-display {
    background-color: #333;
    list-style-type: none;
    width: 100%;    
    border-radius: 1px;    
    padding: 0;
    display: flex;
    flex-flow: column;
    justify-content: left;
    overflow: auto;
    flex-grow: 1;
}

.post {
    background-color: #eee;
    border-radius: 5px;    
    margin: .25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.post--left {
    width: 90%;
    align-self: flex-start;
}

.post--right {
    width: 90%;
    align-self: flex-end;
}

.post__header {
    color: #ffffff;
    padding: .25rem .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}

.post__header--user {
    background-color: blue;
}

.post__header--reply {
    background-color: purple;
}

.post__header--name {
    font-weight: bold;
}

.post__text {
    margin-top: 2px;
    color: #0e0101;
    padding: .25rem .5rem;
}

.post__text.red-text {
    color: red;
}

.user-list,
.room-list,
.activity {
    width: 100%;
    min-height: 2.65rem;
    margin: 0 auto;
    max-width: 600px;
    padding: .25rem .25rem;
}


.game-display p {
    display: inline-block;
    /* Placera elementen bredvid varandra */
    margin-right: 1rem;
    /* Mellanrum mellan elementen */
}

.game-display br {
    line-height: 1rem;
    /* Anpassa avståndet mellan rader (valfritt) */
}


#players-hands-container {
    position: relative;
    width: 100%;
    /* height: 80vh; */
    display: flex;
    align-items: top;
    justify-content: center;
}



#myCanvas,
#myCanvas2 {
    position: absolute;
    border: 1px solid rgb(100, 69, 235);


}