/* ------------------------General Styling------------------------ */
body {
    margin: 0;
    padding: 0;
    font-family: "Arial", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

button {
    border-radius: 9999px;
    cursor: pointer;
}

/* ------------------------First Section (Hero)----------------------- */
/* The hero section consists of a title and a get started button.
The title will have a typewriter animation */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vmin;
}

.hero__title {
    font-family: "Ubuntu Sans Mono", Courier, monospace;
    font-size: 10vmin;
    font-weight: lighter;
    border-right: .05ch solid var(--text-color);
    overflow: hidden;
    margin: 0;
    white-space: nowrap;
    animation: 
    typing 2s steps(15, end) forwards,
    blink-caret 1s step-end infinite;
}

/* The typewriter text progression effect  */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--text-color); }
}

.hero__button {
    height: 5vmin;
    width: 20vmin;
    border: none;
    color: var(--background-color);
    background-color: var(--primary-color);
    font-size: 2vmin;
    background-image: linear-gradient(to left, var(--success-color) 50%, var(--primary-color) 50%);
    background-size: 200%;
    transition: 0.4s ease-out;
}

.hero__button:hover {
    background-position: right;
}

/* ------------------------Second Section (Mission)----------------------- */
/* The mission section consists of an animation and mission text.
The animation will be a multi-rowed carousel animation of the spanish alphabet */
.mission {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5vmin;
}

.carousel {
    width: 50vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.carousel__row {
    font-size: 9.5vmin;
    margin: 4vmin;
    width: max-content;
    display: flex;
}

.carousel__row {
    animation:
    rotate-left 14s linear infinite;
}

.carousel__row--reverse {
    animation:
    rotate-right 14s linear infinite;
}

.carousel__row:hover { 
    animation-play-state: paused; 
}

/* The carousel effect going to the right */
@keyframes rotate-right {
    from {transform: translateX(0)}
  to {transform: translateX(-50%)}
}

/* The carousel effect going to the left */
@keyframes rotate-left {
    from {transform: translateX(-50%)}
  to { transform: translateX(0) }
}

.carousel__row span {
    border-right: 2px solid var(--text-color);
    padding: 0 10vmin;
}

.mission__paragraph {
    width: 45vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mission__statement {
    font-size: 3vmin;
    text-align: center;
    padding: 5vmin;
    color: var(--background-color);
    background-color: var(--primary-color);
    border-radius: 40px;
    transition: transform 0.5s ease;
    transform: translateY(0%);
}

.mission__statement:hover {
    transition: transform 0.5s ease;
    transform: translateY(-25%);
}

/* ------------------------Third Section (Sign In/Sign Up)----------------------- */
/* The sign in/sign up section consists of a sign in and sign up with a window.
The window will cover one of them until a button is pressed to move it */
.sign {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sign__container {
    background-color: var(--background-color);
    width: 60vw;
    height: 60vh;
    box-shadow: 0 0 10px rgba(0,0,0, 0.5);
    border-radius: 20px;
    display: flex;
    position: relative;
    overflow: hidden;
}

.sign__half {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3vmin;
}

.sign__header {
    font-size: 4vmin;
    margin: 0;
}

.sign__field {
    background-color: var(--shadow-color);
    font-size: 1.5vmin;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
}

.sign__button{
    font-size: 1.5vmin;
    color: var(--background-color);
    padding: 10px 50px;
    border: none;
    background-image: linear-gradient(to left, var(--success-color) 50%, var(--primary-color) 50%);
    background-size: 200%;
    transition: 0.4s ease-out;
}

.sign__button:hover {
    background-position: right;
}

.sign__link {
    font-size: 1.5vmin;
}

.sign__overlay {
    background-image: linear-gradient(to left, var(--secondary-color), var(--primary-color));
    background-size: 200%;
    width: 50%;
    height: 100%;
    left: 0;
    position: absolute;
    transition: transform 0.6s ease-in-out, background-position 0.6s ease-in-out;
    overflow: hidden;
    color: var(--background-color);
}

.sign__overlay--moved-right {
    transform: translateX(100%);
    background-position: right;
}

.overlay__container {
    width: 200%;
    height: 100%;
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.sign__overlay--moved-right .overlay__container {
    transform: translateX(-50%);
}

.overlay__half {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3vmin;
}

.overlay__header {
    font-size: 4vmin;
    margin: 0;
}

.overlay__text {
    font-size: 1.5vmin;
}

.overlay__button {
    border: 2px solid var(--background-color);
    font-size: 1.5vmin;
    padding: 10px 50px;
    background-color: transparent;
    color: var(--background-color);
}