:root {
    --dark-violet: #7D568F;
    --light-violet: #ba8cc7;
    --super-light-violet: #eee5ff;
    --dark-blue: #3d405b;
    --light-gold: #E8E4C5;
    --light-gold-transparency: rgba(232, 228, 197, 0.5);
}

/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

/* Remove problematic text-size-adjust */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

@font-face {
    font-family: moncheri;
    src: url(resources/tan-mon-cheri.woff);
}

/****** Main ********/

/* Ensure full viewport coverage */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.pagination {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    z-index: 10;
}

.pagination a {
    display: block;
    height: 20px;
    margin-bottom: 5px;
    color: var(--dark-blue);
    text-shadow: 1px 1px 1px var(--super-light-violet);
    position: relative;
    padding: 4px;
}

.pagination a.active:after {
    box-shadow: inset 0 0 0 5px;
}

.pagination a .hover-text {
    position: absolute;
    right: 15px;
    top: 7px;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding-right: 15px;
}

.pagination a:hover .hover-text {
    opacity: 1;
}

.pagination a:after {
    transition: box-shadow 0.5s ease;
    width: 10px;
    height: 10px;
    display: block;
    border: 1px solid;
    border-radius: 50%;
    content: '';
    position: absolute;
    margin: auto;
    top: 0;
    right: 4px;
    bottom: 0;
}

.vertical-center p.cta {
    margin-top: 5px;
}

.vertical-center a:link,
.vertical-center a:visited {
    color: var(--light-gold);
    text-decoration: none;
}

.vertical-center a:hover {
    text-decoration: underline wavy;
}

.arrow {
    position: relative;
    padding-right: 15px;
}

.arrow:before,
.arrow:after {
    content: '';
    position: absolute;
    right: 0;
    top: 7px;
    width: 2px;
    height: 12px;
    background: white;
}

.arrow:before {
    transform: rotate(45deg);
    top: 15px;
}

.arrow:after {
    transform: rotate(-45deg);
}

.logo {
    max-width: 150px;
    height: auto;
    margin: auto;
}

.titulo {
    background: var(--super-light-violet);
    color: var(--dark-violet);
    background-image: url('resources/foto_3_2.png');
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
}

.celebracao {
    background: var(--light-violet);
}

.presenca {
    background: var(--super-light-violet);
    color: var(--dark-violet);
}

/* Simplified font sizing approach */
body {
    color: var(--dark-blue);
    font-family: Inter, sans-serif;
    font-size: 16px; /* Base font size */
}

.vertical-center {
    text-align: center;
    width: 100%;
    position: absolute;
    top: 47%;
    transform: translateY(-47%);
}

.vertical-center p {
    margin-top: 23px;
}

.inner {
    position: relative;
    height: 100vh; /* Full viewport height */
    width: 80%;
    margin: 0 auto;
    max-width: 100%;
}

/* Responsive typography */
h1 {
    font-size: clamp(2rem, 6vw, 6rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 4rem);
}

p {
    font-size: clamp(1rem, 2.5vw, 2rem);
    line-height: 1.3;
}

/* Specific sizing for titulo text */
.titulo-texto h1 {
    font-size: clamp(2.5rem, 7vw, 8rem);
}

.titulo-texto h2 {
    font-size: clamp(1.8rem, 5vw, 5rem);
}

iframe {
    padding: 50px;
    max-width: 100%;
}

header {
    padding: 10px;
    display: flex;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.titulo-texto {
    position: relative;
    font-family: moncheri, serif;
    text-align: right;
    line-height: 1.25;
    z-index: 1;
}

.titulo-nomes {
    display: flex;
    flex-direction: column;
}

.titulo-nomes h1 {
    margin-block: 25px 5px;
    font-weight: bold;
}

.titulo-nomes h2 {
    margin-block: 5px 25px;
    font-style: italic;
}

.titulo-data {
    padding-top: 100px;
    font-weight: bold;
}

#foto_quinta {
    padding-top: 50px;
    max-height: 640px;
    width: auto;
    max-width: 100%;
}

#mapa {
    width: min(600px, 90%);
    height: 450px;
    border: 0;
    max-width: 100%;
}

.layout-errado {
    display: none;
}

/* Enhanced mobile styles */
@media (max-width: 850px) {
    body {
        padding-top: 20px;
        font-size: 14px;
    }

    .logo {
        max-width: 100px;
    }

    .titulo {
        background-size: 90% auto;
        background-repeat: no-repeat;
        background-position: center;
    }

	.titulo-nomes h2 {
		margin-block: 5px 25px;
		font-style: italic;
		display: none;
	}


    .titulo-data {
        padding-top: 75px;
    }

    .titulo-local {
        padding-top: 55px;
    }

    #foto_quinta {
        padding-top: 20px;
        height: auto;
        width: 100%;
        max-width: 100%;
    }

    #mapa {
        width: 90%;
        height: 300px;
        margin: 0 auto;
    }

    .inner {
        width: 80%;
    }

    .pagination {
        right: 10px;
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    body {
        padding-top: 10px;
        font-size: 12px;
    }

    .celebracao h2 {
        padding-top: 25px;
    }

    .vertical-center p {
        margin-top: 10px;
    }

    .logo {
        max-width: 80px;
    }

    #mapa {
        width: 95%;
        height: 250px;
    }

    .inner {
        width: 80%;
    }

    .pagination {
        right: 5px;
        font-size: 1.2rem;
    }
}

/* Landscape orientation fix */
@media (max-height: 1000px) and (orientation: landscape) {
    .titulo, .celebracao, .presenca {
        display: none;
    }

    body {
        background: var(--light-violet);
    }

    .layout-errado {
        padding: 10px;
        padding-top: 50px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    #foto_quinta_rodada {
        transform: rotate(90deg) scale(0.75);
        width: 50%;
        height: auto;
        max-width: 100%;
    }
}

/* Ensure panels take full viewport */
.panel {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

@media (min-width: 1400px) {
    .inner {
        width: 80%;
    }

    .titulo {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}