

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Pirata+One&display=swap');


:root {

    --rusty-red: #871224;
    --snow: #fffcffff;
    --paynes-gray: #385f71ff;
    --licorice: #14080eff;
    --chamoisee: #8f754fff;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    
    text-decoration: none;
    list-style: none;
}

.main-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 70px;
    font-family: "Open Sans";
    height: 80vh;
    overflow: hidden;

}

.background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Comienza como invisible */
    transition: opacity 2s ease-in-out; /* Transición más suave */
    z-index: -1; /* Asegura que el fondo no cubra el contenido */

    
    border-top: 2px solid black;
    border-bottom: 2px solid black;

    background-image: url(../assets/angel-fish-background.jpeg);

}

.background-1 {
    opacity: 1; /* Fondo inicial visible */
}

h1, .button {
    z-index: 1;
}



.main-section h1{
    font-family: "Pirata One";
    font-size: 34px;
    width: 70%;

    text-align: center;



    border-radius: 10%;
}

.main-section .button{
    width: 40%;
    max-width: 200px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;


    background-color: var(--rusty-red);
    color: var(--snow);

    border-radius: 5px;
}

.second-section{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    min-height: 100vh;

    background-image: url(../assets/map-background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    font-family: "Open Sans";

}

.discover-scuba{
    display: flex;
    flex-direction: column;

    width: 100%;

    margin-top: 30px;

    align-items: center;
    justify-content: center;
}

.second-section-title{
    font-size: 34px;
    font-family: "Pirata One";

    width: 100%;

    text-align: center;

    margin-top: 50px;
}

.second-section-p{
    width: 80%;
    text-align: center;

    max-width: 700px;

    margin-top: 30px;
}

.local-diving__card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;

    margin: 60px 80px;

    width: 80%;
    max-width: 400px;
    height: 550px;

    color: var(--licorice);

    background-color: #c0b5b5;
    border: 3px solid var(--licorice);
}

.local-diving__card img{
    width: 80%;
    max-height: 50%;
    border-radius: 5px;
}

.local-diving__card h2,p,ul{
    width: 80%;
    font-weight: 600;
}

.local-diving__card ul{
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: space-evenly;

    height: 200px;
}

.local-diving__card .button{
    width: 40%;
    padding: 10px;


    color: var(--snow);
    background-color: var(--rusty-red);

    text-align: center;

    border-radius: 5px;

}


@media screen and (min-width: 768px) { 
    
    .second-section {
        flex-direction: row; /* Arrange cards side by side */
        flex-wrap: wrap; /* Allow wrapping if too many cards */
        align-items: center;
    }

    .local-diving__card {
        width: 50%; /* Adjust width to fit two cards in one row */
        max-width: 350px; /* Prevent overly large cards */
    }

    .second-section-p{
        width: 80%;
        text-align: center;
    }
}


