/* || FONT FACE */
/* https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Text_styling/Web_fonts */
/* https://www.fontsquirrel.com/ */
/* https://transfonter.org/ */
@font-face {
    font-family: 'Quintessential';
    src: url('fonts/Quintessential-Regular.woff2') format('woff2'),
        url('fonts/Quintessential-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ABeeZee';
    src: url('fonts/ABeeZee-Regular.woff2') format('woff2'),
        url('fonts/ABeeZee-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* || CSS RESET */
/* https://www.joshwcomeau.com/css/custom-css-reset/ */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  /* height: auto; */
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
#root, #__next {
  isolation: isolate;
}
[hidden] {
  display: none;
}

/* || VARIABLES */
:root {
  --root-font-size: 16px;
  --root-font-size-bigger: 18px;
  --body-bg-color: rgb(255, 247, 224);
  --body-font-color: rgb(29, 29, 29);
  --body-font-family: "ABeeZee", sans-serif;
  --h1-font-family: "Quintessential", sans-serif;
  --heading-font-family: "ABeeZee", sans-serif;
  --h1-font-size: 4rem;
  --h2-font-size: 2em;
  --h3-font-size: 1.4em;

  --h1-font-margin-bottom: 2rem;
  --h1-font-padding-top: 1rem;
  --title-font-margin-bottom: 0.4rem;
  --title-font-margin-top: 1.4rem;
  --p-font-margin-bottom: 0.6rem;
  
  --nav-bg-color: #333;
  --nav-font-color: #f2f2f2;
  --header-bg-color: #333;
  --header-font-color: #f2f2f2;
  --footer-bg-color: #333;
  --errorlist-font-color: rgb(255, 40, 40);

  --btn-base-color: rgb(255, 255, 255);
  --btn-base-bg-color: rgb(45, 125, 255);
  --btn-base-border-radius: 3px;
  --btn-base-border-style: outset;
  --btn-base-font-color: rgb(255, 255, 255);
  --btn-base-hover-bg-color: rgb(0, 47, 255);
  --btn-cancel-bg-color: rgb(255, 40, 40);
  --btn-cancel-border: 3px outset rgb(255, 40, 40);
  --btn-cancel-font-color: rgb(255, 40, 40);
  --btn-cancel-hover-bg-color: rgb(255, 40, 40);
  --btn-cancel-hover-font-color: rgb(255, 255, 255);
  --btn-delete-bg-color: rgb(255, 40, 40);
  --btn-delete-font-color: rgb(255, 255, 255);
  --btn-delete-hover-bg-color: rgb(187, 0, 0);
  --btn-submit-bg-color: rgb(98, 192, 79);
  --btn-submit-hover-bg-color: rgb(0, 139, 19);
  --btn-sign-in-bg-color: rgb(255, 255, 255);
  --btn-sign-in-border: rgb(255, 255, 255);
  --btn-sign-in-font-color: rgb(29, 29, 29);
  --btn-sign-in-hover-bg-color: #333;
  --btn-sign-in-hover-border: rgb(255, 255, 255);
  --btn-sign-in-hover-font-color: rgb(255, 255, 255);

  --chat-msgs-border-color: #333;
  --chat-msg-details-color: rgb(128, 126, 126);
  --chat-msg-to-bg-color: rgb(142, 212, 255);
  --chat-msg-from-bg-color: rgb(168, 255, 152);
}

/* || PAGE STYLES */
html {
  font-size: var(--root-font-size);
}
body {
  background-color: var(--body-bg-color);
  color: var(--body-font-color);
  font-family: var(--body-font-family);
  margin: 0;
  min-height: 100vh;
}
h1 {
  font-family: var(--h1-font-family);
  font-size: var(--h1-font-size);
  margin-bottom: var(--h1-font-margin-bottom);
  padding-top: var(--h1-font-margin-top);
}
h2 {
  font-family: var(--heading-font-family);
  font-size: var(--h2-font-size);
  font-style: italic;
  margin-bottom: var(--title-font-margin-bottom);
  margin-top: var(--title-font-margin-top);
}
h3 {
  font-family: var(--heading-font-family);
  font-size: var(--h3-font-size);
  font-style: italic;
  margin-bottom: var(--title-font-margin-bottom);
  margin-top: var(--title-font-margin-top);
}
p {
  font-size: var(--p-font-size);
  margin-bottom: var(--p-font-margin-bottom);
}
ul, ol {
  font-size: 1rem;
  margin-bottom: var(--p-font-margin-bottom);
}
.errorlist {
  color: var(--errorlist-font-color);
}

/* || PAGE LAYOUT */
.container {
  margin-left: auto;
  margin-right:auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  width: 100%;
}
@media (min-width: 640px) {
  .container {
    max-width: 640px;
    padding-right: 3rem;
    padding-left: 3rem;
  }
}
@media (min-width: 768px) {
  html {
    font-size: var(--root-font-size-bigger);
  }
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1024px;
  }
}

/* || NAVIGATION */
nav {
  background-color: var(--nav-bg-color);
  border-bottom: solid 0.5px;
  overflow: hidden;
}
nav a {
  float: left;
  display: block;
  color: var(--nav-font-color);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}
nav a:hover {
  background-color: #ddd;
  color: black;
}
nav a.active {
  background-color: #04AA6D;
  color: white;
}
nav .logo {
  /* background-color: #004d33; */
  /* display: inline-block; */
  padding: 11.4px 16px;
}
nav .icon {
  display: none;
}
 /* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  nav a:not(:first-child) {display: none;}
  nav a.icon {
    /* float: right;
    display: block; */
    display: block;
    position: absolute;
    right: 0;
    top: 0;
  }
}
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  nav.responsive {position: relative;}
  nav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  nav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* || PAGE HEADER */
#page-header {
  background-color: var(--header-bg-color);
  color: var(--nav-font-color);
  margin-bottom: 2em;
  padding-bottom: 2em;
  padding-top: 2rem;
  text-align:center;
}
#page-header a.sign-up {
  color: var(--nav-font-color);
}
#page-header a.sign-up:hover {
  background-color: var(--btn-sign-in-bg-color);
  color: var(--btn-sign-in-font-color);
}

/* || CHAT */
@media (min-width: 768px) {
  div#chat-window {
    width: 100%;
  }
}
/* @media (min-width: 1024px) {
  div#chat-window {
    width: 42em;
  }
} */
div#previous-messages {
  border: solid;
  border-color: var(--chat-msgs-border-color);
  padding: 20px;
  width: 100%;
  height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column-reverse;
}
div.chat-msg {
  margin-bottom: 0.5em;
}
div.chat-msg-from {
  margin-left: 30%;
  /* text-align: right; */
}
div.chat-msg-to {
  margin-right: 30%;
}
/* .chat-msg-sender-from,
.chat-msg-sender-to {
  font-size: small;
  font-style: italic;
  margin-bottom: 0px;
} */
div.chat-msg-content {
  border-radius: 0.5em;
  border-style: outset;
  /* font-weight: 600; */
  margin-bottom: 0px;
  margin-top: 0px;
  padding: 5px 11px;
  text-decoration: none;
}
div.chat-msg-content-to {
  background-color: var(--chat-msg-to-bg-color);
  border-color: var(--chat-msg-to-bg-color);
  
}
div.chat-msg-content-from {
  background-color: var(--chat-msg-from-bg-color);
  border-color: var(--chat-msg-from-bg-color);
  
}
p.chat-msg-details {
  color: var(--chat-msg-details-color);
  font-size: small;
  font-style: italic;
  margin-top: 0px;
  margin-bottom: 15px;
}
p.chat-msg-details a {
  color: var(--chat-msg-details-color);
}
p.chat-msg-details a:hover {
  background-color: rgb(224, 222, 222);
  color: var(--chat-msg-details-color);
}

/* || PROFILE */ 

#profile .cards {
  display: grid;
  grid-gap: 20px;
  /* grid-template-columns: 40% 40%; */
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-template-rows: auto;
  margin: 1em auto;
  max-width: 700px;
}
#profile .card {
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  border: 1px solid #999999;
  border-radius: 5px;
  padding: 2px 16px;

  /* display: grid;
  grid-template-rows: max-content 200px 1fr; */
}
/* On mouse-over, add a deeper shadow */
#profile .card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
#profile h2 {
  font-size: 1.4rem;
  margin-top: 0.4rem;
  /* text-align: center; */
}

#profile-image-preview img {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  height: 250px;
  transition: 0.3s;
  border: 1px solid #999999;
  border-radius: 5px;
  padding: 10px;
}
#profile-image-preview img:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
/* || FOOTER */ 
footer {
  background-color: var(--footer-bg-color);
  min-height: 28em;
  overflow: hidden;
  padding-bottom: 2em;
  padding-top: 2em;
  margin-top: 7em;
}
footer p {
  color: #f2f2f2;
  text-align: center;
}
footer a {
  color: #f2f2f2;
  text-decoration: none;
}
footer a:hover {
  background-color: #ddd;
  color: black;
}

/* || BUTTONS */
a.btn-base {
  background-color: var(--btn-base-bg-color);
  border-color: var(--btn-base-bg-color);
  border-radius: var(--btn-base-border-radius);
  border-style: var(--btn-base-border-style);
  color: var(--btn-base-font-color);
  display: inline-block;
  font-weight: 600;
  margin-bottom: 1em;
  margin-top: 1em;
  padding: 5px 11px;
  text-decoration: none;
}
a.btn-base:hover {
  background-color: var(--btn-base-hover-bg-color);
  border-color: var(--btn-base-hover-bg-color);
}
a.btn-delete {
  background-color: var(--btn-delete-bg-color);
  border-color: var(--btn-delete-bg-color);
  /* color: var(--btn-base-font-color); */
}
a.btn-delete:hover {
  background-color: var(--btn-delete-hover-bg-color);
  border-color: var(--btn-delete-hover-bg-color);
}
a.btn-cancel {
  background-color: var(--btn-cancel-bg-color);
  border-color: var(--btn-delete-bg-color);
  /* color: var(--btn-cancel-font-color); */
  margin-top: 2em;
}
a.btn-cancel:hover {
  background-color: var(--btn-cancel-hover-bg-color);
  color: var(--btn-cancel-hover-font-color);
}
a.btn-sign-in {
  background-color: var(--btn-sign-in-bg-color);
  border-color: var(--btn-sign-in-border);
  color: var(--btn-sign-in-font-color);
}
a.btn-sign-in:hover {
  background-color: var(--btn-sign-in-hover-bg-color);
  border-color: var(--btn-sign-in-hover-border);
  color: var(--btn-sign-in-hover-font-color);
}

/* || FORMS */
input[type=text], input[type=password], input[type=email], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}
label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}
input[type=submit] {
  background-color: var(--btn-submit-bg-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  /* float: right; */
  margin-top: 1em;
  margin-bottom: 1em;
}
input[type=submit]:hover {
  background-color: var(--btn-submit-hover-bg-color);
}
input[type='checkbox'] {
  width:25px;
  height:25px;
  background:white;
  border-radius:5px;
  border:2px solid #555;
}
input[type='checkbox']:checked {
  background: #abd;
}
button[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  /* float: right; */
  margin-top: 1em;
  margin-bottom: 1em;
}
button[type=submit]:hover {
  background-color: #45a049;
}
.helptext {
  font-size: small;
  font-style: italic;
}
ul.errorlist {
  color: var(--errorlist-font-color);
}

/* || EVENT PAIRS TABLE */
table.event-pairs {
  /* border-style: solid; */
  width: 100%;
}
table.event-pairs td {
  border-style: double;
  text-align: center;
}
table.event-pairs th {
  border-style: double;
  font-weight: bold;
}
table.event-pairs a.btn-delete {
  font-size: 0.8em;
}

/* || SNACKBAR */
#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #02ac73;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  /* font-size: 17px; */
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 5.5s;
  animation: fadein 0.5s, fadeout 0.5s 5.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;} 
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;} 
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

#snackbar ul {
  margin: 0;
  padding: 0;
  text-align: center;
  list-style-type: none;
}


/* || OTHER */

.blank-space {
  min-height: 24em;
}
.small-blank-space {
  min-height: 10em;
}