/* Declare font face */
@font-face {
  font-family: RobotoMono;
  src: url(/fonts/RobotoMono-VariableFont_wght.ttf);
}

:root {
  --primary-color: #00416e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100vw;
  margin: auto;
  font-size: 16px;
  font-family: RobotoMono;
  /* background-color: #f3f8f3; */
}

.container {
  width: 100%;
  max-width: 1250px;
  margin: auto;
  padding: 0 20px;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

header {
  width: 100%;
  height: 55px;
  padding: 10px;
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
}

.logo {
  font-weight: 800;
  font-size: 28px;
}

header nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

header nav > ul li {
  font-weight: 600;
  font-size: 18px;
}

/* header nav > ul li a {
  color: #000;
} */

main {
  /* background-color: #f3f8f3; */
  background-color: #fff;
}

.g-signin-button-container {
  display: flex;
  justify-content: center;
  align-items: center;

  height: min(600px, 90vh);
}

.add-note {
  margin-bottom: 12px;
  border-bottom: 0.8px solid #e1e1e1;
}

.add-note form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.add-note > form input {
  border-radius: 4px;
  padding: 5px 8px;
  height: 35px;
}

.add-note > form input#note {
  width: clamp(200px, 50vw, 400px);
  margin-bottom: 0.5rem;
  border: 0.8px solid lightslategrey;
  /* background-color: #ffc772; */
}

.add-note > form textarea#note:focus {
  outline: none;
}

.add-note > form select#category {
  border: none;
  padding: 5px 8px;
  height: 35px;
  font-weight: 600;
  color: #f3f8f3;
  border-radius: 0;
  outline: none;
  background-color: var(--primary-color);
}

select:not(:-internal-list-box) {
  margin-right: 10px;
}

.add-note form .note-input-group {
  position: relative;
  width: 100%;
  max-width: 350px;
}
.add-note form .note-input-group textarea {
  width: 100%;
  resize: none;
  padding: 8px;
}

.add-note form > .note-input-group > input[type="submit"] {
  padding: 5px 12px;
  font-weight: 600;
  font-size: 17.25px;
  border: 0.8px solid rgba(168, 169, 170, 0.247);
  border-radius: 50%;
  color: #f3f8f3;
  background-color: #40b0ff;
  
  position: absolute;
  bottom: 5px;
  right: 5px;
}

.add-note > form input[type="submit"]:is(:hover) {
  background-color: var(--primary-color);
}

.add-note > form input[type="submit"]:is(:focus) {
  background-color: #5ccddecc;
}

label[for="category"] {
  padding: 5px 15px;
  font-weight: 600;
  color: #f3f8f3;
  background-color: var(--primary-color);
}

.card {
  /* color: #fff; */
  width: 100%;
  max-width: 450px;
  margin: 8px 0 16px;
  padding: 15px 8px;
  font-weight: 600;
  /* background-color: var(--primary-color); */
  border-radius: 8px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  position: relative;
}

.card:hover {
  box-shadow: 0 0 35px 0 rgba(100, 120, 188, 0.4);
}

.card > span {
  position: absolute;
  top: -12px;
  left: 0;
  padding: 2px 5px;
  font-size: 12px;
  color: #000;
  background-color: #40b0ff;
}

.card > p:nth-child(2) {
  padding-top: 10px;
  word-break: break-all;
  word-wrap: break-word;
}

.del-link, .restore-link {
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 50%;
  background-color: #9fc5f7;  
  
  position: absolute;
  top: -10px;
}

.del-link {
  color: #ff0000;
  right: 0px;
}

.restore-link {
  right: 30px;
  color: #40b0ff;
}

.del-link:hover, .restore-link:hover  {
  background-color: rgba(0, 50, 255, 0.19);
  /* border-radius: 5px; */
}

.shadow {
  box-shadow: 0 0 35px 0 rgba(130, 130, 130, 0.2);
}

.cat-bin-link {
  color: #000;
  padding: 4px;
  border-radius: 5px;
  background: #d0d0d2;
  display: inline-flex;
}

.cat-bin-link:hover {
  background: #d1d0d8;
}

.cat-bin-link > img { margin-left: 5px; }

/* Utility */
a {
  color: #fff;
  text-decoration: none;
}
