* {
  box-sizing: border-box;
  /* Add this line */
  font-family: Georgia, Garamond, serif;
}

h1,h2,h3,h4,h5
{
  padding: 0;
  margin: 1rem 0;
  margin-bottom: 0.3rem;
}

table {
  width: 90%;
  border-spacing: 0;
  margin: auto;
  flex: 5;
  flex-basis: 100%;
}
th,
td {  
  vertical-align:top;
  border: 1px solid #111;
  padding: 10px;
}
th {
  text-align: left;
  font-weight: bold;
  font-size:1.05rem;
  background-color: #f5ac7d22;
}
td
{
  background-color: #111111aa; 
}


html, body
{
  background-color: #202c39;
  color: #b8b08d;
  font-size: 1.05rem;
  line-height: 1.4;
}

a
{
  color: #f5ac7d;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: 300ms;
}

.notes
{
  max-height: 140px;
  overflow-y: auto;
}

.notes p
{
  margin:0;
  padding:0;
  margin-bottom: 20px;
}

a:hover
{
  color: #fff;
  text-decoration: none;
}

a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: #f5ac7d;
  transition: opacity 300ms, transform 100ms;
  opacity: 0;
  /*transform: translate3d(-50%, 0, 0);*/
}

a:hover::after,
a:focus::after{
  opacity: 1;
  /*transform: translate3d(0, 0, 0);*/
}


.grid-container {
  margin: 50px;
  padding: 10px;
  height: 40vh;
}

.grid-item {
  background-color: rgba(18, 18, 18, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  padding: 20px;
  margin: 10px;
}

.header {
  text-align: left;
  min-height: 100px;
}

.header .title
{
  margin: 0;
  padding: 0;
  font-size: 2rem;
  font-weight: bold;
  display: inline-block;
  float: right;
  position: relative;
  padding-right: 20px;
}

.body {
  grid-area: body;
  padding: 1rem;
}

.footer {
  grid-area: footer;
}

.footer p
{
  float: right; 
}

.sidebar-link {
  border: 1px solid #b8b08d00;
  display: inline-block;
  margin: 10px;
  padding: 10px;
  border-radius: 10px;
  background-color: #202c39;
  color: #b8b08d;
  font-weight:bold;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  text-decoration: none;
  transition: 0.1s;
  /* Add this line */
  text-align: center;
  min-width: 80px;
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-link.active {
  border: 1px solid #b8b08d66;
  box-shadow: #b8b08d66 0px 3px 1px 0px;
  transform: translateY(-0.25em);
  color: #b8b08d;
}

.sidebar-link::after,
.sidebar-link:hover::after,
.sidebar-link:focus::after
{
  opacity: 0;
}

.card-holder {
  width: 100%;

  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
}

.card-holder .card
{
  position: relative;
	width: 300px;
	height: 400px;
	background: rgba(255, 255, 255, 0.05);
	margin: 20px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
	border-radius: 15px;
	display: flex;
	justify-content: center;
	align-items: center;	
	overflow: hidden;
	color: #eee;
	background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: 300ms;
}

.card-holder .card .content
{
  opacity: 0;
  height: 100%;
  width: 100%;
  padding: 20px;
  background-color: transparent;
  transition: 300ms;
  overflow-y: auto;
}

.card-holder .card .content:hover
{
  backdrop-filter: blur(4px);
  background-color: #222222CC;
  opacity: 1;
}



/* Styling of the chatbox container.*/
.container {
  max-width: 70%;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
}

/* Styling of each individual 'chat message'.*/
.box {
  background-color: #111111cc;
  color: #B8B5A1;
  line-height: 1.7;
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Name of the bot speaking*/
.name {
  font-weight: bold;
  margin-bottom: 10px;
  color: #b8b08d;
}

/* Bot avatar styling */
.character-img {
  width: 60px;
  height: 90px;
  border-radius: 10%;
  margin-right: 20px;
  margin-top: 20px;
  object-fit: cover;
}

/* Text surrounded by quotes */
.quote {
  color: #8EACCD;
}

.brackets
{
  color: #D2E0FB;
}

/* Text surrounded by asterisks */
.asterisk {
  font-style: italic;
}

/* Triple-backtick code blocks */
.preformatted {
  background-color: #222;
  border: 1px solid #888;
  padding: 0.5rem;
  color: #D7E5CA;
  font-size: 0.96rem;
  border-radius: 8px;
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
  margin: 10px 0;
  font-family: 'Courier New', monospace;
  unicode-bidi: embed;
}

input {
  border:solid 1px #f5ac7d;
  border-radius: 5px;
  padding:7px 14px;
  margin-bottom:10px;
  background-color: #222;
  color: #eee;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
input:focus {
  outline:none;
  border-color:#aaa;
}
.sort {
  border-radius: 6px;
  border:none;
  display:inline-block;
  color:#f5ac7d;
  text-decoration: none;
  background-color: transparent;
  text-align: left;
  font-weight: bold;
  font-size:1.05rem;
}
.sort:hover {
  text-decoration: none;
  color:#fff;
}
.sort:focus {
  outline:none;
}
.sort:after {
  display:inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid transparent;
  content:"";
  position: relative;
  top:-10px;
  right:-5px;
}
.sort.asc:after {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #fff;
  content:"";
  position: relative;
  top:4px;
  right:-5px;
}
.sort.desc:after {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #fff;
  content:"";
  position: relative;
  top:-4px;
  right:-5px;
}

#log
{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Remove default bullets */
ul, #loglist {
  list-style-type: none;
}

#loglist>ul {
    margin: 0;
    padding: 0;
}

#loglist ul ul {
    padding-left: 2rem;
}

/* Remove margins and padding from the parent ul */
#loglist {

  flex: 1;
  position: sticky;
  top: 2rem;
  height: 100%;
}

#logholder
{
  flex: 3;
  overflow-y: auto;
  padding: 0 3rem;
}

#loginfo
{
  padding: 2rem;
  background-color: #111;
  border-radius: 4px;
  flex: 1;
}

#lognotes, #modelinfo, #settingsinfo
{
  padding: 0 1.2rem;
  margin-bottom: 5px;
}

#lognotes p
{
  margin-top: 0;
  margin-bottom: 1rem;
}

.infolabel
{
  font-size:1.05rem;
  color: #f5ac7d;
  background-color: #f5ac7d22;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 5px;
  font-weight: bold;
}

.caret
{
  font-weight: bold;
  margin-bottom: 5px;
}

/* Style the caret/arrow */
.caret, #loglist li a {
  cursor: pointer;
  user-select: none; /* Prevent text selection */
}

/* Create the caret/arrow with a unicode, and style it */
.caret::before {
  content: "\25B6";
  color: #f5ac7d;
  display: inline-block;
  margin-right: 6px;
}

/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
.caret-down::before {
  transform: rotate(90deg);
}

/* Hide the nested list */
.nested {
  display: none;
}

/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
ul .active {
  display: block;
}

.webring-header
  {
    background:#111111dd;
    border-radius: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .chatbots-webring-widget
  {
    display: inline-block;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
  }
  
  .chatbots-webring-widget-buttons
  {
    display: inline-block;
  }


@media screen and (max-width: 500px) {
  .grid-container {
      margin: 10px;
  }
  .header a {
    float: none;
    text-align: left;
  }
  .header p {
    float: none;
    display: block;
    text-align: center;
    font-size: 1.2rem;
  }
  .footer p
  {
    float: none;
    display: block;
    text-align: center;
  }
  
  #log
  {
    flex-direction: column;
  }
  
  #loginfo
  {
    order: 2;
    max-width: 98%;
  }
  
  #loglist {
    position: relative;
    margin-bottom: 2rem;
    order: 1;
  }
  
  #logholder
  {
    order: 3;
    max-width: 98%;
    padding: 0;
    
  }
  .box
  {
    display: block;
  }
}