edia / style.css
LMartinezEXEX's picture
Added semantic elements tags
afffaf5
:root {
--text-primary: rgb(24, 24, 24);
--text-secondary: #FFFFFF;
--card-bg: #FFFFFF;
--card-title: rgb(24, 24, 24);
--card-text: rgb(92, 93, 97);
--card-hover: rgba(0, 0, 0, 0.2);
--main-btn-primary: rgb(24, 24, 24);
--main-btn-secundary: #FFFFFF;
--translate-btn-primary: #58A6FF;
--translate-btn-secundary: #FFFFFF;
--translate-btn-hover: #4080c9;
--demo-btn-primary: rgb(128, 0, 128);
--demo-btn-secundary: rgb(242, 202, 242);
--demo-btn-tertiary: #FFFFFF;
--tuto-btn-primary: rgb(0, 128, 0);
--tuto-btn-secundary: rgb(189, 223, 189);
--tuto-btn-tertiary: #FFFFFF;
--manual-btn-primary: rgb(255, 165, 0);
--manual-btn-secundary: rgb(225, 219, 208);
--manual-btn-tertiary: #FFFFFF;
--footer-primary: rgb(24, 24, 24);
--footer-secundary: rgb(136, 138, 142);
}
body {
padding: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
background-image: url("images/background.png");
}
p {
color: var(--text_primary);
font-size: 15px;
margin-bottom: 10px;
margin-top: 5px;
text-align: justify;
line-height: 1.7;
}
button {
border: 0;
border-radius: 0.25rem;
font-size: 1rem;
line-height: 1.2;
padding: 0.25rem 0.5rem;
margin: 0.25rem;
cursor: pointer;
}
a.button {
display: block;
border: 0;
border-radius: 0.25rem;
font-size: 1rem;
line-height: 1.2;
padding: 0.25rem 0.5rem;
margin: 0.25rem;
cursor: pointer;
text-decoration: none;
text-align: center;
color: var(--main-btn-primary);
}
header#head-flex-container {
margin-bottom: 2rem;
display: flex;
flex-direction: row;
flex-wrap: wrap-reverse;
justify-content: space-between;
align-items: flex-end;
gap: 1rem;
}
#title-container {
flex-grow: 3;
}
#name {
color: var(--text-primary);
margin: 0;
font-size: 42px;
}
#subname {
margin: 0;
color: var(--text-secondary);
font-size: 18px;
}
#description-container > a.button#tutorial {
max-width: 400px;
align-items: center;
}
section#cards-container {
padding: 0.5rem 0;
}
.card {
min-width: 230px;
margin: 1rem auto;
padding: 16px;
border: 1px solid var(--card-bg);
background-color: var(--card-bg);
transition: transform .5s, box-shadow 1s;
}
.card:hover {
transform: scale(1.02) perspective(0px);
box-shadow: 0 10px 10px var(--card-hover);
}
.card h3 {
color: var(--card-title);
margin: 0.25rem;
}
.card p {
color: var(--card-text);
}
.card-description-flex-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-start;
column-gap: 20px;
min-width: 100%;
}
.card-description-flex-container p:first-child {
flex: 2 1 780px;
}
.card-description-flex-container div:nth-child(2) {
flex: 55 1 0;
}
.card-description-flex-container > p {
display: block;
text-align: justify;
}
.buttons-flex-container {
display: flex;
flex-direction: column;
gap: 7px 5px;
flex: 1;
max-width: 500px;
}
.divided-buttons-flex-container {
display: flex;
flex-direction: row;
gap: 0 5px;
}
.divided-buttons-flex-container > .button {
flex: 1;
}
footer > p {
color: var(--footer-secundary);
font-size: 10px;
}
footer > section#image-flex-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: 20px 5rem;
margin-bottom: 2rem;
}
section#image-flex-container h4 {
color: var(--footer-primary);
margin: 10px 0 0 0;
}
#main-buttons-flex-container {
order: 1;
min-width: 260px;
padding-top: 3px;
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: 0.7rem;
}
#main-buttons-flex-container > .button {
min-width: 230px;
margin: 0;
}
#organization-container {
order: 2;
display: flex;
flex-direction: column;
gap: 0.25rem 0;
}
#sponsors-container {
order: 3;
display: flex;
flex-direction: column;
gap: 0.25rem 0;
}
#our-pages-flex-container {
order: 4;
min-width: 260px;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
gap: 0.5rem;
}
#our-pages-flex-container a {
text-decoration: none;
color: var(--footer-primary);
}
.banner {
max-width: 25rem;
transition: transform .5s, box-shadow 1s;
background-color: var(--card-bg);
}
.banner:hover {
transform: scale(1.02) perspective(0px);
box-shadow: 0 10px 10px var(--card-hover);
}
#sponsors-container img {
width: 20rem;
}
#our-pages-flex-container img {
vertical-align:middle;
width: 2.5rem;
margin-right: 5px;
}
/* Buttons Styling */
.disabled {
pointer-events: none;
cursor: default;
}
button#translate {
padding: 0.5rem 0.75rem;
margin: 5px 0 0 0;
background-color: var(--translate-btn-primary);
color: var(--translate-btn-secundary);
transition: background-color 0.6s;
}
button#translate:hover {
background-color: var(--translate-btn-hover);
}
button#translate > img {
vertical-align:bottom;
width: 20px;
}
#main-buttons-flex-container > .button {
padding: 0.5rem 0.75rem;
}
#main-buttons-flex-container > .button:hover,
a.button#tutorial:hover {
box-shadow: -7px -7px 20px 0px #fff9,
-4px -4px 5px 0px #fff9,
7px 7px 20px 0px #0002,
4px 4px 5px 0px #0001;
}
#main-buttons-flex-container > .button#hf {
border-radius: 0;
background-color: var(--main-btn-primary);
border: 1px solid var(--main-btn-primary);
color: var(--main-btn-secundary);
transition: 0.4s;
}
#main-buttons-flex-container > .button#ccad {
border-radius: 0;
background-color: var(--main-btn-primary);
border: 1px solid var(--main-btn-primary);
color: var(--main-btn-secundary);
transition: 0.4s;
}
#main-buttons-flex-container > .button#hf:hover,
#main-buttons-flex-container > .button#ccad:hover {
background: var(--main-btn-secundary);
color: var(--main-btn-primary);
border: none;
}
a.button#tutorial {
border-radius: 0;
background-color: var(--main-btn-secundary);
border: 1px solid var(--main-btn-primary);
transition: 0.4s;
}
.buttons-flex-container .button.demo {
border-radius: 0;
background: linear-gradient(45deg, var(--demo-btn-primary) 0%, var(--demo-btn-secundary) 60%, var(--demo-btn-tertiary) 100%);
background-size: 200% 200%;
background-position: right bottom;
transition: 0.5s;
color: var(--main-btn-primary);
}
.buttons-flex-container .button.demo:hover {
background-position: left bottom;
color: var(--main-btn-secundary);
}
.buttons-flex-container .button.tuto {
border-radius: 0;
background: linear-gradient(45deg, var(--tuto-btn-primary) 0%, var(--tuto-btn-secundary) 60%, var(--tuto-btn-tertiary) 100%);
background-size: 200% 200%;
background-position: right bottom;
transition: 0.5s;
color: var(--main-btn-primary);
}
.buttons-flex-container .button.tuto:hover {
background-position: left bottom;
color: var(--main-btn-secundary);
}
.buttons-flex-container .button.manual {
border-radius: 0;
background: linear-gradient(45deg, var(--manual-btn-primary) 0%,var(--manual-btn-secundary) 60%, var(--manual-btn-tertiary) 100%);
background-size: 200% 200%;
background-position: right bottom;
transition: 0.5s;
color: var(--main-btn-primary);
}
.buttons-flex-container .button.manual:hover {
background-position: left bottom;
color: var(--main-btn-secundary);
}
/* Media queries */
@media only screen and (max-width: 769px) {
#description-container > a.button#tutorial {
margin: 1rem auto;
}
.banner {
max-width: 260px;
}
button#translate {
width: 100%;
}
#main-buttons-flex-container {
order: 1;
}
#organization-container {
order: 3;
}
#sponsors-container {
order: 4;
}
#our-pages-flex-container {
order: 2;
}
}