/* 
Damilola John Adeyemi developed the Kawa Model Web App
At the time of writing this, I am a Computer Engineering Major at Brunel University of London
The Kawa Model Web App is my Internship Project as a Software Engineer Intern at Brunel University of London
I really enjoyed working on this web app and I thoroughly enjoyed collaborating with Teoh Jou Yin, Dr Michael Iwama, and Kendall Chanto develop it
I am happy to connect and here's the link to my LinkedIn Page: www.linkedin.com/in/john-adeyemi
*/

/* Homepage Background Animation */
.gradient-background {
  background: linear-gradient(300deg, #F5EFE7, #19A7CE, #001B3A);
  background-size: 400% 400%;
  animation: gradient-animation 10s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Main Title "Create Your Animation" Gif */
#main-title {
  text-align: center;
  margin-left: 1rem;
  margin-right: 1rem;
  /* margin-bottom: 5px; */
  margin-top: 20px;
}

/* Homepage Code */
#homepage {
  margin-top: 4rem;
}

/* Logo*/
.image {
  align-items: center;
  margin: auto;

}

.kanji-logo {
  -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(70%, transparent) , to(rgba(250, 250, 250, 0.1)));
}
  


/* Media Queries for Elememts Across all Web Pages*/
/* Mobile Devices 319px - 480px */
@Media(max-width: 480px) {  
  .kanji-logo {
    max-width: 100%;
  }
  #gif {
    max-width: 100%;
  }

  .kanji-logo-screen-mode-page {
    max-width: 70%;
    margin-left: 13%;
  }

  .start-button {
    max-height: 3rem;
    max-width: 17rem;
  }

  .got-it-button {
    max-height: 3rem;
    max-width: 17rem;
  }

  .about-button {
    max-height: 3rem;
    max-width: 7rem;
  }

  body {
    padding-top: 0.7rem;
  }

  .selection {
    font-size: 1.8rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;

  }

  .portraits {
    max-width: 35%;
    /* margin-bottom: 10%; */
  }
  
  .landscapes {
   max-width: 70%;
  }

  .portrait-div {
    margin-bottom: 28%;
  }

  .description {
    text-align: left;
  }

  .headers {
    text-align: left;
  }

  .landscape-river-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 1rem;
  }
  
  .landscape-element-selection {
    overflow: hidden;
    background-color: white;
    white-space: nowrap;
    max-width: 100%;
    border-radius: 1rem;
  }

  .portrait-river-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 1rem;
  }

  .portrait-element-selection {
    overflow: hidden;
    background-color: white;
    white-space: nowrap;
    max-width: 100%;
    border-radius: 1rem;
  }

}



/* iPads and Tablets 481px - 1200px */
@Media(min-width: 481px) and (max-width: 1200px) {
  .kanji-logo {
    max-width: 70%;
    margin-left: 14.5%;
  }

  .kanji-logo-screen-mode-page {
    max-width: 50%;
    margin-left: 24%;
  }

  #gif {
    max-width: 80%;
  }

  .start-button {
    max-height: 4rem;
    max-width: 22rem;
  }

  .got-it-button {
    max-height: 4rem;
    max-width: 17rem;
  }

  .about-button {
    max-height: 3.4rem;
    max-width: 7.5rem;
  }

  .selection {
    font-size: 2rem;
    margin-top: 3%;
  }

  .portraits {
    max-width: 20%;
    /* margin-right: 8rem; */
  }
  
  .landscapes {
    max-width: 40%;
    margin-top: 2%;
    }

  .portrait-text {
    text-align: center;
  }

  .portrait-div {
    margin-bottom: 18%;
  }

  .carousel-control-next {
    margin-right: 15%;
  }

  .carousel-control-prev {
    margin-left: 15%;
  }

  .landscape-river-page {
    margin-left: 3%;
    margin-right: 3%;
  }

  .landscape-river-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 1rem;
  }

  .landscape-element-selection {
    overflow: hidden;
    background-color: white;
    white-space: nowrap;
    max-width: 100%;
    border-radius: 1rem;
  }

  .slide-and-river {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 1rem;

  }

  .portrait-element-selection {
    overflow: hidden;
    background-color: white;
    white-space: nowrap;
    max-width: 100%;
    border-radius: 1rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .portrait-river-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    padding: 0;
    display: block;
  }

  .slide-and-river-portrait {
    max-width: 82%;
    height: auto;
    margin: 0 auto;
    border-radius: 1rem;

  }
}


/* Laptops 1201px - 1600px */
@Media(min-width: 1201px) and (max-width: 1600px) {
  .kanji-logo {
    max-width: 50%;
    margin-left: 25%;
  }

  .kanji-logo-screen-mode-page {
    max-width: 37%;
    margin-left: 30%;
  }

  #gif {
    max-width: 65%;
    /* margin-top: 2%; */
  }

  .start-button {
    max-height: 4rem;
    max-width: 20rem;
  }

  .got-it-button {
    max-height: 4rem;
    max-width: 20rem;
  }

  .about-button {
    max-height: 4rem;
    max-width: 8rem;
  }

  .selection {
    font-size: 3rem;
    margin-top: 2.5%;
    margin-bottom: 2.5%;
  }

  .portraits {
    max-width: 15%;
  }
  
  .landscapes {
  max-width: 30%;
  margin-left: 5rem;
  }

  .portrait-div {
    margin-bottom: 15%;
  }

  .carousel-control-next {
    margin-right: 20%;
  }

  .carousel-control-prev {
    margin-left: 20%;
  }

  .landscape-river-page {
    margin-left: 10%;
    margin-right: 10%;
  }

  .landscape-river-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    padding: 0;
    display: block;
  }

  .slide-and-river {
    max-width: 85%;
    margin: 0 auto;
    border-radius: 1rem;

  }
  
  .landscape-element-selection {
    overflow: hidden;
    background-color: white;
    white-space: nowrap;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
  }

  .portrait-river-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    padding: 0;
  }

  .slide-and-river-portrait {
    max-width: 40%;
    margin: 0 auto;
    border-radius: 1rem;
  }

  .portrait-element-selection {
    overflow: hidden;
    background-color: white;
    white-space: nowrap;
    max-width: 100%;
    border-radius: 1rem;
    justify-content: center;
    margin: 0 auto;

  }
}


/* Desktops  1601px and more*/
@Media(min-width: 1601px) {
  .kanji-logo {
    display: grid;
    text-align: center;
    max-width: 35%;
    margin-left: 32.5%;
  }

  .kanji-logo-screen-mode-page {
    display: grid;
    text-align: center;
    max-width: 30%;
    margin-left: 34.5%;
  }

  #gif {
    max-width: 50%;
  }

  .start-button {
  height: 4rem;
  width: 20rem;
  }

  .got-it-button {
    max-height: 8rem;
    max-width: 17rem;
  }

  .about-button {
    height: 4rem;
    width: 8rem;
  }

  .selection {
    font-size: 3rem;
    margin-top: 2%;
    margin-bottom: 2%;
  }

  .portraits {
    max-width: 10%;
  }
  
  .landscapes {
    max-width: 17%;
  }

  .portrait-div {
    margin-bottom: 8%;
  }

  .landscape-div {
    margin-bottom: 1%;
  }

  .carousel-control-next {
    margin-right: 30%;
  }

  .carousel-control-prev {
    margin-left: 30%;
  }

  .slide-and-river {
    max-width: 60%;
    height: auto;
    margin: 0 auto;
    border-radius: 1rem;
  }

  .landscape-river-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    padding: 0;
  }
  
  .landscape-element-selection {
    overflow: hidden;
    background-color: white;
    white-space: nowrap;
    max-width: 100%;
    border-radius: 1rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }


  .portrait-element-selection {
    overflow: hidden;
    background-color: white;
    white-space: nowrap;
    max-width: 100%;
    border-radius: 1rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto;

  }

  .portrait-river-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    padding: 0;
    display: block;
  }

  .slide-and-river-portrait {
    max-width: 36%;
    height: auto;
    margin: 0 auto;
    border-radius: 1rem;
  }
}



/* Start Button Code */

#start-button-div {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  margin-bottom: 30px;
}

.start-button-text {
  font-family: 'Josefin Sans', sans-serif;
  color: #0E2954;
  text-align: center;
  text-decoration: none;

}

.start-button {
  position: relative;
  overflow: hidden;
  padding-top: 0.2rem;
  border-radius: 1.2rem;
  background: none;
  height: 4rem;
  background-size: 400%;
  color: #fff;
  border-color: white;
}




.start-button:hover::before {
  transform: scaleX(1);
}


.start-button-style {
  position: relative;
  z-index: 1;
}

.start-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: inherit;
  border-radius: inherit;
  background: linear-gradient(
    82.3deg,
    rgb(5, 132, 170) 10.8%,
    rgb(12, 172, 221) 94.3%
  );
  transition: all 0.300s;
}






/* About Button Code // This button is located in index.html i.e the homepage */

/* About div */
#about-div {
  text-align: center;
  margin-bottom: 40px;
  width: 13rem;
  margin-left: auto;
  margin-right: auto;
}

.about {
  font-family: 'Josefin Sans', sans-serif;
  color: #0E2954;
  text-align: center;
  font-size: 2.7rem;
  font-weight: bold;
  text-decoration: none;
}

.about-button {
  position: relative;
  overflow: hidden;
  height: 4rem;
  width: 8rem;
  padding: 2rem, 2rem;
  border-radius: 1.2rem;
  background: none;
  border-color: white;
  background-size: 400%;
  color: #fff;
}

.about-button:hover::before {
  transform: scaleX(1);
}

.about-button-style {
  position: relative;
  z-index: 1;
}

.about-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: inherit;
  border-radius: inherit;
  background: linear-gradient(
    82.3deg,
    rgb(5, 132, 170) 10.8%,
    rgb(12, 172, 221) 94.3%
  );
  transition: all 0.300s;
}





/* Kawa Model Text Code -- This is the footer of every web page */
#kawa-model {
  font-family: 'Josefin Sans', sans-serif;
  color: #FFFFFF;
  text-align: center;
  font-size: 1rem; 
  font-weight: bolder;
  word-spacing: 5px;
}



/* About Page Style Code  */

#dr-iwama-pic {
  width: 17rem;
  margin-bottom: 5px;
}

#water-image {
  border-radius: 0.7rem;
}

#riverbank-image {
  border-radius: 1rem;
}

.sections {
  margin: 10px;
  border-radius: 2rem;
  background-color: white;
  padding: 1rem;
  text-align: center;
  background-color: none;
}

.headers {
  font-family: 'Josefin Sans', sans-serif;
  color: #213555;
}

#dr-iwama-description-div {
  text-align: center;
}

#what-is-occupational-therapy{
  font-family: 'Josefin Sans', sans-serif;
  font-weight: bolder;
  font-size: 3rem;
}

.description {
  font-family: 'Josefin Sans', sans-serif;
  padding: 5px;

}

.element-header {
  font-family: 'Mukta', sans-serif;
  font-weight: bolder;
  font-size: 2rem;
  color: #213555;
  margin: 0px;
  text-align: left;
}

.element-description {
  text-align: left;

}

.water-driftwood-description {
  text-align: left;
}

.rocks-riverbanks-description {
  text-align: right;
}

.element-div {
padding: 3%;
text-align: center;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.element-image {
  max-width: 55%;
}

.slider-image {
  max-width: 9%;
  cursor: pointer;
}




/* Screen Mode Selection Page */

.selection {
  font-family: 'Josefin Sans', sans-serif;
  text-align: center;
  color: rgb(199, 210, 214);
}

#screen-mode-page {
  padding-top: 8rem;
}

.portraits {
/* transform: rotate(90deg); */
margin-left: auto;
margin-right: auto;
}

.landscapes {
  margin-left: auto;
  margin-right: auto;
}

.landscape-and-portrait-mode-images {
  position: relative;
  display: inline-block;
  /* width: 50%; */
}

.landscape-and-portrait-mode-images img {
  display: block;
  /* width: 100%; */
}

.img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* transition: opacity .7s ease; */
  margin-top: 0;
  cursor: pointer;
}

.img-default {
  margin-top: 0;
}

.landscape-and-portrait-mode-images:hover .img-hover {
  opacity: 1;
}

.landscape-and-portrait-mode-images:hover .img-default {
  opacity: 0;
}

.icons {
  text-align: center;
}

#dr-iwama-link {
  text-decoration: none;
}

.kanji-logo-screen-mode-page {
  margin-top: 2rem;
  -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(70%, transparent) , to(rgba(250, 250, 250, 0.1)));
}

.screen-mode-page-image {
  align-items: center;
  margin: auto;
}

.screen-mode-text {
  color: black;
  font-family: 'Josefin Sans', sans-serif;
  text-decoration: none;
}

.screen-mode-text:hover {
  color: #6badf8;
}

.screen-mode-footer {
  margin-top: 10%;
}

.carousel-icon {
  background-image: url('bootstrap-icons-1.10.5/arrow-left-circle-fill.svg');
}

.carousel-control-prev {
  left: 5%;
}

.carousel-control-next {
  right: 5%;
}

.carousel-control-next, .carousel-control-prev {
  width: 40px;
  height: 40px;
  background-color: rgba(81, 121, 180, 0.637);
  border-radius: 50%;
  top: calc(50% - 25px);
  opacity: 1;
}

.mode-button {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: none;
  border: none;
  border-width: 0.5px;
}

.mode-button:hover {
  background-color: rgb(255, 255, 255);
}



/* Portrait Mode River Page */

#containment-wrapper { 
  width: 150px; 
  height: 500px; 
  border:2px solid #ccc; 
  padding: 10px; 
}

#containment-wrapper-2 { 
  width: 150px; 
  height:500px; 
  border:2px solid #ccc; 
  padding: 10px; 
  margin-left: 70%;
  margin-bottom: 300%;
}

.choose-element-portrait {
  width: 10%;
  margin-top: 1%;
  margin-bottom: 1%;
  margin-left: 3%;
  margin-right: 3%;
}

.portrait-element-selection:hover .element-slide {
  animation-play-state:paused;
}




/* Landscape River Page */

.creation-text {
  text-align: center;
  font-family: 'Merienda', cursive;
  color: white;
  font-size: 2rem;
  padding: 0.5rem;
  line-height: 70%;
}

.creation-div {
  background-color: #19A7CE;
  text-align: center;
  margin: auto auto auto auto;
  padding: 10px;
}

/* This applies to both landscape and portrait */
.river-container{
  overflow: hidden;
  position: relative;
  border-radius: 1rem;
}

/* Element Slider code for both portrait and Landscape River */
.choose-element {
  width: 10%;
  margin-top: 1%;
  margin-bottom: 1%;
  margin-left: 3%;
  margin-right: 3%;
}

.choose-element-div {
  background-color: white;
}

.choose-element-div {
  background-color: white;
}

/* This is for both portrait and lansdscape river pages */
@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.landscape-element-selection:hover .element-slide {
  animation-play-state:paused;
}

/* This is for both portrait and lansdscape river pages */
.element-slide {
  display: inline-block;
  animation: 25s slide infinite linear;
}

/* This is for both portrait and lansdscape river pages */
.image-container {
  position: relative;
  display: inline;
  margin-left: 1rem;
  margin-right: 1rem;
}

.text-input {
  font-family: 'Josefin Sans', sans-serif;
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  padding: 5px;
  font-size: 16px;
  border: none;
  background: none;
  color: white;
  text-align: center;
  font-weight: bold;
  width: 60%;
  border-radius: 0.5rem;
  margin-top: 1%;
  margin-bottom: 1%;
  margin-left: 3%;
  margin-right: 3%;
}

.new-element-selection {
  overflow: hidden;
  white-space: nowrap;
}

.new-choose-element {
  width: 10%;
  margin-top: 1%;
  margin-bottom: 1%;
  margin-left: 2.4%;
  margin-right: 2.4%;
}

.new-choose-element-div {
  background-color: white;
}

.landscape-river-image:hover .overlay {
  opacity: 1;
}


/*  CSS for all the functionality within the river */

/* Handles container */
.box-handlers {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

/* Handles themselves */
.resize-handler {
  height: 10px;
  width: 10px;
  background-color: #0055ff;
  position: absolute;
  border: 1px solid #ffffff;
  border-radius: 10px;
  user-select: none;
  display: none;     /* plugin toggles visibility when selected */
}


/* Hover and rotate cursor styles */
.resize-handler:hover {
  background-color: #ffffff;
}
.resize-handler.rotate {
  cursor: url('images/rotate_cursor.png'), auto;
}

.resize-handler {
  cursor: grab;
}

.piece.box {
  position: relative;
  display: block !important;
}

.box {
  touch-action: none; /* stops the browser from scrolling/zooming while dragging */
}

.piece.box.is-active .resize-handler {
  display: block !important; 
}

/* Text label sits above the image, centered, and scales with the box */
.piece-label {
  position: absolute;
  inset: 0;
  padding: 4px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-family: 'Josefin Sans', sans-serif;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;

}

/* Edit mode — show a contenteditable overlay that captures typing */
.piece.box.is-editing .piece-label {
  /* visibility: hidden; */
  display: none !important;
}

/* While editing text, hide the handles */
.piece.box.is-editing .resize-handler { 
  display: none !important; 
}

.label-editor {
  position: absolute !important;
  inset: 0;
  padding: 6% 8%;
  text-align: center;
  color: #fff;
  background: transparent;
  font-family: "Josefin Sans", sans-serif;
  outline: 2px solid rgba(255,255,255,.35);
  border-radius: 8px;
  display: block;
  pointer-events: auto;
  word-break: break-word;
  z-index: 9999;
}

/* Delete button for each piece */
.piece-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: none;
  background: #ee0000;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  padding: 0;
}

/* Only show delete button when the piece is active */
.piece.box.is-active .piece-delete {
  opacity: 1;
  pointer-events: auto;
}

/* Don't show delete icon when piece is being edited */
.piece.box.is-editing .piece-delete {
  opacity: 1;
  pointer-events: auto;
  display: none !important; /* Don't show delete icon when piece is being edited */
}

.draggable:hover {
  background-color: #7fd4ee;
  border-radius: 0.5rem;
}



/* How to create your river style */

.topbar-btn{
  font-family: 'Josefin Sans', sans-serif;
  color: #0E2954;
  text-align: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  padding: 1rem;
}

.modal.open{ display: flex; }

.modal-card{
  width: min(720px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #FFFCFB;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.modal-body{ 
  padding: 1rem 1.25rem;
  overflow-y: auto;
  /* -webkit-overflow-scrolling: touch; */
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);

 }


.modal-header,
.modal-footer{
  flex: 0 0 auto;
}

.modal-body ol{ 
  padding-left: 1.25rem;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: bold;
  font-size: large;
 }

 .modal-body-tips {
  padding-left: 1.25rem;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: bold;
  font-size: large;
 }

 .modal-body-header {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: bolder;
 }

.modal-footer{
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0,0,0,.08);
  font-family: 'Josefin Sans', sans-serif;
}

.modal-close{
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

.primary-btn{
  font-family: 'Josefin Sans', sans-serif;
  color: #0E2954;
  text-align: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
  cursor: pointer;
  padding: .6rem 1rem;
  
}

.modal-footer-div {
  margin-left: auto;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  font-family: 'Josefin Sans', sans-serif;
}

.how-to-div {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.instruction-gif {
  max-width: 70%;
  border-radius: 0.2rem;
  margin: auto;
  margin-bottom: 1rem;
}

#howtoTitle {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: bold;
  align-items: center;
}

#howtoClose:hover {
  background-color: #67B2D8;
  border-radius: 1rem;
  color: white;
}

.got-it-button:hover::before {
  transform: scaleX(1);
}

.got-it-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: inherit;
  border-radius: inherit;
  background: linear-gradient(
    82.3deg,
    rgb(5, 132, 170) 10.8%,
    rgb(12, 172, 221) 94.3%
  );
  transition: all 0.300s;
}

.got-it-button {
  position: relative;
  overflow: hidden;
  padding-top: 0.2rem;
  border-radius: 1.2rem;
  background-color: #99d7e2;
  height: 4rem;
  background-size: 400%;
  color: #6FE6FC;
  border-color: white;
}


/* Text Box on the river */
img[data-type="speech"] {
  border: 2px solid #292727;
  border-radius: 10px;
  padding: 4px;
}
.speech-piece .piece-label.placeholder{
  opacity: 0.75;
  font-style: italic;
  color: #ffffff; /* or #111 if your bubble is light */
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  border: none;
  background: transparent;
}


/* Download River Settings */
/* This hides UI chrome while exporting */
.exporting .resize-handler,
.exporting .piece-delete,
.exporting .box-handlers {
  display: none !important;
}

/* hide selection outline*/
.exporting .piece.box.is-active {
  outline: none !important;
}

.guide-and-download-button {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.button-row {
  margin-bottom: 10px;
}


