* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    background-image: url(fundo.png);
    background-repeat: no-repeat;
    background-size: cover;
}

header {
    background: #4a3a1d;
    color: #f8f1e5;
    text-align: center;
    padding: 10px;
}

header h1 {
    font-size: 40px; 
}

main {
    padding: 40px;
    max-width: 1000px;
    margin: auto;
}

.introducao {
    background: #f8f1e5;
    padding: 16px;
    border: 2px solid #4a3a1d;
    border-radius: 8px;
    margin-bottom: 16px; 
}

.introducao p {
    font-size: 20px;
    line-height: 24px;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; 
}

.galeria figure {
    border: 2px solid #8b5e3c;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
}

.galeria img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.galeria img:hover {
    transform: scale(1.05);
}

.galeria figcaption {
    padding: 8px; 
    text-align: center;
    background-color: #f8f1e5;
    color: #333;
    font-size: 14.4px;
    line-height: 22.4px; 
    border-top: 1px solid #d1b491;
}

.conclusao {
    background: #f8f1e5;
    padding: 16px;
    border: 2px solid #4a3a1d;
    border-radius: 8px;
    margin-top: 16px;
}

.conclusao p {
    font-size: 19.2px; 
    line-height: 24px; 
}



footer {
    background: #4a3a1d;
    color: #f8f1e5;
    text-align: center;
    padding: 5px;
    position: fixed;
    bottom: 0;
    width: 100%;
}


.center{
    text-align: center;
}

.medieval-button {
    position: relative;
    background-color: #000000;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 15px;
    border-style: solid;
    overflow: hidden;
    z-index: 1;
}

.medieval-button::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -10%;
    height: 180%;
    width: 0;
    border-radius: 100%;
    background-color: #420505;

    transition: all 750ms 0.3s;
}

.medieval-button:hover::before {
    width: 120%;
    height: 180%;
    transition: all 750ms 0.7s;
}

.button-text {
    position: relative;
    z-index: 2;
    color: white;
}

.sword {
    position: absolute;
    top: 50%;
    right: -100%;
    transform: translateY(-50%);
    transition: right 0.5s ease;
    z-index: -1;
    height: 40px;
}

.medieval-button:hover .sword {
    right: calc(25%);
}

