* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

header {
    grid-area: header-area;
}

nav {
    grid-area: menu-area;
    background-color: rgb(47, 47, 56);
}

aside {
    grid-area: aside-area;
    background-color: rgb(255, 255, 255);
}

main {
    grid-area: main-area;
    background-color: aliceblue;
}

footer {
    grid-area: footer-area;
    background-color: rgb(47, 47, 56);
}

/*image opacity transition */
@keyframes slide {
    0% {
        background-image: url('/lab6/images/montijo2_grande.jpg');
        opacity: 1;
    }

    15% {
        opacity: 0.5;
    }

    30% {
        opacity: 1;
    }

    33% {
        background-image: url('/lab6/images/montijo1_grande.jpg');
    }

    45% {
        opacity: 0.5;
    }

    60% {
        opacity: 1;
    }

    63% {
        background-image: url('/lab6/images/montijo3_grande.jpg');
    }

    75% {
        opacity: 0.5;
    }

    90% {
        opacity: 1;
    }

    100% {
        background-image: url('/lab6/images/montijo2_grande.jpg');
        opacity: 1;
    }
}

/* mobile */
@media only screen and (max-width: 767px) {
    body {
        background-color: rgb(218, 128, 128);
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            'header-area'
            'menu-area'
            'aside-area'
            'main-area'
            'footer-area';
    }

    header h1 {
        grid-area: header-area;
        background-color: rgba(160, 35, 35, 0.825);
        text-align: center;
        padding: 15px;
        text-transform: uppercase;
        font-size: 30px;
        color: rgb(255, 255, 255);
        font-family: monospace;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        grid-area: menu-area;
        background-color: #302f2f;
        font-family: Arial, Helvetica, sans-serif;
    }

    .menu {
        position: relative;
    }

    .menubtn {
        font-size: 23px;
        border: none;
        color: white;
        padding: 6px;
        padding-left: 10px;
        background-color: inherit;
        font-family: inherit;
        margin: 0;
        cursor: pointer;
    }

    .menu-content {
        display: none;
        position: absolute;
        background-color: #302f2ff3;
        border-radius: 0px 0px 10px 0px;
        z-index: 1;
    }

    .menu-content a {
        color: rgb(201, 19, 19);
        padding: 12px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

    .menu-content a:hover {
        background-color: #3b3b3bc7;
        color: rgb(247, 68, 68);
        padding: 12px;
        border-radius: 10px;
    }

    .menubtn:hover+.menu-content {
        display: block;
    }

    .menu-content:hover {
        display: block;
    }

    aside {
        grid-area: aside-area;
        padding: 10px;
        background-color: inherit;
        text-align: center;
        height: 230px;
        zoom: 90%;
    }

    aside img {
        display: none;
    }

    .slides {
        width: 90%;
        height: 100%;
        margin: 0 auto;
        background-position: center;
        animation: slide 15s ease-in-out infinite;
        border-radius: 10px;
    }

    main {
        grid-area: main-area;
        background-color: aliceblue;
        color: black;
        border-radius: 14px;
        padding: 20px;
        margin: 10px;
    }

    main a {
        color: rgb(233, 18, 18);
        text-decoration: none;
        font-size: 18px;
        margin: 5px;
    }

    main a:hover {
        background-color: #e9e9e97e;
        border-radius: 5px;
        color: rgb(252, 92, 92);
        padding: 7px;
    }

    main iframe {
        width: auto;
        height: auto;
        padding: 10px;
        border-radius: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    /* remover as fotos no mobile */
    main p a:first-child {
        display: none;
    }

    main p {
        margin: 10px;
    }


    main h2 {
        color: rgb(201, 19, 19);
    }

    main h3 {
        color: rgba(233, 18, 18, 0.703);
    }

    main div p {
        padding-top: 10px;
        font-size: 15px;
    }

    main div p::first-letter {
        color: rgba(233, 18, 18, 0.703);
    }

    footer {
        grid-area: footer-area;
        width: 100%;
        height: 100%;
        grid-area: footer-area;
        background-color: #302f2f;
        padding: 14px;
        color: rgb(233, 18, 18);
        text-align: center;
    }

    #fotografias {
        display: none;
    }

    #fotografias a {
        display: none;
    }

    #fotografias,
    #video,
    #poema {
        margin-top: 40px;
        align-items: center;
    }

    #fotografias h3,
    #video h3,
    #poema h3 {
        color: rgba(233, 18, 18, 0.703);
        font-size: 24px;
        border-bottom: 2px solid rgba(38, 36, 36, 0.508);
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    figure {
        display: inline-block;
        width: 50%;
        margin-right: 10px;
        text-align: center;
        background-color: #e9e9e97e;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    figure img {
        width: 120px;
        height: 80px;
        border-radius: 8px;
    }

    figure figcaption {
        font-size: 14px;
        color: #555;
        margin-top: 8px;
    }

    #video iframe {
        display: block;
        margin: 0 auto;
        width: 80%;
        height: 60%;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #poema h4 {
        color: rgb(233, 18, 18);
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }

    #poema p {
        font-style: italic;
        margin-bottom: 20px;
        line-height: 1.8;
        text-align: center;
    }

    main table {
        margin: 15px;
    }

    fieldset {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none;
        padding: 6px;
    }

    label {
        font-size: 14px;
        margin-bottom: 8px;
        padding: 10px;
        color: #333;
    }

    input,
    select,
    textarea {
        width: 100%;
        height: 100%;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 10px;
        box-sizing: border-box;
    }

    fieldset form {
        display: none;
    }

    input[type="reset"],
    input[type="submit"] {
        margin-top: 15px;
    }
}


/*tablet*/
@media only screen and (min-width: 768px) and (max-width: 1023px) {
    body {
        background-color: rgb(218, 128, 128);
        display: grid;
        grid-template-rows: 60px 250px 1fr 50px;
        grid-template-columns: 15% 1fr;
        grid-template-areas:
            'header-area header-area'
            'menu-area aside-area'
            'menu-area main-area'
            'footer-area footer-area';
    }

    header h1{
        grid-area: header-area;
        background-color: rgba(160, 35, 35, 0.825);
        text-align: center;
        padding: 15px;
        text-transform: uppercase;
        font-size: 30px;
        color: rgb(255, 255, 255);
        font-family: monospace;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav {
        grid-area: menu-area;
        background-color: #302f2f;
        font-family: Arial, Helvetica, sans-serif;
        width: 100%;
        height: auto;
    }

    .menu {
        position: relative;
    }

    .menubtn {
        display: none;
    }

    .menu-content {
        background-color: #302f2ff3;
    }

    .menu-content a {
        color: rgb(201, 19, 19);
        padding: 12px;
        text-decoration: none;
        display: block;
    }

    .menu-content a:hover {
        background-color: #3b3b3bc7;
        color: rgb(247, 68, 68);
        padding: 15px;
        border-radius: 10px;
    }

    aside {
        grid-area: aside-area;
        padding: 10px;
        background-color: inherit;
        text-align: center;
        height: 250px;
    }

    aside img {
        display: none;
    }

    .slides {
        width: 60%;
        height: 100%;
        margin: 0 100px;
        background-position: center;
        animation: slide 15s ease-in-out infinite;
        border-radius: 10px;
    }

    main {
        grid-area: main-area;
        background-color: aliceblue;
        color: black;
        border-radius: 14px;
        padding: 15px;
        margin: 50px 50px 50px 55px;
    }


    main a {
        color: rgb(233, 18, 18);
        text-decoration: none;
        font-size: 18px;
        margin: 5px;
    }

    main a:hover {
        background-color: #e9e9e97e;
        border-radius: 5px;
        color: rgb(252, 92, 92);
        padding: 7px;
    }

    main iframe {
        width: auto;
        height: auto;
        padding: 10px;
        border-radius: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    main p a:first-child {
        display: none;
    }

    main div p::first-letter {
        color: rgba(233, 18, 18, 0.703);
    }

    main p {
        margin: 10px;
    }

    main h2 {
        color: rgb(201, 19, 19);
    }

    main h3 {
        color: rgba(233, 18, 18, 0.703);
    }

    footer {
        grid-area: footer-area;
        background-color: #302f2f;
        padding: 19px;
        width: 100%;
        height: 100%;
        color: rgb(233, 18, 18);
        text-align: center;
    }

    #fotografias,
    #video,
    #poema {
        margin-top: 40px;
        align-items: center;
    }

    #fotografias h3,
    #video h3,
    #poema h3 {
        color: rgba(233, 18, 18, 0.703);
        font-size: 24px;
        border-bottom: 2px solid rgba(38, 36, 36, 0.508);
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    figure {
        display: inline-block;
        width: 70%;
        margin-right: 10px;
        text-align: center;
        background-color: #e9e9e97e;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    figure img {
        width: 120px;
        height: 80px;
        border-radius: 8px;
    }

    figure figcaption {
        font-size: 14px;
        color: #555;
        margin-top: 8px;
    }

    #video iframe {
        display: block;
        margin: 0 auto;
        width: 40%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #fotografias {
        display: none;
    }

    #fotografias a {
        display: none;
    }

    #poema h4 {
        color: rgb(233, 18, 18);
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }

    #poema p {
        font-style: italic;
        margin-bottom: 20px;
        line-height: 1.8;
        text-align: center;
    }

    main table {
        margin: 15px;
    }

    fieldset {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none;
        padding: 6px;
    }

    label {
        font-size: 14px;
        margin-bottom: 8px;
        padding: 10px;
        color: #333;
    }

    input,
    select,
    textarea {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 10px;
        box-sizing: border-box;
    }

    fieldset form {
        display: none;
    }

    input[type="reset"],
    input[type="submit"] {
        margin-top: 15px;
    }
}

/*portátil*/
@media only screen and (min-width: 1024px) and (max-width: 2559px) {
    body {
        background-color: rgb(218, 128, 128);
        color: rgb(218, 210, 210);
        display: grid;
        width: 100vw;
        height: 100vh;
        grid-template-rows: 70px 55px 300px 1fr 50px;
        grid-template-columns: 1fr;
        grid-template-areas:
            'header-area'
            'menu-area'
            'aside-area'
            'main-area '
            'footer-area ';
    }


    header {
        grid-area: header-area;
        background-color: rgba(160, 35, 35, 0.825);
        text-align: center;
        text-transform: uppercase;
        font-size: 20px;
        padding: 10px;
        width: 100%;
        color: rgb(255, 255, 255);
        font-family: monospace;
    }

    nav {
        grid-area: menu-area;
        background-color: #302f2f;
        font-family: Arial, Helvetica, sans-serif;
        width: auto;
        height: auto;
    }

    .menu {
        position: relative;
    }

    .menubtn {
        font-size: 30px;
        border: none;
        color: white;
        padding: 6px;
        padding-left: 10px;
        background-color: inherit;
        font-family: inherit;
        margin: 0;
        cursor: pointer;
    }

    .menu-content {
        display: none;
        background-color: #302f2ff3;
        border-radius: 0px 0px 10px 0px;
        z-index: 1;
    }

    .menu-content a {
        color: rgb(201, 19, 19);
        padding: 12px;
        text-decoration: none;
        display: block;
        text-align: center;
    }

    .menu-content a:hover {
        background-color: #3b3b3bc7;
        color: rgb(247, 68, 68);
        padding: 12px;
        border-radius: 10px;
    }

    .menubtn:hover+.menu-content {
        display: block;
    }

    .menu-content:hover {
        display: block;
    }

    aside {
        grid-area: aside-area;
        padding: 10px;
        background-color: inherit;
        text-align: center;
        height: 210px;
    }

    aside img {
        border-radius: 5%;
        margin-top: 20px;
        margin-left: 10px;
        width: auto;
        max-height: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    main {
        grid-area: main-area;
        background-color: aliceblue;
        color: black;
        height: auto;
        width: 50%;
        border-radius: 14px;
        padding: 30px;
        margin: auto;
        margin-bottom: 40px;
    }

    main a {
        color: rgb(233, 18, 18);
        text-decoration: none;
        font-size: 18px;
        margin: 5px;
    }

    main a:hover {
        background-color: #e9e9e97e;
        border-radius: 5px;
        color: rgb(252, 92, 92);
        padding: 7px;
    }

    
    main iframe {
        width: auto;
        height: auto;
        padding: 10px;
        border-radius: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    main p {
        margin: 10px;
        font-size: 20px;
    }



    main h2 {
        color: rgb(201, 19, 19);
        font-size: 30px;
    }

    main h3 {
        color: rgba(233, 18, 18, 0.703);
        font-size: 25px;
    }

    main div p {
        padding-top: 10px;
        font-size: 20px;
    }

    main div p::first-letter {
        color: rgba(233, 18, 18, 0.703);
    }

    .format {
       max-width: auto;
    }

    footer {
        grid-area: footer-area;
        width: auto;
        height: auto;
        grid-area: footer-area;
        background-color: #302f2f;
        padding: 14px;
        color: rgb(233, 18, 18);
        text-align: center;
    }

    #fotografias,
    #video,
    #poema {
        margin-top: 40px;
        align-items: center;
    }

    #fotografias h3,
    #video h3,
    #poema h3 {
        color: rgba(233, 18, 18, 0.703);
        font-size: 24px;
        border-bottom: 2px solid rgba(38, 36, 36, 0.508);
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    figure {
        display: inline-block;
        width:30%;
        margin: 10px;
        text-align: center;
        background-color: #e9e9e97e;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    figure img {
        width: 120px;
        height: 80px;
        border-radius: 8px;
    }

    figure img:hover {
        zoom: 150%;
    }

    figure figcaption {
        font-size: 14px;
        color: #555;
        margin-top: 8px;
    }

    #video iframe {
        display: block;
        margin: 0 auto;
        width: 70%;
        height: 250px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #poema h4 {
        color: rgb(233, 18, 18);
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }

    #poema p {
        font-style: italic;
        margin-bottom: 20px;
        line-height: 1.8;
        text-align: center;
    }

    main table {
        margin: 15px;
    }

    fieldset {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none;
        padding: 6px;
    }

    label {
        font-size: 14px;
        margin-bottom: 8px;
        padding: 10px;
        color: #333;
        font-family: 'Arial', sans-serif;
    }

    input,
    select,
    textarea {
        width: 60%;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 10px;
        box-sizing: border-box;
        font-family: 'Arial', sans-serif;
    }

    fieldset form {
        display: none;
    }

    input[type="reset"],
    input[type="submit"] {
        margin-top: 15px;
    }
}

/*4k*/

@media only screen and (min-width: 2560px) and (max-width: 4096px) {
    body {
        background-color: rgb(218, 128, 128);
        color: rgb(218, 210, 210);
        display: grid;
        width: 100vw;
        height: 100vh;
        grid-template-rows: 100px 80px 400px 1fr 70px;
        grid-template-columns: 1fr;
        grid-template-areas:
            'header-area'
            'menu-area'
            'aside-area'
            'main-area '
            'footer-area ';
    }

    header {
        grid-area: header-area;
        background-color: rgba(160, 35, 35, 0.825);
        text-align: center;
        text-transform: uppercase;
        font-size: 28px;
        padding: 15px;
        width: 100%;
        color: rgb(255, 255, 255);
        font-family: monospace;
    }

    nav {
        grid-area: menu-area;
        background-color: #302f2f;
        font-family: Arial, Helvetica, sans-serif;
        width: 100%;
    }

    .menu {
        position: relative;
    }

    .menubtn {
        display: none;
    }

    .menu-content {
        display:flex;
        flex-direction: row;
        justify-content: center;
        padding: 10px;
        background-color: #302f2ff3;
        border-radius: 0px 0px 10px 0px;
    }

    .menu-content a {
        color: rgb(201, 19, 19);
        padding: 16px;
        text-decoration: none;
        display: block;
        text-align: center;
        font-size: 25px;
    }

    .menu-content a:hover {
        background-color: #3b3b3bc7;
        color: rgb(247, 68, 68);
        padding: 16px;
        border-radius: 10px;
    }


    aside {
        grid-area: aside-area;
        padding: 20px;
        background-color: inherit;
        text-align: center;
        height: 300px;
    }

    aside img {
        border-radius: 5%;
        margin-top: 30px;
        margin-left: 20px;
        width: auto;
        height: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    main {
        grid-area: main-area;
        background-color: aliceblue;
        color: black;
        width: 50%;
        height: 95%;
        border-radius: 14px;
        padding: 40px;
        padding-left: 40px;
        margin: auto;
        margin-bottom: 60px;
    }

    main p {
        font-size: 30px;
        padding: 20px;
    }

    main a {
        color: rgb(233, 18, 18);
        text-decoration: none;
        font-size: 30px;
        margin: 10px;
    }

    main a:hover {
        background-color: #e9e9e97e;
        border-radius: 5px;
        color: rgb(252, 92, 92);
        padding: 10px;
    }

    main iframe {
        width: 60%;
        height: 50%;
        padding: 10px;
        border-radius: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }
    main div p::first-letter {
        color: rgba(233, 18, 18, 0.703);
    }

    main h2 {
        color: rgb(201, 19, 19);
        font-size: 40px;
    }

    main h3 {
        color: rgba(233, 18, 18, 0.703);
        font-size: 38px;
        padding: 20px;
    }

    .format {
        width: auto;
    }

    footer {
        grid-area: footer-area;
        width: 100%;
        height: 100%;
        background-color: #302f2f;
        padding: 20px;
        color: rgb(233, 18, 18);
        text-align: center;
        zoom: 130%;
    }

    #fotografias,
    #video,
    #poema {
        margin-top: 20px;
        align-items: center;
    }

    #fotografias h3,
    #video h3,
    #poema h3 {
        color: rgba(233, 18, 18, 0.703);
        font-size: 30px;
        border-bottom: 2px solid rgba(38, 36, 36, 0.508);
        padding-bottom: 12px;
        margin-bottom: 30px;
    }

    figure {
        display: inline-block;
        width: 30%;
        margin: 20px;
        margin-left: 17px;
        text-align: center;
        background-color: #e9e9e97e;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    figure img {
        width: 180px;
        height: 120px;
        border-radius: 8px;
    }

    figure img:hover {
        zoom: 150%;
    }

    figure figcaption {
        font-size: 16px;
        color: #555;
        margin-top: 10px;
    }

    #video iframe {
        display: block;
        margin: 0 auto;
        width: 60%;
        height: 500px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #poema h4 {
        color: rgb(233, 18, 18);
        font-size: 26px;
        margin-bottom: 20px;
        text-align: center;
    }

    #poema p {
        font-style: italic;
        line-height: 2;
        padding-bottom: 50px;
        text-align: center;
    }

    main table {
        display: none;
    }

    fieldset {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none;
        padding: 6px;
    }

    label {
        font-size: 20px;
        margin-bottom: 10px;
        padding: 10px;
        color: #333;
    }

    input,
    select,
    textarea {
        width: 100%;
        padding: 10px;
        font-size: 20px;
        border: 1px solid #ccc;
        margin-bottom: 10px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    fieldset form {
        display: none;
    }

    input[type="reset"],
    input[type="submit"] {
        margin-top: 15px;
    }
}