body {
    background-color: #D0D0D0;
    margin: 0;
}

header {
    background-color: #FFFFFF;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo-container {
    max-width: 50px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.logo-container img {
    width: 250%;
    height: auto;
}

.logo-container-small {
    position: absolute;
    top: 0;
    right: 0;
    max-width: 30px;
    margin-bottom: 10px;
}

.logo-container-small img {
    width: 100%;
    height: auto;
}

.title {
    margin: 0;
    text-align: center;
    font-size: 15px;
	font-weight: 700;
    color: #333;
}

.subtitle {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
	position: relative;
}

.conversation {
    flex-grow: 1;
    overflow-y: auto;
	padding-bottom: 50px;
}
.chat-container {
    position: absolute;
    max-height: calc(100vh - 230px);
	width: 100%; /* Add this line */
    overflow-y: auto; 
}

.bot {
    background-color: #FFFFFF;
    color: #000000;
    border-radius: 20px;
    padding: 10px 20px;
    margin-bottom: 10px;
    max-width: 82%;
    float: left;
    clear: both;
}
.bot-error {
    background-color:  #ffa64d;
    color: #000000;
    border-radius: 20px;
    padding: 10px 20px;
    margin-bottom: 10px;
    max-width: 85%;
    float: left;
    clear: both;
}

.user {
    background-color: #09B950;
    color: #FFFFFF;
    border-radius: 20px;
    padding: 10px 20px;
    margin-bottom: 10px;
    max-width: 70%;
    float: right;
    clear: both;
}

.input-container {
    display: flex;
    align-items: center;
    width: calc(100% - 50px);
    /*position: absolute;*/
    bottom: 0;
    padding-bottom: 10px;
    box-sizing: border-box;
    left: 20px;
    z-index: 1;
}

#message {
    flex-grow: 1;
    margin-right: 10px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #CCCCCC;
}

#send-btn {
    background-color: #09B950;
    color: #FFFFFF;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
}

.footer {
    position: relative;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

html, body {
    height: 100%;
    margin: 0;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.content {
    flex: 1;
}
.question-count {
    color: red;
    font-size: 14px;
}
.begin-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    transition-duration: 0.4s;
    border-radius: 4px;
}

.begin-button:hover {
    background-color: white;
    color: black;
}

/* Increase font size on mobile devices */
@media only screen and (max-width: 600px) {
    body {
        font-size: 18px;
    }

    input[type="text"] {
        font-size: 18px;
        height: 40px;
		width: 200px;
    }
	.chat-container {
        max-height: calc(100vh - 170px);
    }
}
.hide {
  display: none;
}
.instructions-box {
  padding: 16px;
  background-color: #f1f1f1;
  border-radius: 8px;
  margin-bottom: 16px;
}

.instructions-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #4d0019;
  text-align: center;
}

#continue-btn {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  float: right;
}

.instructions-icon-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  cursor: pointer;
}

.instructions-icon {
  width: 30px;
  height: auto;
  margin-top: 20px;
}

.instructions-slideout-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
}

.instructions-close-btn {
  background-color: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  float: right;
}
.closebtn {
  background-color: #003d00;
  border-radius: 20px;
  border: 1px solid #18ab29;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-family: Arial;
  font-size: 14px;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0px 1px 0px #2f6627;
  transition: background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
   margin-top: 30px;
}

.closebtn:hover {
  background-color: #5cbf2a;
}

.closebtn:active {
  position: relative;
  top: 1px;
}
.instructions-close-btn-container {
    text-align: center;
}
