* {
  transition: all 0.2s ease-in-out;
}

body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e2f;
    background-image: url("Assets/skull-bg.png");
    background-size: cover;            
    background-repeat: no-repeat;
}


#hosting-form, #joining-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#players {
    display: none;
    margin-top: -30px;
}

#players-div {
    display: none;
    flex-direction: column;
    align-items: center;
}

#start-game-btn {
    display: none;
    width: 300px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
}

#question-card, #player-question {
    display: none;
    width: 90%;
    margin: auto;
    font-size: 2rem;
    color: #e0e0e0;
    background-color: #2c2c3a;
    border: solid 3px #6c63ff;
    border-radius: 10px;
    box-shadow: 5px 5px 5px black;
    text-align: center;
    padding: 50px;
    margin-top: 10px;
}

#player-court {
    display: none;
    flex-direction: row;
    justify-content: space-evenly;
    margin: auto;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
}

.player-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
}

#player-voting-options {
    display: none;
    width: 70%;
    margin: auto;
    flex-direction: column;
    align-items: center;
}

#player-answer {
    display: none;
    font-size: 1rem;
    width: 100%;
    text-decoration: none;
    background-color: #2c2c3a;
    padding: 10px;
    border: solid #a0a0b0 2px;
    border-radius: 5px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

#answer-submit {
    display: none;
}

#answer-section {
    display:flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin: 20px auto 0px auto;
}

.vote {
    width: 60px;
    height: auto;
}

.votes {
    border: solid 1px #6c63ff;
    border-radius: 5px;
}

#exit-btn {
    display: none;
    margin: 0px auto 0px auto;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
}

#player-results {
    display: none;
    flex-flow: column wrap;
    align-items: center;
    width: 60%;
    margin: auto;
    max-height: 350px;
}

.result-div {
    width: 100%;
    height: 80px;
    border: solid 2px #4dd0e1;
    background-color: #2c2c3a;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: left;
}

.result-img {
    height: 100%;
    width: auto;
    margin: 5px;
}

.score-show {
    background-color: #2c2c3a;
    border: solid 2px #4dd0e1;
    border-radius: 10px;
    margin: 10px;
    padding: 10px 30px 10px 30px;
}

#client-results {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin: auto;
    background-color: #2c2c3a;
    border: solid 2px #4dd0e1;
    border-radius: 5px;
    padding-bottom: 30px;
}

.result {
    width: 100%;
    background-color: #1e1e2f;
    border: solid 2px #6c63ff;
    border-radius: 5px;
    margin: 5px;
    padding: 10px;
}

a {
    background-color: #2c2c3a;
    text-decoration: none;
    padding: 20px;
    font-size: 2rem;
    font-weight: bold;
    border: solid 2px #4dd0e1;
    margin: 15px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    color: #e0e0e0;
}

a:hover {
    background-color: #6c63ff;
}

a:active {
    background-color: #81c784;
}

#user-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-answer {
    max-width: 200px;
    margin-bottom: 0px;
}

nav {
    font-size: 3rem;
    background-color: #2c2c3a;
    text-align: center;
    color: #e0e0e0;
    font-weight: bold;
    margin-bottom: 30px;
}

h1 {
    text-align: center;
    color: #e0e0e0;
    margin: auto;
    font-size: 3rem;
}

#roomcode, #username {
    font-size: 2rem;
    text-decoration: none;
    background-color: #2c2c3a;
    padding: 10px;
    border: solid #a0a0b0 2px;
    border-radius: 5px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

#roomcode::placeholder {
    color: #a0a0b0;
}

#roomcode:hover {
    border-color: #6c63ff;
}

label {
    padding-right: 200px;
    padding-top: 10px;
    margin: auto;
    font-size: 2rem;
    font-weight: bold;
    color: #e0e0e0;
}

button {
    background-color: #2c2c3a;
    text-decoration: none;
    padding: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    border: solid 2px #4dd0e1;
    margin: 15px;
    border-radius: 10px;
    text-align: center;
    color: #e0e0e0;
}

button:active {
    background-color: #81c784;
}

button:hover {
    background-color: #6c63ff;
}

.warning {
    font-size: 1rem;
    color: #e57373;
}

p {
    color: #e0e0e0;
    font-size: 2rem;
    font-weight: bold;
    padding: 0px auto 0px auto;
    margin-top: 3px;
    margin-bottom: 3px;
}

#roomcode-display {
    text-align: right;
    border: solid 5px #6c63ff;
    border-radius: 15px;
    display: none;
    padding: 10px;
}

#roomcode-helper {
    justify-items: right;
}

#player-list {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    width: 50%;
    margin-top: 5px;
}

.awaiting-player {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #e0e0e0;
    width: 30%;
    height: auto;
    margin: 20px 20px 0px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#player-description {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.voting-button {
    width: 60%;
    margin: 10px;
}

.awaiting-icon {
    width: 150px;
    height: auto;
}

.voting-icon {
    width: 100px;
    height: auto;
}

#icon-selection {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    margin: auto;
    border: solid 2px #a0a0b0;
    border-radius: 10px;
    width: 75%;
    padding: 10px;
}

.icon-label {
    width: 200px;
    height: auto;
    display: inline-block;
    padding: 0px;
}

.icon-label img {
    width: 100%;
    height: auto;
    display: block;
}

input[type="radio"]:checked + .icon-label {
  border: 2px solid #a0a0b0;
  box-shadow: 0 0 8px #a0a0b0;
  border-radius: 8px;
}

#jump-btn {
    display: none;
    width: 50%;
    height: 50px;
    border: 2px solid #a0a0b0;
    border-radius: 5px;
    position: fixed;
    padding: 10px;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#safe-btn {
    display: none;
    font-size: 1rem;
}

#disconnection-alert {
    display: none;
    width: 40%;
    border: 2px solid #e57373;
    color: #e57373;
    border-radius: 8px;
    position: fixed;
    padding: 5px;
    font-size: 1rem;
    bottom: 10px; 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background-color: #e0e0e0;
}

@media (max-width: 700px) {
    #question-card, #player-question  {
        width: 80%;
        font-size: 1rem;
        padding: 30px;
        font-weight: normal;
    }

    .voting-button {
        width: 100%;
        font-size: 1.3rem;
        margin: 5px;
        padding: 15px;
    }

    #player-username, #player-room {
        font-size: 1rem;
    }

    nav {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .icon-label {
        width: 120px;
    }

    body {
        background-image: none;
    }

    #jump-btn {
        width: 60%;
    }

    #answer-section {
        width: 70%;
    }

    #roomcode, #username {
        width: 80%;
    }

    label {
        font-size: 1.5rem;
    }

    #answer-submit {
        font-size: 1rem;
    }
}