/*
 * 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.
 *
 *= require simple_calendar
 */


trix-toolbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: white;
}

/**** Basic Layout and Unility (Monica) ****/
* {box-sizing: border-box;}

.flex {
  display: flex;
}
.flex-1 {
  flex: 1;
}
.shrink {
  flex: 0 1 auto;
}
.space-between {
  justify-content: space-between;
}


/***************** END *****/

body {
  font-family: sans-serif;
  margin: 0;
}

a:link,
a:visited {
  color: steelblue;
  text-decoration: none;
}

a:hover {
  background: rgba(255, 255, 0, 0.2);
  /* box-shadow: 0 0 0 5px yellow; */
  border-radius: 1px;
  /* text-decoration: underline; */
}

/** Table **/
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  background: #fff;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 0.5em 0.75em;
  text-align: left;
}

table th {
  background: #f7f7f7;
  font-weight: 600;
}

table tr:nth-child(even) {
  background: #fafafa;
}

table tr:hover {
  background: #f0f7ff;
}
/** End Table **/






input,
textarea {
  width: 100%;
  font-size: 1.2em;
  padding: .5em;
}

/* textarea:focus {
  min-height: 8em;
} */


.notice {
  color: green;
  background: white;
  position: absolute;
  bottom: 0;
  right: 1em;
  z-index: 1000;
  margin: 0;
  border: 1px solid #dedede;
  padding: .5em 1em;
  border-radius: 5px;
}

/*** Deck List ***/
ul.deck-list {
  list-style: none;
  margin: 0;
  padding: 0;

  li {
    border-bottom: 1px solid #f0f0f0;
    margin-left: -.5em;
  }
  li > a {
    display: block;
    padding: 1em .5em;
  }

}

/*** Cards List ***/
#cards,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

  .card {
    margin-top: 0;
    margin-bottom: 0;
  }
}





.button_to_group {
  margin: 1em 0;
}
.button_to_group form {
  display: inline;
}

.pagy a {
  padding: .1em .6em;
}


/* Columns Grid */
.columns-horizontal {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: .5em;
}
.columns-horizontal > *:hover {
  background: #ffffef;
}


.comment-show form {
  display: inline;
  opacity: 0.1;
}
.comment-show:hover form {
  opacity: 1;
}
.comment-show button {
  font-size: .5em;
}



.send-message-footer {
  /* border-top: 1px solid #ccc; */
}


#search-input {
  border-radius: 5px;
  border-color: #ccc;
}

.grouped-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;

  /* border: 1px solid #ccc; */
  /* border-radius: 5px; */


  & > a {
    text-decoration: none;
    padding: .3em .6em;
    border: 1px solid #ccc;
    background: rgba(235, 250, 255, 0.2);
    margin-left: -1px;

    &:hover {
      background: rgba(235, 250, 255, 0.7);
    }
  }

  & > a:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-left: 0;
  }
  & > a:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
  }

  & > a.active {
    background: rgba(70, 130, 180, 0.2);
    font-weight: 600;
  }
}
