* {
    box-sizing: content-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #1e2349;
    background: #e8f3e4;

}

h1,
h2,
h3 {
    font-family: 'Gotham', sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

header>* {
    width: 200px;
}

header .logo {
    padding: 20px 100px 20px 40px;
    margin-bottom: 20px;
    height: 60px;

    border-bottom-right-radius: 500px;

    background: rgb(92, 200, 187);
    background: -moz-linear-gradient(45deg, rgba(92, 200, 187, 1) 0%, rgba(92, 200, 187, 1) 10%, rgba(30, 38, 79, 1) 100%);
    background: -webkit-linear-gradient(45deg, rgba(92, 200, 187, 1) 0%, rgba(92, 200, 187, 1) 10%, rgba(30, 38, 79, 1) 100%);
    background: linear-gradient(45deg, rgba(92, 200, 187, 1) 0%, rgba(92, 200, 187, 1) 10%, rgba(30, 38, 79, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#5cc8bb", endColorstr="#1e264f", GradientType=1);
}

header .gotm {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 500px;
    padding: 10px 10px 10px 100px;

    height: 80px;
}


header .logo img {
    height: 100%
}



main,
#id-details,
form,
.input-wrap {
    display: flex;
    flex-direction: column;
    margin: 0
}


main {
    width: 835px;
    margin: 0 auto;
}

canvas {
    background: #fff;
    margin: 0 auto;
}

#room_details {
    margin-right: 50px;
    margin-bottom: 10px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.room-id-label {
    font-size: 18px;
    text-align: center;
}

#room-id {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
}

#language-selector-wrap {
    margin: 20px auto 60px auto;
}

.forms-wrap {
    display: flex;
    margin: 40px 0;
    justify-content: center;
}

form {
    width: 300px;
}

h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.input-wrap {
    margin-bottom: 10px;
}

label {
    margin-bottom: 5px;
}

label em {
    font-style: italic;
    margin-top: 5px;
}

form #error,
form #success {
    opacity: 0;
    color: #d60e0e;
    margin-bottom: 10px;
    transition: opacity 1s;
}

form #success {
    color: #137232;
}


input {
    border: none;
    padding: 10px;
}

button {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 18px;
    background: #efc752;
    border: 5px solid #efc752;
    border-radius: 0;
    border-top-left-radius: 500px;
    padding: 5px;
    cursor: pointer;
}

button:hover {
    background: #e8f3e4;
}

#loading,
#closed_room {
    width: 100vw;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffffffcc;
    font-size: 28px;

}

#closed_room {
    display: none;
}

#background_images {
    display: none;
}

#background_images>img {
    width: 900px !important;
}

.never-show {
    display: none !important;
}

#pawn_creator_wrap {
    display: none;
    width: 835px;
    margin: 0 auto;
    margin-top: 20px;
}

#movement_history_toggle {
    text-align: right;
    margin-top: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

#movement_history_wrap {
    display: none;

}

#movement_history_wrap.visible {
    display: flex;
}

#movement_history {
    flex: 1;
    margin: 20px;
    height: 100px;
}

#create_pawn {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

#create_pawn .column {
    display: flex;
    width: 250px;
    flex-direction: column;
    justify-content: space-between;

}

#create_pawn .column:first-child {
    justify-content: flex-start;
}

#create_pawn #colour_picker,
#create_pawn #icon_picker,
#update_pawn #modal_colour_picker,
#update_pawn #modal_icon_picker {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#create_pawn #icon_picker,
#update_pawn #modal_icon_picker  {
    justify-content: space-between;
}

#create_pawn #colour_picker label {
    width: 33px;
    height: 33px;
    background-color: #137232;
    cursor: pointer;
    border: 4px solid #e8f3e4;
}

#create_pawn #icon_picker label,
#update_pawn #modal_icon_picker label {
    width: 50px;
    height: 50px;
    cursor: pointer;
    border: 4px solid #e8f3e4;
}

#create_pawn #colour_picker label:hover,
#create_pawn #icon_picker label:hover,
#update_pawn #modal_colour_picker label:hover, 
#update_pawn #modal_icon_picker label:hover{
    border-color: #546268;
}

#create_pawn #colour_picker input[type="radio"]:checked+label,
#create_pawn #icon_picker input[type="radio"]:checked+label,
#update_pawn #modal_colour_picker input[type="radio"]:checked+label,
#update_pawn #modal_icon_picker input[type="radio"]:checked+label
{
    border-color: #263238;
}

#create_pawn input[type="radio"], #update_pawn input[type="radio"] {
    display: none;
}