/* static/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500');

html {
	 box-sizing: border-box;
}
 *, *::before, *::after {
	 box-sizing: inherit;
}
html {
	width: 100%;
	/* height: 100%; */
}
body {
	 width: 100%;
	 min-height: 100vh;
}
body {
	background: #0d0d3a;
	font-family: 'Orbitron';
	position: relative;
	/* animation: animateBackgroundColor 10s linear infinite; */
	display: flex;
    flex-direction: column;
	margin:0;
}

@keyframes animateBackgroundColor {
	0% {
	  background-color: #0d0d3a;
	}
	50% {
		background-color: #22226f;
	}
	100% {
		background-color: #0d0d3a;
	}	
}

a {
	text-decoration: none;
	margin: 0;
	padding: 0;
}
.aswat-logo {
	margin: 1em auto;
	display: block;
	margin-top:20px;
	margin-bottom: 10px;
	max-width: 500px;
	width: 100%;
}
.container {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
}

.container-about {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.title {
	/* top: 10; */
	margin-top:20 px;
	margin-bottom: 10px;
	font-size: 80px;
	text-align: center;
	text-transform: uppercase;
	color: #FFF7DB;
	/* color: #ffc53dc8;  */
	letter-spacing: 0.1em;
	/* text-shadow: 0px 2px 2px rgba(255, 255, 255, 0.6); */
}

.tooltip {
	cursor: pointer;
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted black;
    color: #fff7dbbf;
	font-size: large;
	letter-spacing: 0.1em;
  }
  
  .tooltiptext {
	visibility: hidden;
	color: #0d0d3a;
	text-align: left;
	border-radius: 8px;
	padding: 5px 5px;
	position: absolute;
	z-index: 200;
	border:4px solid #2c2c4e;
	top: 100%;
	left: 50%;
	margin-left: -60px;
	background-color:#fff7dbf1;
	opacity: 0;
	transition: opacity 0.2s;
	font-size: 16px;
	min-width: 330px;
	line-height: 4vh ;
	letter-spacing: 0.05em;
  }
  
  .tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
  }

  .tooltip.active .tooltiptext {
	visibility: visible;
	opacity: 1;
  }

#text-title {
	margin-top:20 px;
	margin-bottom: 10px;
	font-size: 30px;
	text-align: center;
	text-transform: uppercase;
	color: #FFF7DB;
	/* text-shadow: 0px 2px 2px rgba(255, 255, 255, 0.6); */
	letter-spacing: 0.1em;
}

#text-paragraph {
	margin-top:20 px;
	margin-bottom: 10px;
	font-size: 18px;
	margin-left: 10vh;
	margin-right: 10vh;
	justify-content: center;
	line-height: 8vh;
	overflow: auto;
	color: #fff7dbc9;
	letter-spacing: 0.05em;
}

.select-container {
	max-width: 500px;
	display: flex;
	margin: 1em auto 2em;
	flex-wrap: wrap;
	justify-content: center;
	/* background: rgba(255, 255, 255, 0.5); */
	padding: 4px 4px 4px;
}

.character {
	margin-top: 4px;
	margin-bottom: 4px;
	margin-left: 4px;
	margin-right: 4px;
	width: auto;
	max-height: 120px;
	align-self: stretch;
	/* background: rgba(255, 255, 255, 0.5); */
	cursor: pointer;
	position: relative;
	text-align: center;
}
.character__name {
	position: absolute;
	width: 100%;
	bottom: 0;
	display: none;
}
.character__img, .character__name {
	margin: 0;
	padding: 0;
}
.character__img {
	filter: grayscale(0.75);
	height: 120px;
	/* width: 80px; */
	outline: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 2%;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
}
.character.active {
	transform: scale(1.05);
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
	z-index: 100;
}
.character.active .character__name {
	display: block;
	width: 100%;
	background: #CC0000;
	color: #FFF7DB;
	opacity: 0.8;
	margin-top: 0.8em;
	font-size: 0.8em;
	text-transform: uppercase;
	font-weight: 700;
	padding: 0.3em 0;
}
.character.active:after {
	/* content: "1P"; */
	position: absolute;
	text-align: center;
	top: -15px;
	left: 30%;
	font-size: 36px;
	color: #ce3733;
	font-weight: 700;
	text-shadow: 0px 0px 5px rgba(255, 255, 255, 1);
}
.character.active .character__img {
	filter: grayscale(0);
	outline: 4px solid #f1e1c5;
	animation: flash 300ms linear;
}

@keyframes flash {
	 0% {
		 filter: brightness(100%);
	}
	 20% {
		 filter: brightness(150%);
	}
	 40% {
		 filter: brightness(100%);
	}
	 60% {
		 filter: brightness(150%);
	}
	 80% {
		 filter: brightness(100%);
	}
	 100% {
		 filter: brightness(150%);
	}
}

#videoContainer {
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#textForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-top: 0px; */
}

#loadingSpinner {
    display: none;
	margin-right: 10px;
}

#text-input {
    margin-top: 20px;
}

button {
    cursor: pointer;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #FFF7DB;
	opacity: 0.8;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-group {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-top:20px;
	margin-bottom: 20px;
}

.input-container {
    display: flex;
    align-items: center;
    width: 80vh;
    /* background-color: #e6d9c0; */
    border-radius: 0.5rem;
    border: 1px solid #FFF7DB;
    overflow: hidden;
}

.textbox-input {
    flex: 1;
	/* font-family: 'Orbitron'; */
	font-weight: 400;
    border: none;
    padding: 10px;
    font-size: 16px;
    outline: none;
    background: none;
	color: #FFF7DB;
}

#charCount {
	color: #ffffffa1;
	margin-right: 10px;
	font-size:13px;
}

::placeholder{
	color: #fff7dbaf;
}

.textbox-button {
    background-color: #ffffff77;
    color: #0d0d3a;
    border: none;
    padding: 11px 20px;
    font-size: 14px;
    cursor: pointer;
	transition: 0.1s;
    outline: none;
}

.textbox-button:hover {
    background-color: #FFF7DB;
}

/* .textbox-input:focus {
    box-shadow: 0 0 3px #0084ff;
} */


.share-video-buttons {
	display: flex;
	/* margin: 1em auto 0em; */
	flex-wrap: wrap;
	justify-content: center;
	/* padding: 4px 4px 4px; */
}

.download-button{
	background-color:#ffffff00;
	display:inline-block;
	position:relative;
	margin-top: 10px;
	/* margin-right: 20px; */
	padding:10px 10px 10px 10px;
	color:#FFF7DB;
	/* transition:all 0.2s ease; */
	border: 0px;
	border-radius: 0.5rem;
}
	
.download-button:before{
	content:"\f019";
	font-family:fontAwesome;
	font-style: normal;
	font-weight: normal;
	text-decoration: inherit;
	font-size:20px;
	color:#FFF7DB;
	opacity:1;
	padding:0px 10px;
}
	
/* .download-button:hover{
	background:#FFF7DB
} */

.share-button{
	background-color:#ffffff00;
	display:inline-block;
	position:relative;
	margin-top: 10px;
	/* margin-left: 40px; */
	padding:10px 10px 10px 10px;
	color:#FFF7DB;
	/* transition:all 0.2s ease; */
	border: 0px;
	border-radius: 0.5rem;
}
	
.share-button:before{
	content:"\f064";
	font-family:fontAwesome;
	font-style: normal;
	font-weight: normal;
	text-decoration: inherit;
	font-size:20px;
	color:#FFF7DB;
	opacity:1;
	padding:0px 5px;
}
	
/* .share-button:hover{
	background:#FFF7DB
} */

footer {
    background-color: #f5deb30f;
	border-top: 1px solid #f5deb324;
    color: #FFF7DB;
    display: flex;
    justify-content: space-between;
    padding: 1px;
    box-sizing: border-box;
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
	margin-right: 1em;
	margin-left: 1em;
}

.footer-right {
    align-items: flex-end;
}

#footer_logo {
	width: 50px; 
	height: auto;
	opacity: 0.8;
	padding: 5px;
}

.social-links a {
    color: #fff7dbbf;
	font-size: x-large;
    text-decoration: none;
    margin: 0 5px;
}

.social-links a:hover {
    color: #FFF7DB;
}

header {
    /* background-color: #f5deb30f; */
	border-bottom: 1px solid #f5deb324;
    color: #FFF7DB;
    display: flex;
	flex-direction: row-reverse;
    justify-content: space-between;
    padding: 10px;
    box-sizing: border-box;
}

.header-left,
.header-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
	margin-right: 1em;
	margin-left: 1em;
}

.header-right {
    align-items: flex-end;
}

.header-links a {
    color: #fff7dbbf;
	font-size: large;
    margin: 0 5px;
}

.header-links a:hover {
    color: #FFF7DB;
}

@media (max-width: 768px) {
    .input-container {
      width: 90%; /* Adjust width for smaller screens */
    }

	.aswat-logo {
		width: 90%;
	}
  }

@media (hover: none) {
    .social-links a:hover {
		color: #fff7dbbf;
	}
	.textbox-button:hover {
		background-color: #ffffff77;
	}
}