@media only screen and (max-device-width: 600px) {

    html {
        overflow-x: hidden;
    }
    body {
        overflow-x: hidden;
        background: url("cadeira.jpg");
        background-size: 1100px auto;
        background-repeat: no-repeat;
        background-position-x: center;
      /*  overflow-y: scroll;
        -webkit-overflow-scrolling: touch;*/
    }

    .layernavbar {
        display: none;
    }
    a {
        text-decoration: none;
        color: #1E1E23;
        opacity:1;
        font-family: 'work sans', sans serif;
        font-size: 1.5em;
        font-weight: 400;
        transition: 200ms;
    }
    a:hover {
        opacity:0.5;
    }
    ul {
        padding: 0;
        list-style-type: none;
    }



    .container {
        position: absolute;
        width: 100%;
        height: 300px;
        margin:0;
        Display: flex;
        justify-content: center;
        z-index: 15;


    }
    .phone {
         width: 100%;
         height: 360px;
         Display: flex;
         justify-content: center;
         align-items: center;
     }
    .content {
        position: absolute;
        top:0;
        width: 100%;
        height: 360px;
        overflow: hidden;

    }
    nav {

        background-color: #1E1E23;
        height: 65px;
        box-shadow: 0px 0px 20px #222222;

    }
    #imgnav {
        float: right;
        margin-top: 10px;
        margin-right: 10px;
    }


    #menuToggle {

        display: flex;
        flex-direction: column;
        position: relative;
        top: 25px;
        left: 25px;
        z-index: 10;
        -webkit-user-select: none;
        user-select: none;
    }

    #menuToggle input {

        display: flex;
        width: 40px;
        height: 32px;
        position: absolute;
        cursor: pointer;
        opacity: 0;
        z-index: 2;
    }

    #menuToggle span
    {
        display: flex;
        width: 29px;
        height: 2px;
        margin-bottom: 5px;
        position: relative;
        background: #ffffff;
        border-radius: 3px;
        z-index: 1;
        transform-origin: 5px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
        background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
        opacity 0.55s ease;
    }

    #menuToggle span:first-child
    {
        transform-origin: 0% 0%;
    }

    #menuToggle span:nth-last-child(2)
    {
        transform-origin: 0% 100%;
    }

    #menuToggle input:checked ~ span
    {
        opacity: 1;
        transform: rotate(45deg) translate(-3px, -1px);
        background: #36383F;
    }
    #menuToggle input:checked ~ span:nth-last-child(3)
    {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menuToggle input:checked ~ span:nth-last-child(2)
    {
        transform: rotate(-45deg) translate(0, -1px);
    }

    #menu {
        display: block;
        position: absolute;
        width: 180px;
        height: 200px;
        box-shadow: 0 0 10px #85888C;
        margin: -50px 0 0 -50px;
        padding: 50px;
        padding-top: 120px;
        padding-bottom: 350px;
        background-color: #F5F6FA;
        -webkit-font-smoothing: antialiased;
        transform-origin: 0% 0%;
        transform: translate(-100%, 0);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    #menu li
    {
        padding: 10px 0;
        transition-delay: 2s;
    }

    #menuToggle input:checked ~ ul
    {
        transform: none;
    }

    #inicio{
        width: 414px;
        overflow-x: hidden;

    }
    #divfundo {
        max-width: 100%;
        overflow-x: hidden;
        display: flex;
        justify-content: center;
    }
    #divfundo {
        display: none;
    }




    .mapouter {
        margin-left: 30px;
        grid-area: 1/2/span 20/span 20;
        position: relative;
        text-align: right;

        width: 80%;
    }
    .gmap_canvas {
        overflow: hidden;
        background: none !important;
        margin-right: 0;
        width: 80%;
    }
    iframe {
        width: 100%;
    }

    #inicio {
        display: grid;
        grid-template-rows: repeat(10,60px);
        grid-template-columns: repeat(4,1fr);
    }

    #inicio>p {
        font-size: 9pt;
        font-family: "Work Sans ExtraBold", sans-serif;
        grid-area: 5/2/span 1/span 2;
    }
    #inicio>img {
        width: 300px;
        grid-area: 7/1/span 1/span 5;
        margin-left: 50px;
    }

    #sobrenos {
        height: 500px;
    }

    #titulosobrenos {
        font-size: 20pt;
    }
    #textosobrenos {
        font-size: 7pt;
        width: 80%;
        margin-left: 46px;
    }

    #social {

        top: 65%;
        margin-left: 20px;
        width: 40px;
        height: 150px;

    }
    #trip {
        height: 40px;
        width: 40px;

    }

    #face {
        height: 40px;
        width: 40px;

    }
    #insta {
        height: 40px;
        width: 40px;

    }
    #trip>a>img {
        width: 30px;
        height:auto;
    }

    #face>a>img {
        width: 30px;
        height:auto;
    }

    #insta>a>img {
        width: 30px;
        height:auto;
    }

    #jogos>#titulojogos {
        grid-area: 2/3/span 3/span 3;
        text-align: center;
        margin: 0;
        font-size: 20pt;
        line-height: 30px;
    }
    #jogos {
        height: 4600px;
        display: grid;
        grid-template-rows: repeat(80,60px);
        grid-template-columns: repeat(7,1fr);
    }

    #img1 {
        margin: 0;
        width: 250px;
        grid-area: 4/2/span 4/span 4;
    }
    #titulo1 {
        grid-area: 8/2/span 3/span 5;
        margin: 0;
    }
    #texto1 {
        grid-area: 9/2/span 3/span 5;
        margin: 0;
    }
    #linha1 {
        grid-area: 17/2/span 1/span 5;
    }
    #img2 {
        margin: 0;
        width: 250px;
        grid-area: 19/2/span 4/span 4;
    }

    #titulo2 {
        grid-area: 23/2/span 3/span 5;
        margin: 0;
    }
    #texto2 {
        grid-area: 24/2/span 3/span 5;
        margin: 0;
    }
    #linha2 {
        grid-area: 31/2/span 1/span 5;
    }
    #img3 {

        margin: 0;
        width: 250px;
        grid-area: 33/2/span 4/span 4;
    }
    #titulo3 {

        grid-area: 37/2/span 3/span 5;
        margin: 0;
    }
    #texto3 {

        grid-area: 38/2/span 3/span 5;
        margin: 0;
    }
    #linha3 {
        grid-area: 43/2/span 1/span 5;
    }
    #img4 {
         margin: 0;
         width: 250px;
         grid-area: 45/2/span 4/span 4;
     }
    #titulo4 {

        grid-area: 49/2/span 3/span 5;
        margin: 0;
    }
    #texto4 {

        grid-area: 50/2/span 3/span 5;
        margin: 0;
    }
    #linha4 {
        grid-area: 60/2/span 1/span 5;
    }
    #img5 {

        margin: 0;
        width: 250px;
        grid-area: 62/2/span 4/span 4;
    }
    #titulo5 {

        grid-area: 66/2/span 3/span 5;
        margin: 0;
    }
    #texto5 {

        grid-area: 67/2/span 3/span 5;
        margin: 0;
    }

    #FAQ {
        height: 1400px;
    }

    #titulofaq {
        grid-area: 2/2/span 2/span 5;
        font-size: 20pt;
        text-align: left;
    }
    .container1{
        width: 80%;
        font-size: 10pt;
        margin: 0;
        grid-area: 4/2/span 20/span 20;
    }
    .title-name {
        font-size: 15pt;
    }

    #aveiro {
        grid-area: 2/3/span 3/span 3;
        margin: 0;
    }

    #viseu {
        grid-area: 4/3/span 3/span 3;
        margin: 0;
    }
    #butoes>a>img {
        width: 100%;
    }
    #tituloescolha {
        text-align: center;
        font-size: 17pt;
    }
    #ventos>a {
        font-size: 10pt;
    }

    #warning {
        font-size: 7pt;
    }
    #warning a {
        font-size: 8pt;
    }
    #warning button {
        margin-left:0;
        width: 150px;
    }
    #carimbo {
        width:300px;
        top:50%;
        left:10%;
    }
    #cima2 p{
        font-size: 14pt;
        grid-area: 2/2/span 2/span 5;
        text-align: left;
    }
    #covid {
        height: 1300px;
        grid-template-rows: repeat(20,1fr);
        grid-template-columns: repeat(7,1fr);
    }
    #back {
        height: 1100px;
    }
    #covid h2 {
        font-size: 14pt;
    }

    #covid1T {
        grid-area: 3/2/span 2/span 5;
    }
    #covid1 {
        grid-area: 4/2/span 2/span 5;
    }
    #covid2T {
        grid-area: 6/2/span 2/span 5;
    }
    #covid2 {
        grid-area: 7/2/span 2/span 5;
    }
    #covid3T {
        margin-top: 10px;
        grid-area: 9/2/span 2/span 5;
    }
    #covid3 {
        margin-top: 20px;
        grid-area: 10/2/span 2/span 5;
    }
    #covid4T {
        grid-area: 12/2/span 2/span 5;
        margin:0;
    }
    #covid4 {
        grid-area: 13/2/span 2/span 5;
        margin:0;
    }
    #covid5T {
        grid-area: 15/2/span 2/span 5;
        margin-top: 10px;
    }
    #covid5 {
        grid-area: 16/2/span 2/span 5;
        margin-top:10px;
    }
}
@media only screen and (max-device-width: 376px) {
    #linha4 {
        grid-area: 62/2/span 1/span 5;
    }
    #img5 {

        grid-area: 64/2/span 4/span 4;
    }
    #titulo5 {

        grid-area: 68/2/span 3/span 5;

    }
    #texto5 {

        grid-area: 69/2/span 3/span 5;

    }
    #carimbo {
        width:300px;
        top:55%;
        left:10%;
    }
}
@media only screen and (max-device-width: 360px) {
    #linha1 {
        grid-area: 18/2/span 1/span 5;
    }
    #img2 {

        grid-area: 20/2/span 4/span 4;
    }

    #titulo2 {
        grid-area: 24/2/span 3/span 5;
        margin: 0;
    }
    #texto2 {
        grid-area: 25/2/span 3/span 5;
        margin: 0;
    }
    #linha2 {
        grid-area: 32/2/span 1/span 5;
    }
    #img3 {

        margin: 0;
        width: 250px;
        grid-area: 34/2/span 4/span 4;
    }
    #titulo3 {

        grid-area: 38/2/span 3/span 5;
        margin: 0;
    }
    #texto3 {

        grid-area: 39/2/span 3/span 5;
        margin: 0;
    }
    #linha3 {
        grid-area: 44/2/span 1/span 5;
    }
    #img4 {
        margin: 0;
        width: 250px;
        grid-area: 46/2/span 4/span 4;
    }
    #titulo4 {

        grid-area: 50/2/span 3/span 5;
        margin: 0;
    }
    #texto4 {

        grid-area: 51/2/span 3/span 5;
        margin: 0;
    }
    #linha4 {
        grid-area: 62/2/span 1/span 5;
    }
    #img5 {

        margin: 0;
        width: 250px;
        grid-area: 64/2/span 4/span 4;
    }
    #titulo5 {

        grid-area: 68/2/span 3/span 5;
        margin: 0;
    }
    #texto5 {

        grid-area: 69/2/span 3/span 5;
        margin: 0;
    }
    #carimbo {
        width:300px;
        top:70%;
        left:10%;
    }
}

@media only screen and (max-device-width: 321px) {

    html {
        overflow-x: hidden;
    }
    body {
        overflow-x: hidden;
        background: url("cadeira.jpg");
        background-size: 1100px auto;
        background-repeat: no-repeat;
        background-position-x: center;
        scroll-behavior: smooth;
       /* overflow-y: scroll;
        -webkit-overflow-scrolling: touch;*/
    }

    .layernavbar {
        display: none;
    }
    a {
        text-decoration: none;
        color: #1E1E23;
        opacity:1;
        font-family: 'work sans', sans serif;
        font-size: 1.5em;
        font-weight: 400;
        transition: 200ms;
    }
    a:hover {
        opacity:0.5;
    }
    ul {
        padding: 0;
        list-style-type: none;
    }



    .container {
        position: absolute;
        width: 100%;
        height: 300px;
        margin:0;
        Display: flex;
        justify-content: center;
        z-index: 15;


    }
    .phone {
        width: 100%;
        height: 360px;
        Display: flex;
        justify-content: center;
        align-items: center;
    }
    .content {
        position: absolute;
        top:0;
        width: 100%;
        height: 360px;
        overflow: hidden;

    }
    nav {

        background-color: #1E1E23;
        height: 65px;
        box-shadow: 0px 0px 20px #222222;

    }
    #imgnav {
        float: right;
        margin-top: 10px;
        margin-right: 10px;
    }


    #menuToggle {

        display: flex;
        flex-direction: column;
        position: relative;
        top: 25px;
        left: 25px;
        z-index: 10;
        -webkit-user-select: none;
        user-select: none;
    }

    #menuToggle input {

        display: flex;
        width: 40px;
        height: 32px;
        position: absolute;
        cursor: pointer;
        opacity: 0;
        z-index: 20;
    }

    #menuToggle span
    {
        display: flex;
        width: 29px;
        height: 2px;
        margin-bottom: 5px;
        position: relative;
        background: #ffffff;
        border-radius: 3px;
        z-index: 1;
        transform-origin: 5px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
        background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
        opacity 0.55s ease;
    }

    #menuToggle span:first-child
    {
        transform-origin: 0% 0%;
    }

    #menuToggle span:nth-last-child(2)
    {
        transform-origin: 0% 100%;
    }

    #menuToggle input:checked ~ span
    {
        opacity: 1;
        transform: rotate(45deg) translate(-3px, -1px);
        background: #36383F;
    }
    #menuToggle input:checked ~ span:nth-last-child(3)
    {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menuToggle input:checked ~ span:nth-last-child(2)
    {
        transform: rotate(-45deg) translate(0, -1px);
    }

    #menu {
        display: block;
        position: absolute;
        z-index:10;
        width: 180px;
        height: 300px;
        box-shadow: 0 0 10px #85888C;
        margin: -50px 0 0 -50px;
        padding: 50px;
        padding-top: 120px;
        padding-bottom: 350px;
        background-color: #F5F6FA;
        -webkit-font-smoothing: antialiased;
        transform-origin: 0% 0%;
        transform: translate(-100%, 0);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    #menu li
    {
        padding: 10px 0;
        transition-delay: 2s;
    }

    #menuToggle input:checked ~ ul
    {
        transform: none;
    }

    #inicio{
        width: 320px;
        overflow-x: hidden;

    }
    #divfundo {
        max-width: 100%;
        overflow-x: hidden;
        display: flex;
        justify-content: center;
    }
    #divfundo {
        display: none;
    }




    .mapouter {
        margin-left: 30px;
        grid-area: 1/2/span 20/span 20;
        position: relative;
        text-align: right;

        width: 80%;
    }
    .gmap_canvas {
        overflow: hidden;
        background: none !important;
        margin-right: 0;
        width: 80%;
    }
    iframe {
        width: 100%;
    }

    #inicio {
        display: grid;
        grid-template-rows: repeat(10,60px);
        grid-template-columns: repeat(4,1fr);
    }

    #inicio>p {
        font-size: 9pt;
        font-family: "Work Sans ExtraBold", sans-serif;
        grid-area: 5/2/span 1/span 2;
    }
    #inicio>img {
        width: 250px;
        grid-area: 7/1/span 1/span 5;
        margin-left: 40px;
    }

    #sobrenos {
        height: 500px;
    }

    #titulosobrenos {
        font-size: 20pt;
    }
    #textosobrenos {
        font-size: 7pt;
        width: 80%;
        margin-left: 46px;
    }

    #social {

        top: 65%;
        margin-left: 20px;
        width: 40px;
        height: 150px;

    }
    #trip {
        height: 40px;
        width: 40px;

    }

    #face {
        height: 40px;
        width: 40px;

    }
    #insta {
        height: 40px;
        width: 40px;

    }
    #trip>a>img {
        width: 30px;
        height:auto;
    }

    #face>a>img {
        width: 30px;
        height:auto;
    }

    #insta>a>img {
        width: 30px;
        height:auto;
    }

    #jogos>#titulojogos {
        grid-area: 2/3/span 3/span 3;
        text-align: center;
        margin: 0;
        font-size: 17pt;
        line-height: 30px;
    }
    #jogos {
        height: 4700px;
        display: grid;
        grid-template-rows: repeat(80,60px);
        grid-template-columns: repeat(7,1fr);
    }

    #img1 {
        margin: 0;
        width: 250px;
        grid-area: 4/2/span 4/span 4;
    }
    #titulo1 {
        grid-area: 8/2/span 3/span 5;
        margin: 0;
    }
    #texto1 {
        grid-area: 9/2/span 3/span 5;
        margin: 0;
    }
    #linha1 {
        grid-area: 19/2/span 1/span 5;
    }
    #img2 {
        margin: 0;
        width: 250px;
        grid-area: 21/2/span 4/span 4;
    }

    #titulo2 {
        grid-area: 25/2/span 3/span 5;
        margin: 0;
    }
    #texto2 {
        grid-area: 26/2/span 3/span 5;
        margin: 0;
    }
    #linha2 {
        grid-area: 34/2/span 1/span 5;
    }
    #img3 {

        margin: 0;
        width: 250px;
        grid-area: 36/2/span 4/span 4;
    }
    #titulo3 {

        grid-area: 40/2/span 3/span 5;
        margin: 0;
    }
    #texto3 {

        grid-area: 41/2/span 3/span 5;
        margin: 0;
    }
    #linha3 {
        grid-area: 47/2/span 1/span 5;
    }
    #img4 {
        margin: 0;
        width: 250px;
        grid-area: 49/2/span 4/span 4;
    }
    #titulo4 {

        grid-area: 53/2/span 3/span 5;
        margin: 0;
    }
    #texto4 {

        grid-area: 54/2/span 3/span 5;
        margin: 0;
    }
    #linha4 {
        grid-area: 67/2/span 1/span 5;
    }
    #img5 {

        margin: 0;
        width: 250px;
        grid-area: 69/2/span 4/span 4;
    }
    #titulo5 {

        grid-area: 73/2/span 3/span 5;
        margin: 0;
    }
    #texto5 {

        grid-area: 74/2/span 3/span 5;
        margin: 0;
    }

    #FAQ {
        height: 1400px;
    }

    #titulofaq {
        grid-area: 2/2/span 2/span 5;
        font-size: 20pt;
        text-align: left;
    }
    .container1{
        width: 80%;
        font-size: 10pt;
        margin: 0;
        grid-area: 4/2/span 20/span 20;
    }
    .title-name {
        font-size: 15pt;
    }

    #aveiro {
        grid-area: 2/3/span 3/span 3;
        margin: 0;
    }

    #viseu {
        grid-area: 4/3/span 3/span 3;
        margin: 0;
    }
    #butoes>a>img {
        width: 100%;
    }
    #tituloescolha {
        text-align: center;
        font-size: 17pt;
    }
    #ventos>a {
        font-size: 10pt;
    }
}

@media only screen and (max-width: 1355px)
and (min-width: 1200px){
    li > a {
        font-size: 1.2vw;
    }
    .navitem {
        margin-left: 4vw;
    }
    h2 {
        font-size: 1.5vw;
    }
    #jogos>p {
        font-size: 1vw;
    }
    #jogos>#titulojogos {
        font-size: 3vw;
    }
    #img1 {
        width: 45%;
    }
    #img2 {
        width: 45%;
    }
    #img3 {
        width: 45%;
    }
    #img4 {
        width: 45%;
    }
    #img5 {
        width: 45%;
    }
    .mapouter {
        margin-left: 0px;
        grid-area: 1/2/span 20/span 20;
        position: relative;
        text-align: right;

    }
    .gmap_canvas {
        overflow: hidden;
        background: none !important;
        margin-right: 0;
        width: 80%;
    }
    iframe {
        width: 100%;
    }
}

