/* base_style.css */

html {
    height: 100%;
}

body,
pre,
textarea,
input {
    font-family: Courier, monospace;
    font-size: 1em;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo {
    height: 30px;
}

#menu {
    background-color: #444;
    display: flex;
    flex-shrink: 0;
}

#menu.debug {
    background-color: #8e44ad;
}

#footer {
    background-color: #444;
    display: flex;
    width: 100%;
    flex-shrink: 0;
}

.menu-item {
    align-self: center;
    flex-basis: auto;
    padding: 10px 30px;
}

.logout-button {
    color: white;
    background: none;
    border: none;
    padding: 10px 30px;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    height: 100%;
}

.menu-item-logo {
    padding: 10px;
}

.menu-item-title {
    padding-left: 0px;
}

.menu-item a {
    color: white !important;
    text-decoration: none;
}

.menu-fill {
    flex-grow: 4;
}

#container {
    width: 1000px;
    margin: 0 auto;
    padding: 10px;
    flex: 1 0 auto;
}

h1 {
    text-align: left;
    font-weight: 700;
}

pre {
    padding: 3px;
    font-size: 1em;
    background-color: #ececec;
    /* border: 1px solid #444; */
}

/* login/register */
.registration-container {
    display: flex;
}

.registration-container > div {
    display: flex;
    flex-direction: column;
}

.registration-container > hr {
    flex-shrink: 3;
    margin: 0 30px;
}

form > input[value='login'], input[value='sign up'] {
    width: 100%;
    margin-top: 10px;
    padding: 3px;
}

.form-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

p.description {
    color: black;
    opacity: 1;
    word-wrap: break-word;
}

.love, .alert-danger {
    color: #c0392b;
}

.love:hover {
    color: #e74c3c;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:visited {
    color: #2980b9;
}

a:hover {}

#story {
    height: 600px;
    overflow: scroll;
}

.messages {
    background-color: #ecf0f1;
    margin: 0;
    padding: 8px 16px 16px 16px;
}

.messages p {
    padding-top: 8px;
    margin: 0;
}

.messages p.success {
    color: #27ae60;
}

.messages p.warning {
    color: #c0392b;
}

.twopane.solo #editor {
    display: none;
}

.twopane.solo .split {
    display: none;
}

.twopane.solo #player {
    position: inherit;
    left: 0;
}

.helptext {
    display: none;
}

.danger {
    color: #c0392b;
}

.badge {
    background-color: #c0392b;
    padding: 4px;
    border-radius: 4px;
}

.badge:hover {
    background-color: #e74c3c;
}

.menu-item a.new-feature {
    color: #f1c40f !important;
}

form.link {
    display: inline;
    padding: 0;
    margin: 0;
}

form.link input[type=submit] {
    border: none;
    background: none;
    display: inline;
    color: #3498db;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

h2.story-title {
    margin-bottom: 0;
}

table.story-history td {
    vertical-align: top;
}

table.story-history td:nth-child(1) {
    min-width: 10em;
}

table.story-history th {
    text-align: left;
    vertical-align: top;
}

/* GOOGLE SIGN-IN/UP STYLING (https://developers.google.com/identity/branding-guidelines) */
.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: #f2f2f2;
    background-image: none;
    border: none;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    /* max-width: 400px; */
    min-width: min-content;
  }
  
  .gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
  }
  
  .gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
  }
  
  .gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
  }
  
  .gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
  }
  
  .gsi-material-button:disabled .gsi-material-button-state {
    background-color: #1f1f1f1f;
  }
  
  .gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
  }
  
  .gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
  }
  
  .gsi-material-button:not(:disabled):active .gsi-material-button-state, 
  .gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #001d35;
    opacity: 12%;
  }
  
  .gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  }
  
  .gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #001d35;
    opacity: 8%;
  }

/* NEW STORY */
form.new_story_form {
    display: flex;
    flex-direction: column;
    gap: 10px
}

form.new_story_form > div {
    display: flex;
    flex-direction: column;
}

.input-container button,
form button[type="submit"] {
    background-color: #8e44ad;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.input-container button:hover,
form button[type="submit"]:hover {
    background-color: #2980b9;
}

/* Style textarea for longer responses */
.input-container textarea {
    width: 350px;
    min-height: 60px;
    max-height: 200px;
    padding: 8px;
    font-size: 14px;
    font-family: inherit;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    overflow-y: auto;
}

.input-container textarea:focus {
    border-color: #3498db;
    outline: none;
}

/* Keep flex styling only on the form for textarea and button layout */
.input-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.input-container form button[type="submit"] {
    align-self: flex-start;
    width: auto;
    margin-top: 0;
}
