@font-face {
    font-family: "rainyhearts";
    src: url(fonts/rainyhearts.ttf) format("truetype");
    font-weight: 500;
    font-style: normal
}

@font-face {
    font-family: "billo";
    src: url(fonts/billo.TTF) format("truetype");
    font-weight: 500;
    font-style: normal
}


@font-face {
    font-family: "stringlime";
    src: url(fonts/Stringlime.otf) format("truetype");
    font-weight: 500;
    font-style: normal;
}
    
    

.container {
  display: grid;
  grid-template:
    "header header header header header header" auto/* row 1 */
    "sidebar main main main main main" auto  /* row 2 */
    "sidebar footer footer footer footer footer" auto/* row 3 */
	/ 8em 10em;
}

@media(max-width: 576px) {
  .container {
    display: grid;
    grid-template:
      "header" auto 
      "main" auto 
      "footer" auto
      / 1fr;
  }
}

@media(max-width: 992px) {
  .container {
    grid-template:
      "header header header" auto
      "main main main" auto
      "footer footer footer" auto
      / 125px auto 125px;
  }
}

/* assign your elements to the areas you defined in the grid-template rule: */
.header { grid-area: header; }
.sidebar { grid-area: sidebar; }
main { grid-area: main; }
.footer { grid-area: footer; }
			
.sidebar {
  border: 9px solid transparent;
  border-inline: 19px solid transparent;
  border-image-source: url(backgrounds/bordersidebars.png);
  border-image-slice: 134 146 123 173;
  border-image-width: 20px 20px 20px 20px;
  border-image-repeat: repeat repeat; 
  background-clip: padding-box;
  background-color: white;
  position:sticky;
  width:80%;
  display:flex;
}


.Sidebarlinks {
  display:flex;
  flex-direction:column;
  position:fixed;
  font-size:1em;
}


.aLink {
  max-width:100%;
  height:auto;
  font-size: 1em;
}


.fixed-sidebar {
  position: fixed;
  top:0;
}

.header {
  border: 10px solid transparent;
  border-inline: 12px solid transparent;
  padding: 5px 15px 5px 15px;
  border-image-source: url(backgrounds/borderheader.png);
  border-image-slice: 134 146 123 173;
  border-image-width: 20px 20px 20px 20px;
  border-image-repeat: repeat repeat;
  background-clip: padding-box;
  background-color: white;
  width:94%;
}

.links {
  justify-content:space-evenly;
  display:flex;
}

.footer {
  border: 10px solid transparent;
  border-inline: 12px solid transparent;
  padding: 15px;
  border-image-source: url(backgrounds/borderheader.png);
  transform: scaleY(-1);
  border-image-slice: 134 146 123 173;
  border-image-width: 20px 20px 20px 20px;
  border-image-repeat: repeat repeat;
  background-clip: padding-box;
  background-color: white;
  width:94%;
}

.footer-content {
  transform: scaleY(-1); 
}

body {
  color: black;
  /* font-family: "rainyhearts",monospace,sans-serif,"MS gothic"; */
  background-color: #E6E6FA;
  margin: 0;
  font-size: 2vw;
  
}

main {
  border: 10px solid transparent;
  border-inline: 12px solid transparent;
  padding: 14px;
  border-image-source: url(backgrounds/bordersidebars.png);
  transform: scaleX(-1);
  border-image-slice: 134 146 123 173;
  border-image-width: 20px 20px 20px 20px;
  border-image-repeat: repeat repeat;
  background-clip: padding-box;
  background-color: white;
  width:95%;
  
  display: flex;
  flex-direction:column;
}

.main-container {
  transform: scaleX(-1);
  background-color: white;
}

body {
  cursor:url(cursors/purplestarcursor.png),auto;
}

a:hover{
  cursor:url(cursors/obama_cursor.png),auto;
}

p:active{
  cursor:url(cursors/highlighttext.png),text;
}


::-moz-selection { /* Code for Firefox */
  color: white;
  background: Rebeccapurple;
  cursor:url(cursors/highlight.png),auto;
}

::selection {
  color: white;
  background: Rebeccapurple;
  cursor:url(cursors/highlight.png),auto;
}



h1 {
  color: black;
  font-family: inherit;
}

h3 {
  font-size: 2vw;
  text-decoration: underline;
}

h4 {
  font-size: 1.2vw;
  text-decoration: underline;
}

#glossarySubject {
  font-weight: bold;
  text-decoration: underline;
}

table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
}
  
.responsive {
  max-width: 100%;
  height: auto;
}

.plain {
  font-family:monospace,sans-serif,"MS gothic";
}

.fancyh1{
  font-family: "billo",monospace,sans-serif,"MS gothic";
}

.fancy {
  font-family: "rainyhearts",monospace,sans-serif,"MS gothic";
}


#font_button {
  display:flex;
  margin:0;
  justify-content:space-between;
}

#font_button > button {
  float: left;
}

#font_size_slider {
  float:right;
}

#font_size_slider > p {
  margin:0;
  display:inline;
  
}

ul {
  margin-left:0.5rem;
  padding:0;
}

.active {
  color: mediumvioletred;
  font-weight: bold;
}

#subGlossarySubject {
  text-align: right;
  font-style: italic;
  color:blue;
  font-size: 70%;
}


/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  font-family: "Acme",monospace,sans-serif,"MS gothic";
  visibility: hidden;
  width: 130%;
  top: 100%;
  left: 50%;
  margin-left: -50%; /* Use half of the width (120/2 = 60), to center the tooltip */
  background-color: Purple;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  font-size: 75%;
 
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}




