
body {
    text-align: center;
    font-family: Arial, sans-serif;
    margin: 40px;
    font-weight: 700;
}

.dna-background {
    position: fixed;
    width: 800px;
    height: 1500px;
    margin-top: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    z-index: -1;
    opacity: 0.85;
}

h1 {
    margin-bottom: 10px;
    text-shadow: 0 1px 2px black;
}

p {
    font-size: 18px;
    text-shadow: 0 1px 2px black;
}

h2 {
    text-shadow: 0 1px 2px black;
}

label {
    text-shadow: 0 1px 2px black;
}

input {
    padding: 10px;
    width: 300px;
    border-radius: 8px;
    border: 1px solid black;
    transition: 300ms;
    background-color: #dee2e6;
    z-index: 1;
}

input:focus {
    outline: none;
    border: 2px solid #39ff14;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}


input.error {
    border-color: #f00;
    animation: shake 300ms;
    box-shadow: 0 0 10px #f00;
}

input.success {
    border-color: #39ff14;
    box-shadow: 0 0 10px #39ff14;
    animation: success 1s ease-in-out;
}

@keyframes shake {
    25% {transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% {transform: translateX(-5px); }
}

@keyframes success {
    0% {
      transform: scale(1);
    }
    65% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
}

button {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid black;
    font-weight: 1000;
    transition: scale 0.5s ease-in-out, filter 0.3s ease-in-out;
    background-color: #dee2e6;
    z-index: 1;
}

button:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px #39ff14);
}

a:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px #39ff14);
}

a {
    display: inline-block;
    margin-top: -10px;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #dee2e6;
    border-radius: 8px;
    border: 1px solid black;
    font-weight: 1000;
    transition: scale 0.5s ease-in-out, filter 0.3s ease-in-out;
    text-decoration: none;
    z-index: 1;
    color: #4A1985;
}


.back-Home {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.switcher {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 1;
}

.result-box {
    background-color: #dee2e6;
    backdrop-filter: blur(12px);
    padding: 20px;
    margin: 30px auto;
    width: fit-content;
    max-width: 80%;
    border-radius: 8px;
    border: 1px solid black;
    animation: resultPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

@keyframes resultPop {
    0% {
      transform: scale(0.6);
      opacity: 0;
    }
    65% {
      transform: scale(1.04);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
}

#dnaResult {
    white-space: pre-line;
}

.result-box p {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 8px 0;
}

.front-Link1 {
    position: fixed;
    top: 180px;
    left: 760px;
    background-color: #dee2e6;
    z-index: 1;
    color: #4A1985;
    text-decoration: none;
}

.front-Link2 {
    position: fixed;
    top: 180px;
    left: 480px;
    background-color: #dee2e6;
    z-index: 1;
    color: #4A1985;
    text-decoration: none;
}
