@font-face {
	font-family: "Sans Medium";
	src: url("googlesansmedium.woff2") format("woff2");
	display: swap;
}

body {
	font-family: "Sans Medium", system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
		"Helvetica Neue", sans-serif;
	background-color: black;
	margin: 0;
	padding: 0;
}

header {
	border-bottom: 1px solid #0070f366;
	color: #fff;
	padding: 10px;
	text-align: center;
}

main {
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 20px;
	max-width: 1000px;
	margin: 0 auto;
}

h1 {
	font-size: 29px;
	margin: 0;
}

h2 {
	color: white;
	margin: 16px 0 6px;
}

label {
	color: white;
	margin-bottom: 14px;
	font-size: 20px;
	/* margin-top: 5px; */
	display: inline-block;
}

#left-column {
	flex: 2;
	margin-right: 20px;
}
#right-column {
	flex: 1;
	border-left: 2px solid #8e44ad5c;
	padding-left: 20px;
}

#cartoon-style-buttons {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

.cartoon-style-button {
	flex: 1;
	height: 100px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.cartoon-style-button.spongebob {
	background-image: url("spongebob.png");
}

.cartoon-style-button.mickey-mouse {
	background-image: url("mickeyMouse.png");
}

.prompt-container {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

#user-prompt {
	width: 65%;
	height: 45px;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid #8e44ad;
	resize: none;
	font-size: 16px;
	border-radius: 5px;
	outline: none;
	background-color: #ffffff1f;
	color: white;
	transition: border-color 0.3s ease;
	display: grid;
	font-family: consolas;
}

#generate-button {
	background-color: #f4b400;
	color: black;
	border: none;
	padding: 13px 15px;
	font-size: 17px;
	cursor: pointer;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s ease;
	max-width: 229px;
	display: inline-flex;
	align-items: center;
	min-width: 205px;
	text-align: center;
	justify-content: center;
	font-family: "Sans Medium", system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
		"Helvetica Neue", sans-serif;
}

#generate-button:hover {
	background-color: #ffc400;
}

#generated-video {
	/* Swap the padding top values for 16:9 and 4:3 aspect ratios. 
	Kindly change this state after changing. Currently set to 16:9. */

	padding-top: 56.25%;
	/* padding-top: 75%; */
	height: 0px;
	position: relative;
	margin-top: 12px;

}

#generated-video video {
	width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
	border-radius: 12px;
}

.thumbnail {
	display: flex;
	align-items: center;
	padding: 10px;
	border-bottom: 1px solid black;
	transition: background-color 0.3s ease;
	cursor: pointer;
	border-radius: 6px;
}

.thumbnail img {
	width: 100px;
	height: 60px;
	margin-right: 10px;
	border-radius: 5px;
}

.thumbnail-title {
	color: #0070f3;
	font-weight: bold;
}

.thumbnail-content {
	color: white;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.thumbnail-content-title {
	font-size: 16px;
	margin: 0;
}

.thumbnail-content-duration {
	font-size: 14px;
	margin: 0;
	color: #ffffffa3;
}

.thumbnail:hover {
	background-color: #f5f5f545;
	border-radius: 6px;
}

/* Your existing CSS code */

#cartoon-style-buttons {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

.cartoon-style-button {
	flex: 1;
	height: 100px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: transform 0.3s ease;
	outline: none; /* Remove focus outline */
}

/* Add blue border style for SpongeBob button */
.cartoon-style-button.spongebob {
	background-image: url("spongebob.jpg");
	border: 2px solid #0070f3;
}

/* Add gold border style for Mickey Mouse button */
.cartoon-style-button.mickey-mouse {
	background-image: url("mickeyMouse.jpg");
	border: 2px solid #f4b400;
}

#cartoon-style-buttons {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
	gap: 10px;
}

.cartoon-style-button {
	flex: 1;
	height: 100px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: transform 0.3s ease;
	outline: none; /* Remove focus outline */
	opacity: 0.4; /* Set default opacity for non-selected buttons */
}

/* Add specific opacity for SpongeBob button */
.cartoon-style-button.spongebob.selected {
	opacity: 1;
}

/* Add specific opacity for Mickey Mouse button */
.cartoon-style-button.mickey-mouse.selected {
	opacity: 1;
}


/* Add style for the loader */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #1A237E;
    border-radius: 50%;
    width: 11px;
    height: 11px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

.loaderBig {
	height: 30px;
    border: 8px solid #ffffff4d;
    width: 30px;
    border-top: 8px solid #1A237E;
    margin: 12px auto;
}

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

/* Add style for the disabled state of the button */
#generate-button.disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.videoTitle {
	font-size: 20px;
	font-weight: bold;
	margin: 0;
	color: #ffffff;
	display: block;
	margin-top: 12px;
}

.videoDescription {
	font-size: 16px;
	margin: 0;
	color: #ffffffa3;
	display: block;
	margin-top: 12px;
}

@media screen and (max-width: 480px) {
	main {
		flex-direction: column;
	}
	.prompt-container {
		flex-direction: column;
	}
	#user-prompt {
		width: 100%;
	}
	#right-column {
		border: none;
		padding: 10px;
		background-color: #ffffff14;
		display: flex;
		flex-direction: column;
		text-align: center;
		border-radius: 12px;
		min-height: 40vh;
		margin-top: 21px;
		gap: 12px;
	}
	.thumbnail {
		display: flex;
		flex-direction: column;
		text-align: left;
		border-bottom: 0;
	}
	.thumbnail img {
		width: 100%;
		height: auto;
		margin-right: 0;
	}
	.thumbnail-content {
		width: 100%;
		margin-top: 12px;
	}
	#left-column {
		margin-right: 0;
	}
}

