/* Set Global Styles in Manage Settings */

html {
  font-size: 16px;
}
/* Add CSS styles below */

@keyframes heartbeat {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
@keyframes flipTossright {
    0% {
        transform: rotate(0deg) translateY(0);
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateY(-400px);
        opacity: 0;
    }
}
@keyframes flipTossleft {
    0% {
        transform: rotate(0deg) translateY(0);
        opacity: 1;
    }
    100% {
        transform: rotate(-45deg) translateY(-400px);
        opacity: 0;
    }
}


  
@keyframes rotateFlipFadeOut {
    0% {
        transform: rotateY(0);
    }
    100% {
        transform: rotateY(100deg);
    }
  }
  
.twp-flashcard-wrapper .card-container .speaker-icon.audio-playing {
    animation: heartbeat 0.5s infinite; /* Adjust the duration as needed */
}

.twp-flashcard-wrapper {
    font-family: inherit;
    max-width: 425px;
    max-width: 26.5625rem;
    height: 460px;
    height: 28.75rem;
    width: 100%;
}
.twp-main-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 75px;
	padding-bottom: 4.6875rem;

}

.twp-flashcard-wrapper .twp-fc-header .go-back,
.twp-flashcard-wrapper.fc-end .twp-fc-header .card-count {
	display: none;
}

.twp-fc-header {
    display: flex;
    flex-direction: row;
    justify-content: end;
    width: 100%;
    margin-bottom: 7px;
    margin-bottom: 0.4375rem;
}

.twp-flashcard-wrapper.fc-start .twp-fc-header .go-back {
	display: none;
}
.twp-flashcard-wrapper.fc-start.show-back .twp-fc-header .go-back span {
    font-size: 30px;
	font-size: 1.875rem;
	margin-right: 2px;
	margin-right: 0.125rem;
    margin-top: -3px;
	margin-top: -0.1875rem;
}
.twp-flashcard-wrapper.fc-start.show-back .twp-fc-header .go-back {
	display: flex;
	border: none;
    background: none;
    font-size: 16px;
    font-size: 1rem;
    line-height: 19px;
    line-height: 1.1875rem;
    color: #333333;
    cursor: pointer;
	text-decoration: none;
    width: 50%;
    text-align: left;
    align-items: center;
}
.twp-flashcard-wrapper .card-count {
    font-size: 16px;
    font-size: 1rem;
    line-height: 19px;
    line-height: 1.1875rem;
    color: #333333;
    font-weight: 400;
    width: 50%;
    text-align: right;
}
.twp-flashcard-wrapper .twp-dialog-initial {
    display: flex;
    justify-content: center;
}

.twp-flashcard-wrapper .language-selection-box {
    max-width: 425px;
    max-width: 26.5625rem;
    height: 460px;
    height: 28.75rem;
    width: 100%;
    border-radius: 10px;
    border-radius: 0.625rem;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 8px rgba(0,0,0,.25);
    box-shadow: 0 1px 0.5rem rgba(0,0,0,.25);
}
.twp-flashcard-wrapper .flash-card-title {
    color: #000000;
    font-size: 18px;
    font-size: 1.125rem;
    font-weight: 700;
    width: 100%;
    border-bottom: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
    text-align: center;
    padding-bottom: 10px;
    padding-bottom: 0.625rem;
    text-transform: uppercase;
}
.twp-flashcard-wrapper .language-selection-form br {
    display: none;
}
.twp-flashcard-wrapper .language-selection-form p {
    margin: 0;
}

.twp-flashcard-wrapper .language-selection-form {
    display: flex;
    align-content: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 425px;
    max-width: 26.5625rem;
    height: 460px;
    height: 28.75rem;
    width: 100%;
    
}
.twp-flashcard-wrapper .practice-option p {
    font-size: 16px;
    font-size: 1rem;
    font-weight: 400;
    color: #333333;
    margin-bottom: 33px;
    margin-bottom: 2.0625rem;
}
.twp-flashcard-wrapper .language-options {
    display: flex;
    flex-direction: column;
}
.twp-flashcard-wrapper .language-options label {
    margin-bottom: 15px;
    margin-bottom: 0.9375rem;
    cursor: pointer;
}
.twp-flashcard-wrapper input.submit-language {
    margin-top: 158px;
    margin-top: 9.875rem;
    width: 132px;
    width: 8.25rem;
    height: 41px;
    height: 2.5625rem;
    border-radius: 20.5px;
    border-radius: 1.2812rem;
    color: #ffffff;
    background-color: #E0352B;
    border: 1px solid #E0352B;
    border: 1px solid #E0352B;
    cursor: pointer;
	font-size: 16px;
	line-height: 19px;
	font-weight: 400;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
}
.twp-flashcard-wrapper.fc-start {
    max-width: 425px;
    max-width: 26.5625rem;
    height: 500px;
    height: 31.25rem;
    width: 100%;
}

.twp-flashcard-wrapper .card-container {
    width: 100%;
    max-width: 425px;
    max-width: 26.5625rem;
    height: 460px;
    height: 28.75rem;
    border-radius: 10px;
    border-radius: 0.625rem;
    background-color: #ffffff;
    box-shadow: 0 1px 8px rgba(0,0,0,.25);
    box-shadow: 0 1px 0.5rem rgba(0,0,0,.25);
	display: flex;
    flex-direction: column;
    align-items: center;
	justify-content: space-between;
	padding-bottom: 10px;
}
.twp-flashcard-wrapper .card-container h2 {
	font-size: 18px;
    font-size: 1.125rem;
    line-height: 19px;
    line-height: 1.1875rem;
    text-transform: uppercase;
    color: #000000;
    font-weight: 700;
    text-align: center;
    padding: 10px 0px;
    padding: 0.625rem 0rem;
    border-bottom: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
    width: 100%;
    margin: 0px;
    margin: 0rem;
}
.twp-flashcard-wrapper .card-container img {
    margin-bottom: 10px;
    margin-bottom: 0.625rem;
    max-width: 332px;
    max-width: 20.75rem;
	max-height: 242px;
	max-height: 15.125rem;
}
.twp-flashcard-wrapper p.english-words, .twp-flashcard-wrapper p.spanish-words {
    font-size: 30px;
    font-size: 1.875rem;
    line-height: 1.1;
    color: #000000;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
    padding: 10px;
	padding: 0.625rem;
    margin-bottom: 0px;
}
.twp-flashcard-wrapper p.fc-subtext {
    display: inline-block;
    width: 100%;
    font-size: 16px;
    font-size: 1rem;
    line-height: 19px;
    line-height: 1.1875rem;
    color: #000000;
    font-weight: 400;
    margin-top: 0px;
    text-align: center;
    padding-left: 10px;
	padding-left: 0.625rem;
    padding-right: 10px;
	padding-right: 0.625rem;
}
.twp-flashcard-wrapper .flip-message {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 16px;
    font-size: 1rem;
    line-height: 19px;
    line-height: 1.1875rem;
    color: #000000;
    font-weight: 400;
    margin-top: 20px;
    margin-top: 1.25rem;
}
.twp-flashcard-wrapper .flashcard-buttons {
	width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    gap: 0.625rem;
    margin-top: 20px;
    margin-top: 1.25rem;
}
.twp-flashcard-wrapper button.skip-button {
    width: 132px;
    width: 8.25rem;
    height: 41px;
    height: 2.5625rem;
    border-radius: 20px;
    border-radius: 1.25rem;
    background-color: #e0352b;
    border: 1px solid #e0352b;
    border: 1px solid #e0352b;
    font-size: 16px;
    font-size: 1rem;
    line-height: 19px;
    line-height: 1.1875rem;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    display: flex;
	align-items: center;
	justify-content: center;
	padding: 0rem !important;
}
.twp-flashcard-wrapper button.got-it-button {
    width: 132px;
    width: 8.25rem;
    height: 41px;
    height: 2.5625rem;
    border-radius: 20px;
    border-radius: 1.25rem;
    background-color: #008000;
    border: 1px solid #008000;
    border: 1px solid #008000;
    font-size: 16px;
    font-size: 1rem;
    line-height: 19px;
    line-height: 1.1875rem;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    display: flex;
	align-items: center;
	justify-content: center;
	padding: 0rem !important;
}
/* Style for the message container */
.twp-flashcard-wrapper .message-container {
	text-align: center;
	margin-top: 20px;
	margin-top: 1.25rem;
}

/* Style for the message */
.twp-flashcard-wrapper .message {
	width: 132px;
	width: 8.25rem;
	height: 41px;
	height: 2.5625rem;
	border-radius: 20px;
	border-radius: 1.25rem;
	background-color: #8c8c8c;
	border: 1px solid #8c8c8c;
	border: 1px solid #8c8c8c;
	font-size: 16px;
	font-size: 1rem;
	color: #ffffff;
	font-weight: 400;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0rem !important;
}

/* Style for the check icon */
.twp-flashcard-wrapper .message:after {
	margin-left: 5px; /* Margin to separate the icon from the text */
}

.twp-flashcard-wrapper .well-done-container {
    gap: 41px;
    gap: 2.5625rem;
    width: 100%;
    max-width: 425px;
    max-width: 26.5625rem;
    height: 460px;
    height: 28.75rem;
    border-radius: 10px;
    border-radius: 0.625rem;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 8px rgba(0,0,0,.25);
    box-shadow: 0 1px 0.5rem rgba(0,0,0,.25);
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0px;
    padding: 1.25rem 0rem;
}
.twp-flashcard-wrapper .well-done-text {
    font-size: 30px;
    font-size: 1.875rem;
    line-height: 19px;
    line-height: 1.1875rem;
    color: #000000;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 50px;
}
.twp-flashcard-wrapper button.start-again-button {
    width: 132px;
    width: 8.25rem;
    height: 41px;
    height: 2.5625rem;
    border-radius: 20px;
    border-radius: 1.25rem;
    background-color: #e0352b;
    border: 1px solid #e0352b;
    border: 1px solid #e0352b;
    font-size: 16px;
    font-size: 1rem;
    line-height: 19px;
    line-height: 1.1875rem;
    color: #ffffff;
    font-weight: 400;
    cursor: pointer;
    display: flex;
	align-items: center;
	justify-content: center;
	padding: 0rem !important;
}
.twp-flashcard-wrapper .redo-button {
	display: flex;
	align-items: center; /* Align items vertically in center */
	background-color: transparent;
	border: none;
	cursor: pointer;
	font-weight: 400;
	font-size: 16px;
	font-size: 1rem;
	line-height: 19px;
	line-height: 1.1875rem;
    color: #000000;
    width: 132px;
    width: 8.25rem;
    justify-content: center;
}

.twp-flashcard-wrapper .redo-button img {
	margin-right: 5px; /* Adjust margin as needed */
	width: 15px;
	width: 0.9375rem;
}
.twp-flashcard-wrapper .btn-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.twp-flashcard-wrapper .speaker-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.twp-flashcard-wrapper .hint-icon {
    width: 132px;
    width: 8.25rem;
    height: 41px;
    height: 2.5625rem;
    border-radius: 20px;
    border-radius: 1.25rem;
    background-color: #ffa500;
    border: 1px solid #ffa500;
    border: 1px solid #ffa500;
    font-size: 16px;
    font-size: 1rem;
    line-height: 19px;
    line-height: 1.1875rem;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem !important;
    z-index: 2;
}
.twp-flashcard-wrapper .hint-icon:hover,
.twp-flashcard-wrapper .text-icon:hover {
    background-color: rgba(255,165,0,.80);
    border: 1px solid rgba(255,165,0,.80);
}

.twp-flashcard-wrapper .speaker-icon {
    width: 40px;
	width: 2.5rem;
	height: 40px;
	height: 2.5rem;
    background: url('images/Speaker.png') no-repeat center center;
    background-size: cover; /* Ensure the image covers the container */
    cursor: pointer; /* Add a pointer cursor to indicate interactivity */
	z-index: 2;
}
.twp-flashcard-wrapper .text-icon {
    width: 132px;
    width: 8.25rem;
    height: 41px;
    height: 2.5625rem;
    border-radius: 20px;
    border-radius: 1.25rem;
    background-color: #ffa500;
    border: 1px solid #ffa500;
    border: 1px solid #ffa500;
    font-size: 16px;
    font-size: 1rem;
    line-height: 19px;
    line-height: 1.1875rem;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem !important;
    z-index: 2;
}


.twp-flashcard-wrapper .spanish-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
    position: relative;
    width: 100%;
}

.hint-content {
    position: absolute;
    width: 90%;
    top: -45px; /* Adjust the top position as needed */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 9999; /* Ensure it's above other content */
    box-shadow: 0 1px 8px rgba(0, 0, 0, .25);
    box-shadow: 0 1px 0.5rem rgba(0, 0, 0, .25);
}


/* Triangle arrow for the hint */
.hint-content::before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 8px;
    border-color: #d4d4d4 transparent transparent transparent;
    bottom: -16px; /* Adjust depending on the size of the arrow */
    left: 50%;
    transform: translateX(-50%);
}




.twp-flashcard-wrapper .twp-dialog-done,
.twp-flashcard-wrapper .twp-flashcards {
	display: none;
}

.twp-flashcard-wrapper.fc-start .twp-dialog-initial,
.twp-flashcard-wrapper.fc-end .twp-dialog-initial {
	display: none;
}

.twp-flashcard-wrapper.fc-start .twp-flashcards {
	display: block;
}

.twp-flashcard-wrapper.fc-end .twp-dialog-done {
    display: flex;
    justify-content: center;
}

.twp-flashcards .fc-item {
	display: none;
	position: relative;
}

.twp-flashcards .fc-item.active {
	display: block;
}

.twp-flashcards .fc-item > * {
	z-index: 0;
	position: relative;
}

.twp-flashcards .fc-item > .card-container  > a.card-flip-handler {
	display: block;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	position: absolute;
  	z-index: 1;	
}

.twp-flashcards .fc-item > .card-container > audio,
.twp-flashcards .fc-item > .card-container > .flashcard-buttons {
	z-index: 2;
}


button.start-again-button:hover,
input.submit-language:hover,
button.skip-button:hover,
button.got-it-button:hover
{
	background-color: #1E42DD;
    border-color: #1E42DD;
}


/* Media Queries */

@media(max-width: 767px) {
    .twp-flashcard {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media only screen and (min-width: 769px) {

}


@media only screen and (max-width: 1300px) {

}

                                        

@media only screen and (max-width: 1200px) {

	html {		
		font-size: 14px;		
	}

}


@media only screen and (max-width: 1080px) {

	html {		
		font-size: 13px;	
	}
  
}


@media only screen and (max-width: 991px) and (min-width: 769px) {

}


@media only screen and (max-width: 900px) {

	html {		
		font-size: 12px;		
	}

}


@media only screen and (max-width: 800px) {

	html {		
		font-size: 11px;	
	}

}


@media only screen and (max-width: 768px) {

	html {		
		font-size: 16px;	
	}

}


@media only screen and (max-width: 600px) {  

	html {		
		font-size: 15px;	
	}

}


@media only screen and (max-width: 500px) {

}


@media only screen and (max-width: 400px) {

}


@media only screen and (max-width: 370px) {

	html {  		
		font-size: 14px;		
	}
	
}


@media only screen and (max-width: 350px) {

	html {		
		font-size: 13.66px;		
	}

}
