body {
    background-color: #06244a;
    background-image: url(bg.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    overflow-y: hidden;
    font-family: 'Nunito', serif;
}

.webpage {
    background-color: rgba(14, 33, 110, 0.2);
    padding: 1vw 2vw;
    border: 0.3vw solid #133c73;
    border-radius: 1vw;
    margin: 1vw;
    height: 91.7vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1vh;
}

.logo {
    position: absolute;
    top: 2vw;
    left: 3vw;
    z-index: 2;
}

.header {
    font-size: clamp(30px, 3vw, 80px);
    border-bottom: 0.2vw solid #133c73;
    margin: 0 auto;
    color: #133c73;
    margin-top: 1vh;
    width: 50%;
    text-align: center;
}

.switch {
    position: absolute;
    top: 3vw;
    right: 4vw;
    display: inline-block;
    width: 5vw;
    height: 2.8vw;
}

.switch .checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #275a9c;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 2.15vw;
    width: 2.15vw;
    left: 0.33vw;
    bottom: 0.33vw;
    background-color: #f9e1f9;
    transition: .4s;
}

.checkbox:checked + .slider {
    background-color: #0d2e5a;
}

.checkbox:focus + .slider {
    box-shadow: 0 0 0.08vw #2196F3;
}

.checkbox:checked + .slider:before {
    transform: translateX(2.15vw);
}

.slider.round {
    border-radius: 5vw;
}

.slider.round:before {
    border-radius: 50%;
}

.tooltip {
    visibility: hidden;
    background-color: #275a9c;
    color: white;
    text-align: center;
    padding: 4px 8px;
    border: 0.2vw solid #133c73;
    border-radius: 4px;
    position: absolute;
    transform: translateX(-13vw);
    width: 10vw;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.toggle:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.input {
    margin: 0 auto;
    margin-bottom: 1vh;
}

.select {
    font-family: 'Nunito', serif;
    font-size: clamp(20px, 0.8vw, 40px);
    padding: 0.4vw 1vw;
    border: 0.2vw solid #133c73;
    border-radius: 0.5vw;
    background-color: #275a9c;
    color: #f9e1f9;
    outline: none;
    cursor: pointer;
    width: 10vw;
    margin: 0 0.5vw;
    appearance: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.select:hover {
    background-color: #153d7b;
    border-color: #071e3c;
    color: #fcc1fa;
}

.gen {
    font-family: 'Nunito', serif;
    font-size: clamp(20px, 0.8vw, 40px);
    padding: 0.4vw 1vw;
    border: 0.2vw solid #133c73;
    border-radius: 0.5vw;
    background-color: #275a9c;
    color: #f9e1f9;
    outline: none;
    cursor: pointer;
    width: 10vw;
    appearance: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    margin-right: 0.5vw;
}

.gen:hover {
    background-color: #153d7b;
    border-color: #071e3c;
    color: #fcc1fa;
}

.output {
    background-color: rgba(7, 27, 124, 0.5);
    border: 0.2vw solid #133c73;
    border-radius: 0.5vw;
    min-height: 74%;
    padding: 1vw 2vw;
    border-radius: 1vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #f9e1f9;
}

.outputTitle {
    font-size: clamp(30px, 2.5vw, 70px);
    border-bottom: 0.2vw solid #06244a;
    display: inline-block;
    padding: 0 5vw;
}

.outputName {
    font-size: clamp(20px, 1.8vw, 60px);
    animation: typing 0.7s steps(13), blink .5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 0.3vw solid;
    font-family: 'IBM Plex Mono', serif;
}

@keyframes typing {
    from {
        width: 0;
    } to {
        width: 100%;
    }
}
      
@keyframes blink {
    50% {
        border-right-color: transparent;
    }
}

.outputLangsDiv {
    font-size: clamp(20px, 1.3vw, 50px);
    margin-top: 0.4vw;
}

.outputLangs {
    animation: typing 0.7s steps(7), blink .5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 0.3vw solid;
    font-family: 'IBM Plex Mono', serif;
}

@keyframes typing {
    from {
        width: 0;
    } to {
        width: 100%;
    }
}
      
@keyframes blink {
    50% {
        border-right-color: transparent;
    }
}

#langs {
    width: 20vw;
}
