/* VIDEO DE FONDO */

#video-nietz {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: fixed;
    bottom: -25vh;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

#video-background2 {
    height: 120vh;
    object-fit: cover;
    -webkit-mask-image: url('../images/resources/mask.png');
    mask-image: url('../images/resources/mask.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    border: none;
}


/* CONTACTO */

.contact_elements h2,
.contact_elements h3 {
    color: #16161d;
    text-align: left;
    margin: 0;
}

.contact_elements h2 {
    font-size: 2rem;
    font-weight: 200;
}

.contact_elements h3 {
    font-size: 1.5rem;
    font-weight: 100;
}

.contact_elements {
    margin-top: 30vh;
    margin-left: 5vmin;
    text-align: center;
    position: relative;
    z-index: 999;
}


/* FORMULARIO */

.contenedor-contacto {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 80vh;
    padding: 5vh 0;
    box-sizing: border-box;
}

.columna-contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.formulario-contacto {
    position: relative;
    z-index: 999;
    background-color: transparent;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

form {
    display: grid;
    gap: 10px;
    max-width: 600px;
    margin: auto;
}

.input-group {
    display: grid;
    padding: 10px;
    gap: 10px;
    border: 1px solid #16161d;
    border-radius: 2px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.textarea-group {
    background-color: #16161d;
    color: #eaeaea;
    padding: 10px;
    border-radius: 2px;
}

input, textarea {
    width: 100%;
    padding: 5px;
    border: none;
    outline: none;
    background-color: transparent;
    color: inherit;
    font-family: inherit;
}

.error {
    color: #d83312;
    font-size: 12px;
}

button {
    padding: 10px;
    background-color: #16161d;
    color: #eaeaea;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

button:hover {
    background-color: #d83312;
}


/* RESPONSIVE FORMULARIO */

@media (max-width: 768px) {
    .formulario-contacto {
        width: 90%;
        padding: 10px;
        margin: 0 auto;
    }

    .contenedor-contacto {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding: 30px 0;
    }

    .columna-contacto {
        min-height: auto;
        padding: 15px 0;
    }

    .input-row {
        grid-template-columns: 1fr;
    }
}


/* GENERAL SCROLL FIX */

html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}


/* CONTROLLER */

.back_button {
    position: absolute;
    top: 7.5vmin;
    left: 5vmin;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.controller-masonry-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    text-align: center;
}

.controller-image-link img {
    width: 40%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.controller-button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 70%;
    margin-top: 25px;
    gap: 10px;
}

.controller-button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #16161d;
    font-size: 1rem;
    border: 1px solid #16161d;
    padding: 5px 10px 2px;
}

.controller-button:hover {
    background: #16161d;
    color: #eaeaea;
}
