/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


:root {
  --toolbar-height: 60px;
}

/*
 * Small Screen
 */

@media only screen and (max-width: 767px) {
  :root {
    color-scheme: light;
    --page-max-width: 1600px;
    --sidebar-width: 0px;
    --display-navbutton: inline-block;
  }
}

/*
 * Medium Screen
 */

@media only screen and (min-width: 768px) and (max-width: 1199px) {
  :root {
    color-scheme: light;
    --page-max-width: 1200px;
    --sidebar-width: 260px;
    --display-navbutton: none;
  }
}

/*
 * Large Screen
 */

@media only screen and (min-width: 1200px) {
  :root {
    color-scheme: light;
    --page-max-width: 1200px;
    --sidebar-width: 260px;
    --display-navbutton: none;
  }
}

* {
  padding: 0;
  margin: 0;
  font-family: 'Crimson Pro';
}

body {
  display: flex;
  flex-direction: column;
}

main {
  display: flex;
  flex-direction: column;
  background-color: white;
}

main.logged {
  margin-left: var(--sidebar-width);
}

main .content {
  width: 97%;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin: auto;
  margin-top: var(--toolbar-height);
  box-shadow: 2px 2px 5px #eee;
}

h1 {
  font-size: 25pt;
  font-weight: bold;
}

p {
  font-size: 11pt;
  font-weight: normal;
}

main {
  text-align: left;
}

span.notice {
  color: #777;
  font-size: 10pt;
}

main a {
  color: black;
  text-decoration: none;
}

div.page {
  display: flex;
  flex-flow: column;
  height: 100%;
  top: 0;
  bottom: 0;
}

main a:hover { text-decoration: underline; }

button, input[type=submit] {
  font-size: 12pt;
  padding: 8px;
  color: black;
  background-color: white;
  border-radius: 2px;
}

button:active, input[type=submit]:active {
  background-color: #454545; 
}

hr {
  border: 1px dotted #eee;
}


@media only screen and (min-width: 1200px) {
  div.content {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
}

span.tooltip {
  display: block;
  padding: 5px;
  font-size: 9pt;
  border: 1px dotted grey;
  border-radius: 4px;
}