/* reset rule */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    background-color: #3b4b2b;
    color: #f5f5f5;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 10pt;
    line-height: 1.5;
}

body p {
    width: 75ch;
    justify-self: center;
    text-align: center;
}

header {
    border: 4px solid #222;
    text-align: center;
    font-family: "Playwrite MX", cursive;
    background-color: #20737c;
    margin-bottom: 12px;
}

h1, h2 {
    color: #ffffff;
    font-weight: bold;
}

h1 span {
    color: #f4c542;
    text-shadow: 1px 2px 2px #222;
    text-transform: lowercase;
    letter-spacing: 8px;
}

section {
    margin-bottom: 24px;
}

main {
    display: flex; 
    gap: 10px; 
}

main section {
    border: 2px solid #20737c;
    flex: 1 0 auto; 
    background-color: #2f3d22;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px #20737c;
}

a {
    color:#f4c542
}

main nav a {
    color:#f5f5f5;
    text-decoration: none;
    font-weight: bold;
    font-size: 16pt;
    display: inline-block;
    padding: 8px 12px;
    margin-top: 12px;
    background-color: #20737c;
    border-radius: 6px;
    transition: 0.3s ease;
}

main nav a:hover {
    color: #ff0;
    background-color: #2895a1;
    transform: translateY(-3px);
}



img {
    border-radius: 8px;
    box-shadow: 2px 2px 5px #aaa;
    max-width: 100%;
    height: auto;
    
}

footer {
    background-color: #20737c;
    width: 100%;
    margin-top: 30px;
    text-align: center;
    position: relative;
    bottom: 0; left: 0;
    padding: 8px 24px;
}

footer cite {
    font-size: 10pt; line-height: 1.5;
}

.photoArray {
    display: flex; 
    flex-flow: row wrap;
    justify-content: space-around;
}

.photoArray figure {
    flex: 0 0 auto;
    width: 300px; aspect-ratio: 1;
    background-size: cover
}

.photoArray figure:nth-child(1) {
    background-image: url(../images/Temple\ of\ Carmen.jpg);
}

.photoArray figure:nth-child(2) {
    background-image: url(../images/alameda-park.jpg);
}

.photoArray figure:nth-child(3) {
    background-image: url(../images/museo-de-celaya-historia.jpg);
}

.photoArray figure:nth-child(4) {
    background-image: url(../images/colmuna-de-la-independencia.jpg);
}

.hero {
    width: 100%;
    height: 500px;
    background-image: 
    linear-gradient(rgb(0,0,0,0.5), rgb(0,0,0,0.5)),
    url(../images/web-dev.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.heroText {
    color: white;
    padding: 20px;
}

.heroText h2 {
    font-size: 40px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 5px #000;
}

.heroText p {
    font-size: 16pt;
    text-shadow: 2px 2px 5px #000;
}