IFCD0210/Practicas/Practicas HTML/Repaso 2/css/style.css
2024-01-10 01:49:32 +01:00

290 lines
4.7 KiB
CSS

@charset "UTF-8";
* {
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
border: none;
outline: none;
}
html {
scroll-behavior: smooth;
}
body {
background-image: url("../imagenes/fondo-vert.jpg");
background-size: cover;
}
/* Estilos para la cabecera con menu */
#main_header {
width: 100%;
height: 120px;
background-image: url("../imagenes/teclado.jpg");
display: flex;
justify-content: space-between;
align-items: flex-end;
position: sticky;
top: 0;
background-color: gray;
padding: 10px;
margin-bottom: 0.5em;
box-sizing: border-box;
box-shadow: 2px 2px 3px;
}
#main_header > img {
height: 100px;
}
.menu {
list-style-type: none;
margin: 0;
padding: 0;
}
.menu li {
float: left;
margin: 0 5px;
color: white;
cursor: pointer;
}
.menu li a {
color: white;
text-decoration: underline;
font-weight: bold;
text-shadow: 1px 1px 1px black;
}
/* Ajustes para el posicionamento en las anclas del menu*/
#inicio,
#equipo,
#contacto {
scroll-margin-top: 150px;
}
/* Ajustes generales para contenedor general de la web*/
.main_container {
background-color: rgba(0, 0, 0, 0.2);
width: 70%;
margin: auto;
padding: 2em;
color: white;
margin-top: 3em;
box-sizing: border-box;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
}
.main_container h1 {
font-size: 4em;
font-style: italic;
font-weight: lighter;
text-shadow: 1px 1px 2px black;
}
.main_container h2 {
font-size: 2em;
font-style: italic;
font-weight: lighter;
text-shadow: 1px 1px 2px black;
}
/* Ajustes generales para todas las secciones de la web */
section {
margin-top: 2em;
display: flex;
flex-direction: column;
gap: 1em;
align-items: center;
text-shadow: 1px 1px 1px black;
}
section p {
text-align: left;
}
/* Ajuste especifico para la seccion equipo */
.equipo-content {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2em;
}
/* Estilos para las tarjetas de la seccion equipo*/
.card {
padding: 0.5em;
border: 4px solid #2795de;
color: #2795de;
}
.card > img {
margin-top: 1em;
max-height: 300px;
}
.card-details {
display: flex;
align-items: center;
gap: 0.2em;
background-color: rgba(0, 0, 0, 0.3);
}
.card-details img {
width: 38px;
}
.card-details p {
color: white;
font-size: 0.9em;
}
.card-details span {
color: #2795de;
font-weight: bold;
}
/* Estilos del footer */
footer {
width: 70%;
margin: auto;
background-image: url("../imagenes/teclado.jpg");
display: flex;
flex-direction: column;
align-items: center;
gap: 1em;
padding: 1em;
box-sizing: border-box;
}
footer img {
width: 80%;
max-width: 200px;
}
footer p {
color: rgb(177, 152, 28);
margin-top: 1em;
}
.redes {
width: 100%;
display: flex;
justify-content: space-around;
}
.redes img {
width: 48px;
height: 48px;
}
/*Estilos para el Formulario*/
.form_main {
width: 100%;
border: 4px solid #2795de;
color: #2795de;
box-sizing: border-box;
padding: 1em;
display: flex;
flex-direction: column;
gap: 0.5em;
}
.form_main fieldset {
text-align: start;
border: 4px solid #2795de;
background-color: rgb(0, 0, 0, 0.3);
box-sizing: border-box;
padding: 0.5em;
display: flex;
flex-direction: column;
gap: 1em;
}
.form_main fieldset label {
display: inline-block;
font-weight: bold;
width: 6em;
}
.form_btn {
color: #fff;
cursor: pointer;
border: 2px solid #2795de;
border-radius: 0.4em;
font-size: 16px;
padding: 0.4em;
height: 100%;
}
.form_btn:hover {
background-color: #1769aa;
}
.flex_responsive {
display: flex;
flex-direction: row;
gap: 0.5em;
align-items: center;
}
input,
select,
textarea {
background-color: rgb(0, 0, 0, 0.6);
color: white;
height: 2em;
padding: 0 0.2em;
vertical-align: middle;
}
input[type="radio"] + label {
color: white;
}
textarea {
width: 98%;
height: 200px;
border: 2px solid white;
}
/* Definiciones para el boton de subir pagina*/
#subircaja {
position: fixed;
right: 10px;
bottom: 10px;
opacity: 0.7;
transition: opacity 0.3s ease-in-out;
}
#subircaja:hover {
opacity: 1;
}
#subirimg {
width: 64px;
height: 64px;
border-radius: 50%;
border: 2px solid #fff;
background-color: #2795de;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
}
#subirimg:hover {
background-color: #1769aa;
}
/*********************************************/
@media (max-width: 650px) {
.menu {
text-align: left;
}
.menu li {
list-style-type: square;
clear: left;
}
.menu a {
font-size: 1em;
}
.main_container {
width: 90%;
}
footer {
width: 90%;
}
.flex_responsive {
display: flex;
align-items: normal;
flex-direction: column;
}
}