/*
Send-It Visual Programming Styles AND extended (Widgets) Elements Styles
*/
#sendit-snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 5px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 2000; /* Add a z-index if needed */
  left: 20px; /* Center the snackbar */
  right: 20px;
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#sendit-snackbar.show-snackbar {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: snackbar-fadein 0.5s, 1s;
  animation: snackbar-fadein 0.5s, 1s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes snackbar-fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes snackbar-fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes snackbar-fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes snackbar-fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

.elem-slideshow {
    position: relative;
}

.elem-slideshow .slide {
    display: none;
}
.elem-slideshow .slide.active {
    display: flex;
}
.elem-slideshow .prev, .elem-slideshow .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: inherit;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
}
.elem-slideshow .slide .text {
    color: inherit;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: inherit;
    text-shadow: 2px 2px 2px rgba(124, 124, 124, 0.5);
}
.elem-slideshow .next {
    right: 0;
}

.elem-slideshow .prev {
    left: 0;
}

.elem-slideshow .prev:hover, .elem-slideshow .next:hover {
    background-color: rgba(125,125,125,0.2);
}

.elem-slideshow .dots-container {
    display: flex;
    align-items: stretch;
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding-bottom: 2px;
}

.elem-slideshow .dot {
    cursor: pointer;
    height: 05px;
    width: 100%;
    margin: 0 2px;
    background-color: #bbb;
    display: block;
    transition: background-color 0.6s ease;
}
.elem-slideshow .active, .elem-slideshow .dot:hover {
    background-color: currentColor;
}

.elem-text-drawer {
    text-align: inherit;
    font-size: inherit;
    font-family: inherit;
}

.elem-text-drawer button {
    border: none;
    background: transparent;
    text-align: inherit;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    padding: 0px;
}

.elem-pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.elem-pagination button {
    flex-grow: 1;
    margin-left: 5px;
    margin-right: 5px;
    color: inherit;
    border: none;
}

.elem-youtube {
    border: none;
}

.elem-table th, .elem-table td, .elem-table tr, .elem-table thead, .elem-table tbody {
    padding: inherit;
}

.elem-scratch-and-win {
    overflow: hidden;
}

.elem-scratch-and-win .promo-box {
    position: absolute;
    width: 100%;
    height: 100%;
}

.elem-scratch-and-win .promo-text {
    color: inherit;
    background: inherit;
}
.send-it-popup-background {
    background-color: black;
    position: fixed;
    z-index: 9999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.send-it-popup-box-container {
    position: fixed;
    z-index: 999999999;
    top: 0;
    left: 0;
    height: fit-content;
    border-radius: 8px;
    width: 100%;
}

.send-it-popup-box {
    position: relative;
    background-color: white;
    width: 20em;
    height: fit-content;
    padding-bottom: 1em;
    margin-top: 10em;
    border-radius: 8px;
    margin-bottom: 1em;
}

.send-it-popup-box-img-box {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #65dc81;
    padding-bottom: 1.3em;
}

.send-it-popup-box-img-box-img {
    width: 7em;
    margin: 3em;
}

.send-it-popup-box-title {
    color: #1a1c1a;
    font-weight: bold;
    font-size: 1em;
    padding: 2em 1em 2em;
    text-align: center;
    width: 100%;
}

.send-it-popup-box-text {
    color: black;
    font-size: 0.9em;
    padding: 0.8em 1em 0.7em;
    text-align: center;
}

.send-it-popup-box-button {
    cursor: pointer;
    background-color: #65dc81;
    color: white;
    font-size: 0.9em;
    padding: 0.5em 2em 0.4em;
    margin: 1em;
    width: fit-content;
    border-radius: 15px;
}

.send-it-popup-box-button:hover {
    filter: brightness(0.5);
}

.send-it-popup-box-button-alt {
    cursor: pointer;
    background-color: #282928;
    color: white;
    font-size: 0.9em;
    padding: 0.5em 2em 0.4em;
    margin: 1em;
    width: fit-content;
    border-radius: 15px;
}

.send-it-popup-box-button-alt:hover {
    filter: brightness(2.5);
}

.send-it-popup-box-close-button {
    cursor: pointer;
    position: absolute;
    top: -0.7em;
    right: -0.7em;
    width: 1.5em;
    height: 1.5em;
    padding: 0.1em 0 0.2em;
    text-align: center;
    border-radius: 150px;
    background-color: #e3ebe7;
    color: black;
    font-size: 0.85em;
}

/* Spin and win styles */
.elem-spin-and-win {
    overflow: hidden;
}

.elem-spin-and-win .spin-container {
     width: 100%;
     margin: 0 auto;
}
 
.elem-spin-and-win .spin-wrapper {
    margin: 0 0 30px;
    position: relative;
}

.elem-spin-and-win .spin-pointer-wrapper {
    position: relative;
    z-index: 1;
    background-color: red;
}

.elem-spin-and-win .spin-arrow {
    position: absolute;
    left: 42%;
    width: 65px;
}

.elem-spin-and-win .spin-wheel {
    margin-top: 2.4em;
    margin-left: 10%;
    width: 80%;
    pointer-events: none; /* Very important */
}

.elem-spin-and-win .spin-button-wrapper {
    clear: both;
    padding: 5px;
    text-align: center;
}
 
.elem-spin-and-win .spin-button {
    border: none;
    background: #ccc;
    color: inherit;
    padding: 5px 20px;
} 

.elem-spin-and-win .spin-button:disabled {
    background-color: #ccc !important;
    color: #000;
} 

.elem-spin-and-win .spin-button-hidden {
    visibility: hidden;
}

.elem-flip-coin .coin-container {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.elem-flip-coin .coin {
    position: relative;
    width: 15rem;
    height: 15rem;
    margin-bottom: 2rem;
    transform-style: preserve-3d;
}

.elem-flip-coin .coin div {
    width: 100%;
    height: 100%;
    border: 2px solid black;
    border-radius: 50%;
    backface-visibility: hidden;
    background-size: contain;
    position: absolute;
}

.elem-flip-coin .heads {
    
}

.elem-flip-coin .tails {
    transform: rotateY(-180deg);
}

.elem-flip-coin button {
    border: none;
}

.animate-heads {
  animation: flipHeads 3s;
  animation-fill-mode: forwards;
}

@keyframes flipHeads {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(1800deg);
  }
}



.animate-tails {
  animation: flipTails 3s;
  animation-fill-mode: forwards;
}

@keyframes flipTails {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(1620deg);
  }
}

.elem-image-upload {
    
}

.elem-image-upload .special-container {
    display: none;
}

.elem-image-upload .special-container.show {
    display: block !important;
}

.elem-image-upload .start-button {
    width: 100%;
    background-color: #9b59b6;
    color: #efefef;
    padding: 5px 10px;
    border: solid #9b59b6 2px;
    font-weight: bold;
}

.elem-image-upload .camera {
    position: relative;
    margin: 10px 0px;
    display: none;
}
.elem-image-upload .camera.show {
    display: block !important;
}
.elem-image-upload .camera video {
    background-color: #4a4a4a;
    width: 100%;
    height: auto;
    min-height: 120px;
}
.elem-image-upload .camera button {
    position: absolute;
    bottom: 20px;
    left: 10%;
    right: 10%;
    background-color: rgba(155,89,182,0.38);
    color: #efefef;
    padding: 10px;
    border: solid #9b59b6 2px;
}

.elem-image-upload .camera .error-message {
    position: absolute;
    top: 40%;
    left: 10px;
    right: 10px;
    text-align: center;
    color: #898989;
}

.elem-image-upload .photo {
    position: relative;
    margin: 10px 0px;
    display: none;
}
.elem-image-upload .photo.show {
    display: block !important;
}
.elem-image-upload .photo canvas {
    background-color: #4a4a4a;
    width: 100%;
    height: auto;
    min-height: 120px;
}

.elem-image-upload .photo .control-buttons {
    position: absolute;
    bottom: 20px;
    left: 10%;
    right: 10%;
    display: flex;
}

.elem-image-upload .photo button {
    background-color: rgba(155,89,182,0.38);
    color: #efefef;
    padding: 10px;
    border: solid #9b59b6 2px;
    flex-grow: 1;
}
    
.hangman-wrapper {
    background-color: inherit;
    color: inherit;
    font-family: Arial, Helvetica, sans-serif;
    color: inherit;
    text-align: center;
    width: 100%;
    height: fit-content;
    margin: 0 auto;
    padding: 1em;
}

.hangman-canvas {
    color: #fff;
    border: #fff dashed 2px;
    padding: 15px;
}

.hangman-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    margin: 5px 0;
}

.hangman-sub-title {
    font-size: 0.95em;
}

.hangman-lives {
    font-size: 0.9em;
    text-align: center;
    display: block;
    font-weight: bold;
    margin: 0.5em;
    color: white;
}

.alphabet {
    margin: 15px auto;
    padding: 0;
    max-width: 900px;
}
.alphabet:after {
    content: "";
    display: table;
    clear: both;
}

.alphabet li {
    float: left;
    margin: 0 10px 10px 0;
    list-style: none;
    width: 35px;
    height: 30px;
    padding-top: 10px;
    background: inherit;
    color: inherit;
    cursor: pointer;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -khtml-border-radius: 5px;
    border: solid 1px #fff;
}
.alphabet li:hover {
    background: inherit;
    filter: invert(1);
}

.my-word {
    margin: 0;
    display: block;
    padding: 0;
    display: block;
}

.my-word li {
    position: relative;
    list-style: none;
    margin: 0;
    display: inline-block;
    padding: 0 10px;
    font-size: 1.6em;
}

.atomic-element elem-hangman .active {
    opacity: 0.4;
    filter: alpha(opacity=40);
    -moz-transition: all 1s ease-in;
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    cursor: default;
}
.atomic-element elem-hangman .active:hover {
    -moz-transition: all 1s ease-in;
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    opacity: 0.4;
    filter: alpha(opacity=40);
    -moz-transition: all 1s ease-in;
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
}

.hangman-button {
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    background: inherit;
    color: #fff;
    border: solid 1px #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0.4em 0.5em;
    width: 6em;
    margin: 0.6em 0.5em;
    outline: none;
}
.hangman-button:hover {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    filter: invert(1) !important;
}

@media (max-width: 767px) {
    #alphabet {
        padding: 0 0 0 15px;
    }
}

@media (max-width: 480px) {
    #alphabet {
        padding: 0 0 0 25px;
    }
}

/* Memory Game Styling */

.memory-wrap {
    position: relative;
    height: 100%;
    min-height: 500px;
    padding-bottom: 20px;
}

.memory-game {
    transform-style: preserve-3d;
    perspective: 500px;
    min-height: 100%;
    height: 100%;
}

.memory-title {
    font-size: 1em;
    text-align: center;
    padding: 0.5em 1em;
}

@-webkit-keyframes matchAnim {
    0% {
      background: #bcffcc;
    }
    100% {
      background: white;
    }
}
  
@keyframes matchAnim {
    0% {
      background: #bcffcc;
    }
    100% {
      background: white;
    }
}
.memory-card {
    float: left;
    width: 25%;
    height: auto;
    padding: 5px;
    text-align: center;
    display: block;
    perspective: 500px;
    position: relative;
    cursor: pointer;
    z-index: 50;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@media (max-width: 800px) {
    .memory-card {
      width: 25%;
      height: 16.666%;
    }
}
.memory-card .memory-inside {
    width: 100%;
    height: 4em;
    display: block;
    transform-style: preserve-3d;
    transition: 0.4s ease-in-out;
    background: white;
}
.memory-card .memory-inside.memory-picked, .memory-card .memory-inside.memory-matched {
    transform: rotateY(180deg);
}
.memory-card .memory-inside.memory-matched {
    -webkit-animation: 1s matchAnim ease-in-out;
            animation: 1s matchAnim ease-in-out;
    -webkit-animation-delay: 0.4s;
            animation-delay: 0.4s;
}
.memory-card .memory-front,
.memory-card .memory-back {
    border: 1px solid black;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4em;
    padding: 10px;
}
.memory-card .memory-front img,
.memory-card .memory-back img {
    width: 2.7em;
    display: block;
    margin: 0 auto;
    height: fit-content;
}
.memory-card .memory-front {
    transform: rotateY(-180deg);
}
@media (max-width: 800px) {
    .memory-card .memory-front {
        padding: 10px;
    }
}
.memory-card .memory-back {
    transform: rotateX(0);
}
@media (max-width: 800px) {
    .memory-card .memory-back {
      padding: 10px;
    }
}

.memory-modal-overlay {
    display: none;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
  
.memory-modal {
    display: none;
    position: relative;
    width: 500px;
    height: 400px;
    max-height: 90%;
    max-width: 90%;
    min-height: 380px;
    margin: 0 auto;
    background: white;
    top: 50%;
    transform: translateY(-50%);
    padding: 30px 10px;
}
.memory-modal .memory-winner {
    font-size: 80px;
    text-align: center;
    font-family: "Anton", sans-serif;
    color: #4d4d4d;
    text-shadow: 0px 3px 0 black;
}
@media (max-width: 480px) {
    .memory-modal .winner {
      font-size: 60px;
    }
}
.memory-modal .memory-restart {
    font-family: "Anton", sans-serif;
    margin: 30px auto;
    padding: 20px 30px;
    display: block;
    font-size: 30px;
    border: none;
    background: #4d4d4d;
    background: linear-gradient(#4d4d4d, #222);
    border: 1px solid #222;
    border-radius: 5px;
    color: white;
    text-shadow: 0px 1px 0 black;
    cursor: pointer;
}
.memory-modal .memory-restart:hover {
    background: linear-gradient(#222, black);
}
.memory-modal .memory-message {
    text-align: center;
}
.memory-modal .memory-message a {
    text-decoration: none;
    color: #28afe6;
    font-weight: bold;
}
.memory-modal .message a:hover {
    color: #56c0eb;
    border-bottom: 1px dotted #56c0eb;
}
.memory-modal .share-text {
    text-align: center;
    margin: 10px auto;
}
.memory-modal .social {
    margin: 20px auto;
    text-align: center;
}
.memory-modal .social li {
    display: inline-block;
    height: 50px;
    width: 50px;
    margin-right: 10px;
}
.memory-modal .social li:last-child {
    margin-right: 0;
}
.memory-modal .social li a {
    display: block;
    line-height: 50px;
    font-size: 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.memory-modal .social li a.facebook {
    background: #3b5998;
}
.memory-modal .social li a.facebook:hover {
    background: #4c70ba;
}
.memory-modal .social li a.google {
    background: #d34836;
}
.memory-modal .social li a.google:hover {
    background: #dc6e60;
}
.memory-modal .social li a.twitter {
    background: #4099ff;
}
.memory-modal .social li a.twitter:hover {
    background: #73b4ff;
}

/* Obstacle Game Styling */

.obstacle-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
    padding-bottom: 20px;
}

.obstacle-game-canvas {
    width: 100%;
    height: 400px;
}

.obstacle-goal {
    font-size: 0.9em;
    padding: 0.5em 1em;
    border: 1pt solid #c8c8c887;
    background-color: #f5f5f540;
}

.obstacle-rec-obstacle {
    width: 1em;
    height: 2em;
    display: inline-block;
    margin-bottom: -0.4em;
}

.obstacle-rec-player {
    position: absolute;
    bottom: 0.5em;
    left: 0em;
    width: 2em;
    height: 2em;
    display: inline-block;
    margin-bottom: -0.4em;
}

.obstacle-previewer {
    position: relative;
    height: fit-content;
}

.obstacle-line {
    background-color: #f1eded9c; 
    width: 100%; 
    height: 0.2em; 
    position: absolute; 
    bottom: 2.2em; 
    left: 0; 
}

.obstacle-line2 {
    background-color: #f1eded9c; 
    width: 100%; 
    height: 0.2em; 
    position: absolute; 
    bottom: -0.4em; 
    left: 0; 
}

.obstacle-rec-obstacle-block1 {
   position: absolute;
   bottom: 0.5em;
   left: 6em;
}


.obstacle-rec-obstacle-block2 {
    position: absolute;
    bottom: 0.5em;
    left: 16em;
}

.obstacle-playing-ground {
    width: 100%;
}

.obstacle-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    margin: 5px 0;
}

.obstacle-game-options {
    position: fixed;
    background-color: #eee;
    font-size:5vh;
    margin:auto;
    margin-left:30vw;
    padding:2%;
    border-radius:4%;
    border:1px outset black;
    box-shadow:0 0 1vw 1vh #888;
    text-align:left;
    vertical-align:middle;
    display:none;
}

.obstacle-game-setings {
    margin-left: 40vw;
}

.obstacle-game-help {
    position: fixed;
}

/* File Upload */

.elem-file-upload {
    
}

.elem-file-upload label {
    display: block;
}

.elem-file-upload .start-button {
    width: 100%;
    background-color: #9b59b6;
    color: #efefef;
    border: solid #9b59b6 2px;
    padding: 5px 10px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.elem-file-upload .user-prompt {
    color: #ffb6b6;
}

.elem-gift-box .gift-boxes {
    display: flex;
    justify-content: space-between;
    padding: 0px 10px
}

.elem-gift-box .gift-box {
    height: 120px;
    width: 120px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.elem-ball-game .game-preview {
    background: #cccccc;
    width: 100%;
    height: 100px;
}

.elem-ball-game button {
    border: none;
    padding: 0px 10px;
}

.elem-ball-game .game-view {
    text-align: center;
}

.elem-ball-game .game
{
	display: inline-block;
	position: relative;
}

.elem-ball-game .game .cup
{
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-bottom: 130px solid red;
	height: 0;
	cursor: pointer;
	float: left;
	margin: 0 20px;
	position: relative;
	width: 70px;
}

.elem-ball-game .game .ball
{
	display: none;
	background: #000;
	border-radius: 50%;
	height: 20px;
	width: 20px;
	margin-left: 65px;
	position: absolute;
	bottom: 0;
	left: 0;
}

.elem-ball-game .game-result
{
	display: none;
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	font-size: 14px;
	text-align: center;
}
