:root {
    --border: oklch(37.2% 0.044 257.287); /* väri otettu tailwindcss sivulta https://tailwindcss.com/docs/colors */
    --bg: rgb(11, 18, 32);
}

body {
    background-color: var(--bg);
    margin: 0;
    color: white;
    font-family: "Elsie", serif;
    font-weight: 400;
    font-style: normal;
}

header {
    border-bottom: 1px solid rgb(31, 37, 37);
    display: flex;
}

header p {
    font-size: x-large;
    margin-left: 1rem;
}

#saveButton {
    margin: 15px;
}

.room-items button{
    margin-left: 5px;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2%;
}

.container {
  display: flex;
  flex: 1;
  gap: 10px;
  width: 100%;
  max-width: 80%
}

.locations {
    flex: 0 0 20%;
}

.room-buttons, .items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.main-functions {
    flex: 1 1 0; min-width: 0;
}

.main-functions p, .main-functions h2 {
    text-align: center;
}

.misc-info {
    flex: 0 0 20%;
}

.container-item {
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 5px 15px;
}

@media (max-width: 800px) {
  .container { flex-direction: column; gap: 5px; max-width: 85%;}
  .locations, .misc-info { flex-basis: auto; }
}

input[type=text], input[type=number]  {
    width: 100%;
    display: inline-block;
    padding: 10px;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    text-decoration: none;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    caret-color: white;
    outline: none;
    color: white;
    box-sizing: border-box;
}

button, a {
    padding: 10px 15px;
    background-color: oklch(44.052% 0.14321 260.453);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: white;
    font-family: "Elsie", serif;
    font-weight: 400;
    font-size: large;
}

.buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

#loadSaveButton {
    padding: 10px 15px;
    background-color: oklch(44.052% 0.14321 260.453);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: white;
    margin-top: 5px;
    font-size: large;
}

#fileSelector {
    display: none;
}

.luutSelect {
    display: flex;
    align-items: center;
}

.luutSelect label {
    font-size: 1.5rem;
    
}

#playerBonesCheckbox {
    font: inherit;
    width: 1.5em;
    height: 1.5em;
}