body {
  background-color: red;
  margin: 0;
}

h1 {
  color: salmon;
  width: auto;
}

.maincontainer {
  display: flex;
  min-height: 100vh;
}

.content {
  flex: 1;
  padding: 1px 16px;
}

.rightbar {
  height: 400px;
  overflow-y: scroll;
}

.sidebar {
  height: 100vh;  
}

.sidebar, .rightbar {
  margin: 0;
  padding: 0;
  width: 200px;
  flex-shrink: 0;
  box-sizing: border-box;
  border-style: dashed;
  color: black;
  background-image: url("graphics/rainbowheart.jpg");
  background-repeat: no-repeat;
  background-color: skyblue;
  overflow: auto;
  top: 0;

}

.sidebar a, .rightbar a {
  display: block;
  color: red;
  padding: 20px;
}

.sidebar .active, .rightbar .active {
  background-color: blue;
  color: yellow;
}

.sidebar a:hover:not(.active), .rightbar a:hover:not(.active) {
  background-color: white;
  color: blue;
}

@media screen and (max-width: 700px) {
  .maincontainer {
    flex-direction: column;
  }
  
  .sidebar, .rightbar {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .sidebar a, .rightbar a {
    float: left;
  }
}

@media screen and (max-width: 400px) {
  .sidebar a, .rightbar a {
    text-align: center;
    float: none;
  }
}

.main-content {
  background-color: rgba(0,0,0,0.7);
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 2px;
  align-items: center;
  text-align: center;
  height: auto;
}

.main-content h1 {
  color: cyan;
  font-size: 35px;
}

.main-content p {
  color: lime;
  margin: 0;
  font-size: 30px;
}


    
.title {
  margin-bottom: 20px;
  text-shadow: #000 1px 0 6px;
  filter: drop-shadow(1px 1px 0 black) drop-shadow(-1px 1px 0 black);
  font-style: italic;
  font-size: 70px;
  font-weight: bold;
  color: #fff;
  animation-name: floating;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.carousel-container {
  min-width: 0px;
  flex-shrink: 1;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
    }
    
.carousel {
  min-width: 0px;
  display: flex;
  animation: scroll 25s linear infinite;
  width: max-content;
    }
    
.carousel img {
  flex-shrink: 0; 
}    

@keyframes scroll {
  0% {
      transform: translateX(0);
      }
  100% {
    transform: translateX(-50%);
  }
}


