footer {
    padding: 20px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: large;
    background: linear-gradient(to bottom, #ffffff 0px, #ffffff 400px, lightcyan);
}

h1 {
    text-align: center;
    margin-top: 20px;
}

.modalbar-name {
    position: absolute;
    visibility: hidden;
}

.title {
    align-content: center;
}

.title h1 {
    font-size: 30px;
}

.header-content {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 6%;
}

.social-icons {
    position: absolute;
    top: -8px;
    right: 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.youtube-logo {
    height: 19px !important;
}

.social-icon {
    display: inline-block;
    margin: 0 5px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.social-icon svg {
    vertical-align: middle;
}

.icon-svg {
    height: 24px;
    transition: transform 0.3s;
    -webkit-filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, .1));
    filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, .1));
}

.icon-svg:hover {
    transform: scale(1.1);
}

.youtube-logo-bottom {
    height: 19px;
}

.logo-modal {
    transition: transform 0.3s;
    -webkit-filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, .1));
    filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, .1));
}

.logo-modal:hover {
    transform: scale(1.1);
}


.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 4%;
    max-height: 70px;
}

.styled-btn.active {
    color: #fff;
    transform: scale(1.05) rotate(-3deg);
}


#inspirate-btn,
#diviertete-btn,
#libros-btn {
    font-size: unset;
}

.modal-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
    font-size: 17px;
    margin-bottom: 45px;
}

.modal-container h2,
.modal-container h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 30px;
}

.modal-container p,
.modal-container ul {
    margin-bottom: 20px;
    line-height: 26px;
}

.modal-container ul {
    list-style-type: disc;
    padding-left: 20px;
}

.button-container-recurso {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.styled-btn {
    padding: 12px 24px;
    font-weight: bold;
    color: darkblue;
    background: linear-gradient(135deg, #ffffff, #30afeb);
    border: none;
    border-radius: 25px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.8s ease, transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: x-large;
    text-align: center;
}

.styled-btn:not(.active):hover {
    background: linear-gradient(135deg, #30afeb, #ffffff);
    transform: scale(1.05) rotate(-3deg);
}

.btn-download {
    background: linear-gradient(135deg, #ffffff, #007bff);
}

.btn-download:hover {
    background: linear-gradient(135deg, #007bff, #ffffff);
}

.btn-view {
    background: linear-gradient(135deg, #ffffff, #28a745);
}

.btn-view:hover,
.btn-view:not(.active):hover {
    background: linear-gradient(135deg, #28a745, #ffffff);
}

.btn-view.activeView {
    color: #fff;
    transform: scale(1.05) rotate(-3deg);
    background: linear-gradient(135deg, #28a745, #ffffff);
}


#container-recurso {
    visibility: hidden;
    position: absolute;
    display: flex;
    justify-content: center;
}

#recurso {
    padding-left: 4%;
    padding-right: 4%;
}

.rounded-img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    display: block;
    margin: 20px auto;
}


@media (max-width: 1024px) {

    .grid,
    .grid-diviertete {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-container {
        padding: 0px 10% 0px 10%;
    }

}

@media (max-width: 767px) {

    .video-container iframe {
        height: 450px;
    }

    .modal-container {
        padding-left: 6%;
        padding-right: 6%;

    }

    .modal-container p,
    .modal-container ul {
        line-height: 32px;
        text-align: center;
    }

    .text-container {
        font-size: large;
        line-height: 32px;
        padding-left: 2%;
        padding-right: 2%;
    }
}

@media (max-width: 640px) {
    .social-icons {
        right: 4%;
        margin: 26px 0;
        height: 13px;
        gap: 20px;
    }

    .styled-btn {
        font-size: 1rem;
    }

    .logo-modal {
        width: 40%;
        height: auto;
    }

    .icon-svg {
        height: 18px;
    }

    .bottom-icons {
        height: 24px;
    }

    .youtube-logo {
        height: 15px !important;
    }

    .youtube-logo-bottom {
        height: 22px;
    }

    .principal-logo {
        max-width: 240px;
        margin-top: 65px;
    }

    .button-container {
        max-width: none;
        margin-bottom: 2%;
    }

    #container-recurso {
        margin-bottom: 50px;
    }

    .contacto {
        font-size: smaller;
    }

    #inspirate-btn,
    #diviertete-btn,
    #libros-btn {
        font-size: smaller;
    }
}


@media (max-width: 520px) {
    .principal-logo {
        max-width: 290px;
    }

    .modal-container h2,
    .modal-container h3 {
        font-size: 23px;
    }

    .modal-container p,
    .modal-container ul {
        font-size: large;
    }

}


.contacto {
    display: flex;
    justify-content: center;
    transform: rotate(-3deg);
}

.post-it {
    width: 250px;
    height: 240px;
    position: relative;
    background: #ffa;
    overflow: hidden;
    margin: 30px;
    padding: 20px;
    border-radius: 0 0 0 30px/45px;
    box-shadow:
        inset 0 -15px 10px rgba(0, 0, 0, 0.1),
        0 2px 3px rgba(0, 0, 0, 0.1),
        0 3px 4px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.7em;
    border: none;
    outline: none;
}

.post-it:before {
    content: "";
    display: block;
    position: absolute;
    width: 20px;
    height: 25px;
    background: #ffa;
    box-shadow:
        3px -2px 10px rgba(0, 0, 0, 0.2),
        inset 15px -15px 15px rgba(0, 0, 0, 0.3);
    left: 0;
    bottom: 0;
    z-index: 2;
    transform: skewX(25deg);
}

.post-it:after {
    content: "";
    display: block;
    position: absolute;
    width: 75%;
    height: 20px;
    border-top: 3px solid darkblue;
    border-radius: 50%;
    bottom: 0px;
    left: 10%;
}

.post-it h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
}

.post-it p {
    font-size: 1.1em;
    margin-bottom: 15px;
}


.contact-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.contact-links {
    margin: 0;
}

footer {
    text-align: center;
    padding: 10px;
    background: #fff;
    color: #333;
    background: lightcyan;
}

footer p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: medium;
}

.monigote-contact {
    height: 50px;
    margin-top: 20px;
}