@import url('https://fonts.googleapis.com/css2?family=Averia+Gruesa+Libre&family=Rubik+Spray+Paint&display=swap');

* {
  line-height: 1.4;
  font-family: "Averia Gruesa Libre", system-ui;
}

body {
  margin: 0;
  background-color: #211c37;
  background-image: url(/images/bgs/cave1.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
}

#speech-container { /* bubble and image container */
  display: flex;
}

#bubble-container { /* bubble */
  border: 2px solid #000000;
  width: 100%;
  min-height: 180px;

  background-color: white;

  padding: 20px;
  position: relative;
  border-radius: .4em;

  font-family: "Averia Gruesa Libre", system-ui;
  font-weight: 400;
  font-style: normal;
  box-shadow: #552a7e -4px 7px 10px 0px;
}

#bubble-container p {
  margin-top: 5px;
  margin-bottom: 5px;
}

#bubble-container:before {
  content: '';
	position: absolute;
	left: 0;
	top: 100px;
	width: 0;
	height: 0;
	border: 22px solid transparent;
	border-right-color: #000000;
	border-left: 0;
	margin-top: -22px;
	margin-left: -22px;
}

#bubble-container:after {
  content: '';
	position: absolute;
	left: 0;
	top: 100px;
	width: 0;
	height: 0;
	border: 25px solid transparent;
	border-right-color: #ffffff;
	border-left: 0;
	margin-top: -25px;
	margin-left: -19px;
}

#bubble-container #bubble-author { /* text author */
  position: absolute; 
  left: 20px;
  bottom: -15px;
  padding: 5px;
  
  border-radius: .4em;
  border: 2px solid #7c4718;
  background-color: #ffde4a;
  color: #000000;
}

#avatar {
  margin-right: 30px;
  width: 200px;
  height: 200px;
}

#avatar img{ /* dialog avatar */
  border: 2px solid #000000;
  width: 200px;
  height: 200px;

  margin-right: 30px;
  border-radius: .4em;

  box-shadow: #552a7e -4px 7px 10px 0px;

  background-color: #1f0e2e;
  background-image: url("/images/houndstooth_white.png");
  background-size: 32px;
}
#avatar img:last-child {
  display: none;  
}
#avatar:hover img:last-child {
  display: block;  
}
#avatar:hover img:first-child {
  display: none;  
}

#avatar:hover {
  animation-duration: 0.2s ;
  animation-name: bounce ;
}

#content {
  background-color: #a768c7;
  background-image: url("/images/houndstooth.png");
  background-size: 32px;

  box-shadow: #000000 0px 0px 100px 10px;

  min-width: 800px;
  width: 60%;

  margin-left: auto;
  margin-right: auto;

  overflow: hidden;
}

main {  
  margin-left: 50px;
  margin-right: 50px;
}

footer {
  background-color: #ffde4a;
  width: 100%;
  display:grid;
  padding-bottom: 10px;
  margin-top: 30px;
}

footer p {
  margin-top: 5px;
  margin-bottom: 5px;
}

footer * {
  margin-left: 10px;
}

#topnavbar {
  display:flex;
  width: 100%;
  background: #552A7E;
background: linear-gradient(0deg,rgba(85, 42, 126, 1) 0%, rgba(155, 109, 201, 1) 74%, rgba(85, 42, 126, 1) 100%);
  box-shadow: #391b56 0px 7px 15px 10px;
  border-top: 2px solid #000000;
  margin-bottom: 15px;
}

#topnavbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#topnavbar ul li {
  float: left;
}

#topnavbar ul li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

#topnavbar ul li a:hover {
  background-color: #391b56;
  box-shadow: #1f0e2e 0px 7px 10px 0px;
}

article {
  background-color: #a768c7;
  border: 2px solid #000000;
  border-radius: .4em;
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 10px;

  box-shadow: #552a7e -4px 7px 10px 0px;
}

article h1 {
  background-color: #ffde4a;
  margin-left: 0;
  margin-top: 0;
  padding-left: 20px;

  color: #40321f;
  border: 2px solid #7c4718;
  border-radius: .2em;
}

article * {
  margin-left: 25px;
}

header {
  display: flex ;
  position: relative;
}

header p {
  position:absolute;
  color: #ffde4a;
  margin: 0;
  left: 20px;
  bottom: 0px;
  font-size: 100px;
  font-family: "Rubik Spray Paint", system-ui;
}

header img {
  width: 100%;
  height:auto;
}

.navigation-table {
  margin-left: 0;
  width: 100%;

  text-align: center;

  border-collapse: separate;
  border-spacing: 15px;
}

.navigation-table td, tr {
  padding: 10px;
}

.navigation-table td {
  background-color: #ffde4a;
  border-radius: 10px;
  border: 2px solid black;
}

.navigation-table td:hover {
  background-color: #ffe570;
}



@keyframes bounce {
	/* Element one fully ON screen at left-edge of container. */
	from {
    transform: scale( 110%);
	}
	/* Element one fully OFF screen (just beyond left-ledge of container). */
	to {
		transform: scale( 100%);
	}
}








@keyframes marquee-content {
	/* Element one fully ON screen at left-edge of container. */
	from {
		transform: translateX( 0% );
	}
	/* Element one fully OFF screen (just beyond left-ledge of container). */
	to {
		transform: translateX( -100% );
	}
}

.marquee {
  border-bottom: 2px solid black ;
  border-top: 2px solid black ;

  background-color: #ffde4a;
  margin-bottom: 10px;
  display: flex ;
  overflow: hidden ;
  white-space: nowrap ;
  width: 100%;
}

.marquee-item {
  animation-duration: 4s ;
  animation-iteration-count: infinite ;
  animation-name: marquee-content ;
  animation-timing-function: linear ;
  padding: 5px 15px 5px 15px ;

  font-family: "Averia Gruesa Libre", system-ui;
  font-weight: bold;
  font-style:normal;
}

/*
.marquee:hover .marquee-item {
  animation-play-state: paused ;
}
*/