* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    font-size: 12px; /* Base size */
    line-height: 1.5;
    color: #222;
    overflow-x: hidden;
}

.select-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* margin-top: 2rem; */
    /* margin-bottom: 2rem; */
    /* margin-left: 2rem; */
    animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    display: none;
    top:-180px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
    background-color: #ffffff;
    border-radius: 40px;
    padding: 2.2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.message.fade-in {
    display: block !important;
    animation: fadeInUp 0.6s;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 98, 122, 0.1), transparent);
    transition: left 0.5s ease;
}

.message:hover::before {
    left: 100%;
}

.message:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.container {
    display: flex;
    /* height: 100vh; */
    width: 100vw;
    align-content: space-between;
    flex-direction: column;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Left panel */
.left {
    flex: 5;
    /* background-color: #d0e6ff; */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInLeft 1s ease-out 0.3s both;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Content inside left panel */
.left-content {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1.25rem; /* ~20px */
    transition: all 0.3s ease;
}

.left-content:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Right panel */
.right {
    flex: 3;
    /* background-color: #fcd9d9; */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 1s ease-out 0.5s both;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Content inside right panel */
.right-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 1.1rem; /* ~17.6px */
    animation: fadeInUp 1s ease-out 0.7s both;
}

#current-character {
    font-size: 3rem;
    font-weight: bold;
    color: #000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: characterEntrance 1s ease-out 1s both;
}

@keyframes characterEntrance {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    50% {
        transform: scale(1.2) rotate(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

#current-character:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(239, 98, 122, 0.5);
}

#outputTitle {
    transition: all 0.3s ease;
    color: #333;
    font-weight: 600;
}

#outputTitle:hover {
    color: #EF627A;
    transform: scale(1.05);
}

#output {
    transition: all 0.3s ease;
    position: relative;
}

#output:hover {
    transform: scale(1.02);
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left, .right {
        flex: none;
        width: 100%;
        /* height: 50vh; */
    }

    .left-content, .right-content {
        max-width: 90%;
        font-size: 1rem; /* ~16px on smaller screens */
    }
    
    .message {
        padding: 2rem;
        font-size: 1.2rem;
    }
    
    #current-character {
        font-size: 2.5rem;
    }
}

#center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* perfectly center */
  color: #fff; /* or any color you want */
  font-size: 1.5rem; /* adjust size */
  font-weight: bold;
  pointer-events: none; /* optional: so it doesn't block clicks */
  white-space: nowrap; /* avoid line breaks */
  user-select: none; /* prevent text selection */
  z-index: 2000; /* above slices */
}

.select-css {
    text-align: center;
	display: block;
	font-size: 16px;
	font-family: 'Verdana', sans-serif;
	font-weight: 400;
	color: #444;
	line-height: 1.3;
	padding: .4em 1.4em .3em .8em;
	width: 300px;
	max-width: 100%; 
	box-sizing: border-box;
    margin: 20px auto;
	border: 1px solid #aaa;
	box-shadow: 0 1px 0 1px rgba(0,0,0,.03);
	border-radius: .3em;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	/*background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
	  linear-gradient(to bottom, #ffffff 0%,#f7f7f7 100%);
	*/background-repeat: no-repeat, repeat;
	background-position: right .7em top 50%, 0 0;
	background-size: .65em auto, 100%;
	transition: all 0.3s ease;
}

.select-css::-ms-expand {
	display: none;
}

.select-css:hover {
	border-color: #EF627A;
	box-shadow: 0 0 15px rgba(239, 98, 122, 0.3);
	transform: translateY(-2px);
}

.select-css:focus {
	border-color: #EF627A;
	box-shadow: 0 0 1px 3px rgba(239, 98, 122, 0.7);
	color: #222; 
	outline: none;
	transform: translateY(-2px);
}

.select-css option {
	font-weight:normal;
}

.classOfElementToColor:hover {background-color:red; color:black}

.select-css option[selected] {
    background-color: orange;
}

/* Animaciones adicionales */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(239, 98, 122, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(239, 98, 122, 0.8);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Efectos de partículas de fondo */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(239, 98, 122, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(250, 162, 79, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(254, 217, 76, 0.1) 0%, transparent 50%);
    animation: particleMove 20s ease-in-out infinite;
}

@keyframes particleMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-20px, -20px) scale(1.1);
    }
    50% {
        transform: translate(20px, -10px) scale(0.9);
    }
    75% {
        transform: translate(-10px, 20px) scale(1.05);
    }
}
