:root { 
  --outer-space: #d5f1f1;
  --bright-turquoise: #d90429;
  --gin: #d90429;
  --heliotrope: #1d3557;
}

/* set content highlight color and background */
::selection {
  background-color: var(--bright-turquoise);
  color: var(--outer-space);
}

html {
  font-size: 62.5%;
}

header {
  flex:auto;
  position: static; 
  top: 0; 
  width: 100%;
  margin: 0;
  text-align: left;
  border-bottom: 10px ridge #457b9d;
}

header h1.page-title {
  font-size: 4.5rem;
}

body {
  font-family: 'STIX Two Text', serif;  ;
  display: flex;
  /* Forces elements to the next line if they don't fit */
  flex-wrap: wrap;
  margin-top: .5%;
  /* set body font size to 1.75rem, which is 1.75x more than the font-size of 10px, making it 17.5px  */
  font-size: 1.75rem;
  line-height: 1.5;
  color: var(--gin);
  background-color: var(--outer-space);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.25rem;
  color: var(--heliotrope);
  font-weight: 700;
  line-height: 1;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 3.5rem;
}

h3 {
  font-size: 3rem;
}

h4 {
  font-size: 2.5rem;
}

h5 {
  font-size: 2rem;
}

h6 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: #1d3557;
}

img {
  flex:auto;
  max-width:98%;
  padding: 1px;
  text-align: center;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding-top: 60px;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5px auto; /* 15% from the top and centered */
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  /* Position it in the top right corner outside of the modal */
  position: absolute;
  right: 25px;
  top: 0;
  color: #000;
  font-size: 35px;
  font-weight: bold;
}

/* Close button on hover */
.close:hover,
.close:focus {
  color: rgb(107, 1, 1);
  cursor: pointer;
}

/* Add Zoom Animation */
.animate {
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
  from {-webkit-transform: scale(0)}
  to {-webkit-transform: scale(1)}
}

@keyframes animatezoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

main {
  width: 96%;
  margin: 1rem auto;
  text-align: center
}

section {
  position: sticky; 
  top: 0 auto; 
  width: 96%;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;

}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #1d3557;
}

li {
  float: right;
}

li a {
  display: block;
  color:#f1faee;
  text-align: right;
  padding: 14px 16px;
  text-decoration: none;
}

/* Change the link color on hover */
li a:hover {
  background-color: #8ec5e7;
}

footer {
  display:flexbox;
  position:relative;
  float:none;
  bottom: 0px;
  margin: 0;
  text-align: center;
  color: white;;
  background-color: #1d3557;
  border-style: ridge;
  border-color: #1d3557;
  border-width: 2.5px;
  border-radius: 8px;
}

/* create our main grid with flexbox, use negative margins to offset the padding on the .card-column class */
.row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}


.justify-center {
  justify-content: center;
}


/* Add a red text color to links */
a {
  color: rgb(107, 1, 1);
  text-shadow:var(--heliotrope);
}

#featuredcontent {
  display:flexbox;
  position:sticky;
  float:none;
  background-color: #f1faee;
  text-align: center ;
  color: #1d3557;
  width: 75%;
  border-style: ridge;
  border-radius: 20px; 
  border-color:#457b9d;
  border-width: 5px;
  margin-bottom: 2rem;
}


/* Set a background color and center the text of the "sign in" section */
#register {
  display:flexbox;
  position:sticky;
  float:none;
  background-color: #8ec5e7;
  text-align: center;
  color: #1d3557;
  width: 50%;
  border-style: ridge;
  border-radius: 20px; 
  border-color:rgb(107, 1, 1);
  border-width: 5px;

}

.white {
  color: white
}

.red {
  color: rgb(107, 1, 1);
}

/* using a mobile-first approach, set base column width to be 100% and we'll update it using media queries for larger screen sizes */
.card-column {
  flex: 1 0 100%;
  padding: 1.5rem;
  /* when the screen resizes, make it so our columns don't jump in size */
  transition: flex-basis 500ms linear;
  margin-bottom: 1.5rem;

}

/* make each code card a flexbox column to align and justify content within it */
.code-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  padding: 2rem;
  color: var(--heliotrope);
}

.code-card .card-header {
  /* use position and negative margins to move title of card over the card's outline and create an overlap effect */
  position: relative;
  margin: -4rem 0 1.5rem 0;
  padding: 0.5rem 1rem;
  background-color: #f1faee;
  color: var(--heliotrope);
  border: 2px ridge var(--gin);
  border-radius: 8px;
  transition: all 0.5s ease-in-out;
}

/* set an outer and inner drop shadow on the card to create a glowing effect on hover */
.code-card:hover,
.code-card:hover .card-header {
  box-shadow: inset 0px 0px 8px var(--heliotrope), 0 0 15px var(--heliotrope);
}

/* each card's code block grows to the height of the largest code block on the page, making each card even in height */
.code-card .code-block {
  flex-grow: 1;
}


/* Chat containers */
.container {
  display:flexbox;
  position:sticky;
  float:none;
  width:60%;
  border: 2px solid #d90429;
  background-color: #f1faee;
  text-align: center;
  border-style: ridge;
  border-radius: 8px;
  border-color:#457b9d;
  border-width: 5px;
  padding: 10px;
  margin: 10px 0;
}

#sendMessage{  display:flexbox;
  position:sticky;
  float:none;
min-height:50px;
min-width: 100px;
         margin-bottom:10px;
         border-color: var(--gin);
         }
       #content{display:flexbox;
        position:sticky;
        float:none;
           min-width:500px;
          min-height: 400px;
            border:3px ridge var(--heliotrope);
           border-radius: 8px;
           background-color: whitesmoke;
          overflow: scroll;
        }
      #messColumn{width:300px;background-color: whitesmoke;}

      #btn {border-color:var(--heliotrope);
      border-width: 2px;
    border-style: ridge;
  background-color:var(--bright-turquoise);}

/* Darker chat container */
.darker {
  border-color: #ccc;
  background-color: #ddd;
}

/* Clear floats */
.container::after {
  content: "";
  clear: both;
  display: table;
}

/* Style images */
.container img {
  float: left;
  max-width: 60px;
  width: 75%;
  margin-right: 20px;
  border-radius: 50%;
}

/* Style the right image */
.container img.right {
  float: right;
  margin-left: 20px;
  margin-right:0;
}

/* Style time text */
.time-right {
  float: right;
  color: #aaa;
}

/* Style time text */
.time-left {
  float: left;
  color: #999;
}

/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
  
  background-color: #555;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 28px;
  width: 280px;
}

/* The popup chat - hidden by default */
.form-popup {
  display: flexbox;
  position: sticky;
  float: left;
  bottom: 0;
  right: 15px;
  border: 3px ridge #d90429;
  border-radius: 8px;
  z-index: 9;
}

/* Add styles to the form container */
.form-container {
  display: flexbox;
  position: sticky;
  float: left;
  bottom: 15px;
  left: 15px;
  background: #ccc;

  border: 3px ridge #d90429;
  border-radius: 8px;
  z-index: 9;
}

/* textarea */
.form-container textarea {
  width: 90%;
  padding: 15px;
  margin: 5px 0 5px 0;
  border: none;
  background: #f1f1f1;
  min-height: 200px;
}

/* When the textarea gets focus, do something */
.form-container textarea:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
  background-color: #457b9d;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:10px;
  opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
  opacity: 1;
}
/* end of chatbox*/



/* using a mobile-first approach, use `min-width` values going from narrow -> wide for a responsive design */
@media screen and (min-width: 768px) {
  /* on tablets, set columns to only be 50% of the width and not grow */
  .card-column {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* select the last child to grow to full width if it has space to grow */
  .card-column:last-child {
    flex-grow: 1;
  }
}

/* media query for larger screens */
@media screen and (min-width: 992px) {
  header {
    width: 75%;
  }

  .card-column {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}






