/*Declarar variaveis em CSS*/
:root{
    --main-color:rgb(242, 255, 0, 0.505);
    --secondary-color: rgb(125, 90, 13);
    --font-family: Verdana, sans-serif;
    --font-size: 30px;
}

/*Por defeito- o Desktop terá a cor branca*/
body { 
    font-family: var(--font-family);
    text-align: center;
    background-color: white;
}


body h1 {
    color: var(--secondary-color); 
    text-align: left; 
    margin: 4%; 
    font-size: var(--font-size);
}
body h2 {
    text-align: left; 
    margin: 4%; 
    font-size: 18px; 
    color:var(--secondary-color); 
    font-weight: bold;
}
body p {
    color: black; 
    text-align: left;
    line-height: 1.5;
    font-size:16px;
}

p {margin: 4%;}


/* cabeçalho e menu (juntos)*/
.top_nav {position: fixed; width: 100%; top: 0px; z-index: 1;}

/* Header/cabeçalho*/
header {
    width: 99%; 
    padding: 25px;
    box-sizing: border-box;
    background-image: linear-gradient(to right, rgb(127, 232, 255), rgb(234, 213, 93));
}

/* texto do header (cabeçalho)*/
header h1{
    color: rgb(255, 255, 255); 
    text-align: left;
    font-size: var(--font-size);
    margin: 4%;
}

/* menu de navegação simples - a posição é fixed - a posição é sempre mantida na página */
nav {
    width: 99%;  
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: rgb(127, 232, 255);
}
nav ul li {
    position: relative;
    margin: 0 10px;
}
nav ul li a {
    display: block;
    padding: 10px 15px;
    color: white;
}
nav ul li:hover > ul {
    display: block;
}
nav ul ul {
    display: none;
    position: absolute;
    background-color: rgb(234, 213, 93);
    top: 100%;
    left: 0;
    padding: 0;
}
nav ul ul li {
    margin: 0;
}
nav ul ul li a {
    padding: 10px;
}

nav a:hover {
    background-color: #ddd;
    color: white;
}
nav a:active {
    background-color: wheat;
    color: white;
}


/* video- da página principal*/
video{
    width:100%;
}

.container {  
    justify-content: center;
    align-items: center;
}

.img_100 {
width: 49%;
height:auto;
display: inline-block;
}

/* .title,.sub_title,.paragraph também são do container*/

.text_lateral{
    width: 49%;
    display: inline-block;
}

.title {
    color: rgb(125, 90, 13); 
    font-size: 28px; 
    text-align:left;
    font-weight:bold; 
    width: 100%; 
    height: 100%;
}
.sub_title {
    color: rgb(125, 90, 13);
    text-align:left; 
    font-weight:bold;
    font-size: 18px;
    width: 100%; 
    height: 100%;
}



/* na página dos contactos*/



.formulario1{
    max-width: 500px; 
    margin: 0px auto; 
    background: white; 
    padding: 20px; 
    border-color: rgb(234, 213, 93);
    input {width: 70%;}
}
.textarea_formulário {width: 70%;}
.button{ input {width: 15%;}}


.formulario2 {
    max-width: 500px; 
    margin: 0 auto; 
    background: rgb(234, 213, 93); 
    overflow: hidden;
    padding: 20px; 
    border-color:  rgb(234, 213, 93);
    border: 1 px;
}

.details_text_sublinhado {text-decoration: underline;}
.details_text_sublinhado:hover {color: white;}

.tabela1{
    tr {height: 40px; border-bottom: 1px solid white;background-color: white; text-align: center;}
    title {background-color: white; height: 30px;font-size: 26px;}
}

/* as tags (table th) e (table,th,td) seguintes são da .tabela 1 e .tabela 2*/
table th {width: 4%;}
table, th, td { 
    background-color: white;
    border: 1px solid black;
    border-collapse: collapse;
} 

/*mapa*/
iframe {border: 2px solid black;} 






/* na página sobre */
.img1_sobre{
    width: 100%; 
    height: 100%;
}  
.text_paragraph {
    font-weight:bold;
    font-size:18px
}

.title_list{
    color: var(--secondary-color);
    font-weight:bold;
}

.list{
    margin: 4%; 
    font-size: 18px; 
    text-align: left;
    line-height: 1.5;
}

.text_underline {text-decoration:underline;}

.formulario3 {
    max-width: 410px;
    margin: auto; 
    background: rgb(234, 213, 93); 
    overflow: hidden;
    padding: 20px; 
    width: 100%;
    border-color:  rgb(234, 213, 93);
    border: 1 px;
}
.tabela2{
    tr {height: 40px; border-bottom: 1px solid white;background-color: white; text-align: center;}
    title {background-color: black; height: 30px;font-size: 26px;}
}

.img2e3_sobre{
width: 455px; height: 455px;}





/* link que direciona para o início da página */
.link {
    position: fixed; 
    top: 700px; right: 40px; 
    background-color:#ddd; 
    width: 150px; 
    height: 50px;
    padding-top: 25px; 
    border-radius: 4px;
}

.link:hover {
    background-color:rgb(127, 232, 255);
}






/* Rodape*/
footer { 
    position: static;
    background-image: linear-gradient(to right,rgb(127, 232, 255), rgb(234, 213, 93)); 
    padding: 4%; 
    text-align:left; 
    color: black;
    div.mycontainer {width:100%; overflow:auto;}
    div.mycontainer div {width:33%;float:left;} 
    p { margin: 0;}
} 

footer  a:hover{ color: white;}
footer  a:active{ color:orange;}
footer  a:visited{ color:brown;}

/* Botão do footer*/
.enviar:hover
{
    background-color: rgb(127, 232, 255);
    border-radius: 4px;
}

.enviar:active
{
    background-color: orange;
    border-radius: 4px;
}


/* media querie_Ecrãs que têm 800px ou menos. Tablet View*/
@media screen and (max-width:800px) { 
    body{
        background-color: rgb(249, 243, 182);
    }
}

/*media querie_Mobile - cor será amarela- apliquei uma variável*/
@media screen and (max-width:480px) { 
    body{
        background-color: var(--main-color);
    }
}
