* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Catamaran';
    color: white;
}

body {
    background: url(./assets/img/background.png);
    background-color: #170029;
}

#container {
    display: grid;
    grid-template-columns: auto-fill;
    max-width: 100%;
}

/* Header Styles */
.main-header {
    width: 100%;
    padding: 20px 40px;
    position: relative;
    z-index: 20;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1800px;
    margin: 0 auto;
    gap: 20px;
    position: relative;
}

.header-left {
    flex: 0 0 auto;
    padding-top: 10px;
    width: 200px; /* Ancho fijo para el botón Press Kit */
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0; /* Permite que el contenedor se encoja si es necesario */
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 200px; /* Ancho fijo para el logo y el botón de idioma */
}

.logo-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.steam-top-widgets {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.steam-top-iframe {
    width: 100%;
    max-width: 646px;
    min-width: 280px;
    height: 190px;
    border: none;
    background: transparent;
}

.press-btn {
    display: inline-block;
    font-size: 20px;
    padding: 8px 32px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    transition: color 0.5s;
}

.press-btn:hover {
    color: rgb(117, 221, 243);
}

.logo-header {
    width: 160px;
}

.language-switch {
    position: relative;
    top: 0;
    right: 0;
}

.lang-btn {
    padding: 4px 8px;
    font-size: 12px;
    background-color: rgba(240, 240, 240, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    transition: background-color 0.3s;
}

.lang-btn:hover {
    background-color: rgba(240, 240, 240, 0.4);
}

/* Efecto parallax */

.parallax {
    position: relative;
    max-height: 700px;
    max-width: 100%;
    width: 100%;
    height: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.parallax img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: contain;
}

/* Fin parallax*/

/* Hero */
.welcome {
    position: relative;
    display: block;
    text-align: center;
    font-size: 76px;
    font-weight: 900;
    -webkit-text-stroke: 0px black;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adding shadow to .welcome */
}

.welcome p {
    color: rgb(117, 221, 243);
    position: relative;
    top: -120px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Adding shadow to .welcome p */
}

.welcome span {
    color: rgb(255, 116, 244);
    position: relative;
    top: -170px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Adding shadow to .welcome span */
}

.welcome-text {
    position: relative;
    margin: auto;
    top: -100px;
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    font-family: 'Roboto';
    max-width: 1200px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Adding shadow to .welcome-text */
}

.welcome-text p span {
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Adding shadow to .welcome-text p span */
}


.span-pink {
    color: rgb(255, 116, 244);
}

/* Fin Hero*/

/* Demo */

.demo {
    display: block;
    text-align: center;
    margin-top: 200px;
}

.demo img {
    position: relative;
    max-width: 100%;
}

.demo span:first-child {
    color: rgb(117, 221, 243);
    font-size: 76px;
    font-weight: 900;
}

.demo-text {
    display: block;
    margin: auto;
    text-align: center;
    font-family: 'Work Sans';
    font-size: 28px;
    font-weight: 500;
    max-width: 1200px;
}

/* Fin demo*/

/* Steam */

.steam {
    display: block;
    text-align: center;
    margin-top: 400px;
}

.steam img {
    position: relative;
    max-width: 100%;
}

.steam span:first-child {
    color: rgb(117, 221, 243);
    font-size: 76px;
    font-weight: 900;
}

.steam-text a{
    display: block;
    margin: auto;
    margin-top: 50px;
    text-align: center;
    font-family: 'Work Sans';
    font-size: 60px;
    font-weight: 900;
    color: rgb(255, 116, 244);
    max-width: 1200px;
}

/* Fin steam */

/* Team */

.team {
    display: block;
    margin-top: 12rem;
    text-align: center;
}

#team-tittle {
    color: rgb(117, 221, 243);
    font-size: 99px;
    font-weight: 900;
}

.cards {
    display: flex;
    justify-content: center;
}

.cards div {
    display: grid;
    margin: 2rem;
    align-items: center;
    justify-content: center;
}

.cards div img {
    margin: auto;
}

.card-name {
    color: rgb(255, 116, 244);
    font-size: 30px;
    font-weight: 900;
}

.card-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

/* Fin team*/

/* Contacto*/

.contact {
    display: grid;
    justify-content: center;
    max-height: 226px;
    margin-top: 140px;
}

.contact span {
    margin: auto;
    color: rgb(255, 116, 244);
    font-size: 48px;
    font-weight: 800;
}

.icons {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
}

.icons img {
    margin: 0 20px;
}

#img1,
#img2,
#img3,
#img4 {
    width: 100px;
    transition: .5s all ease;
}

#img1:hover {
    width: 130px;
}

#img2:hover {
    width: 130px;
}

#img3:hover {
    width: 130px;
}

#img4:hover {
    width: 130px;
}

.suscribe {
    display: flex;
    position: relative;
    top:170px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%; /* Ajusta según sea necesario */
    font-size: 47px;
    padding: 0 5px;
}

#span-suscribe {
    color: rgb(117, 221, 243);
    display: block;
    margin-top: 50px;
    font-weight: 600;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#input-email {
    display: flex;
    font-size: 20px;
    width: 600px;
    height: 50px;
    padding-left: 10px;
    background-color: #1e022f;
    border-color: rgb(117, 221, 243);
    border-width: 3px;
    border-radius: 2px;
}

#input-email:focus {
    background-color: rgba(154, 67, 67, 0);
    color: white;
    font-size: 20px;
    outline: none;
}

.btn-email {
    position: relative;
    color: rgb(117, 221, 243);
    background-color: transparent;
    font-size: 19px;
    font-weight: 700;
    padding: 20px 40px;
    border: none;
    margin-top: 30px;
    transition: all .3s ease;
    cursor: pointer;
}

.btn-email:hover {
    font-size: 25px;
    color: white;
    border-radius: 900px;
    border: none;
    margin-top: 30px;
}

/* Fin contacto*/

/* Footer*/

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 300px;
}

footer img {
    width: 170px;
}

footer span {
    margin-top: 150px;
    margin-bottom: 40px;
    font-size: 24px;
}

/* Fin Footer*/

/* Media queries*/

@media screen and (max-width: 1400px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .header-left {
        order: 1;
        width: auto;
    }

    .header-center {
        order: 2;
        width: 100%;
        padding: 0 20px;
    }

    .header-right {
        order: 3;
        align-items: center;
        width: auto;
    }

    .steam-top-widgets {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 1400px;
        width: 100%;
        gap: 15px;
        justify-content: center;
    }

    .steam-top-iframe {
        width: calc(50% - 15px);
        min-width: 300px;
        max-width: 646px;
        height: 190px;
        transform: scale(1);
        transform-origin: center;
    }

    .logo-container {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .steam-top-widgets {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .steam-top-iframe {
        width: 100%;
        max-width: 646px;
        min-width: 280px;
        height: 190px;
    }
}

@media screen and (max-width: 500px) {
    .main-header {
        padding: 10px 20px;
    }

    .header-center {
        padding: 0 10px;
    }

    .logo-header {
        width: 120px;
    }

    .press-btn {
        font-size: 16px;
        padding: 6px 24px;
    }

    .steam-top-iframe {
        width: 100%;
        max-width: 100%;
        min-width: 280px;
        height: 190px;
    }

    .parallax {
        max-height: 500px;
        top: 30px;
    }

    .welcome {
        line-height: 1;
        top: 50px;
        font-size: 40px;
    }

    .welcome span {
        top: -120px;
    }

    .welcome-text {
        margin: 0px 10px;
        top: 0px;
    }

    .demo {
        margin-top: 230px;
        margin-left: 10px;
        margin-right: 10px;
        line-height: 1;
    }

    .demo span:first-child {
        font-size: 40px;
    }

    .demo-img {
        position: relative;
        top: -20px;
        max-height: 400px;
    }

    .demo-img img:nth-child(2) {
        top: -50px;
    }

    .demo-text {
        position: relative;
        top: 50px;
        font-size: 27px;
        font-weight: 400;
    }

    .cards {
        display: block;
    }

    .steam {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centra el contenido horizontalmente */
        margin-top: 400px;
        padding: 0px 10px 0px 10px;
    }

    .steam span:first-child{
        font-size: 40px;
    }

    .steam-widget {
        position: relative;
        width: 100%;
        padding-bottom: 29.4%; /* Relación de aspecto */
        height: 0;
        overflow: hidden; /* Ocultar contenido desbordado */
        max-width: 646px; /* Ancho máximo */
        margin: auto;
    }

    .steam-iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 200%; /* Ajusta según lo necesario */
        height: 250%; /* Ajusta según lo necesario */
        transform: scale(0.5); /* Escala el iframe */
        transform-origin: top left; /* Ajusta el origen del escalado */
    }

    .steam-text a{
        font-size: 40px;
        padding: 0px 12px 0px 12px;
    }
    

    .team {
        margin-top: 250px;
        font-size: 40px;
        line-height: 1;
    }

    #team-tittle {
        margin-top: 20px;
        font-size: 80px;
    }

    .contact {
        margin-top: 200px;
    }

    .icons {
        justify-self: center;
    }

    .suscribe {
        display: flex;
        position: relative;
        top:150px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%; /* Ajusta según sea necesario */
        font-size: 40px;
        padding: 0 5px;
    }
    
    #span-suscribe {
        margin-bottom: 10px; /* Ajusta según sea necesario */
    }
    
    form {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }
    
    #input-email {
        margin-bottom: 10px; /* Ajusta según sea necesario */
        width: 100%; /* Para que ocupe todo el ancho disponible */
        box-sizing: border-box; /* Para incluir el padding y el borde en el ancho total */
    }
    

  
    footer {
        margin-top: 300px;
    }
}

/* Steam top widgets (arriba de todo) */
.steam-top-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 60px; /* Ajusta para alinear con header */
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}
.steam-top-widgets {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    justify-content: center;
}
.steam-top-iframe {
    width: 100%;
    max-width: 646px;
    min-width: 280px;
    height: 190px;
    border: none;
    background: transparent;
}

@media screen and (max-width: 1100px) {
    .steam-top-widgets {
        flex-direction: column;
        max-width: 700px;
        gap: 20px;
    }
    .steam-top-iframe {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        height: 120px;
    }
    .steam-top-container {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

.top-bar {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px 40px 0 40px;
    box-sizing: border-box;
    position: relative;
    z-index: 20;
}
.presskit-left {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
}
.steam-top-widgets {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

@media screen and (max-width: 1100px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 5px 0 5px;
    }
    .steam-top-widgets {
        flex-direction: column;
        max-width: 700px;
        width: 100%;
        gap: 20px;
        align-items: center;
        justify-content: center;
    }
}