/*|| variables*/
@font-face{
    font-family: Script;
    src: url(../fonts/WeddingScript-Regular.ttf)
}
:root {
    --bg-clr: #2E0219;
    --accent1-clr: #602925;
    --accent2-clr: #B7713D;
    --text-clr: #F6F7EC;
    --link-bg-clr: #929576;
    --link-hvr-clr: #819896;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased; /* For Safari */
    -moz-osx-font-smoothing: grayscale; /* Firefox */
    font-smooth: always;
}

/*|| structure*/
html, body, section{
    margin: 0;
    padding: 0;
    font-family: Script;
    box-sizing: border-box;
}
html {
    background: var(--accent1-clr);
    color: var(--text-clr);
    height: 100%;
    width: 100%;
    overflow: hidden;
}
body {
    height: calc(100% - 40px);
    width: 100%;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: solid 8px var(--accent1-clr);
    border-top: 0;
    border-radius: 10px;
    background-color: var(--bg-clr);
    padding: 8px;
    margin-top: 40px;
    padding-bottom: 40px;
}
main {
    width: min(1080px, 95%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}
.title {
    text-align: left;
    width: 100%;
}

/*|| navbar*/
.nav-button {
    display: none;
}
nav {
    display: flex;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 8px;
    background: var(--accent1-clr);
    z-index: 4;
}
a.nav, a.nav:visited {
    background: var(--accent1-clr);
    color: var(--text-clr);
    font: bold 14pt/24px Courier, "Courier New", monospace;
    height: 40px;
    padding: 6px 0 10px;
    box-sizing: border-box;
}
a.nav:hover {
    background: var(--link-hvr-clr);
    color: var(--bg-clr);
}
span.nav {
    height: 24px;
    padding: 0 8px;
    box-sizing: border-box;
    border-right: solid 2px var(--text-clr);
}
#home {
    position: absolute;
    left: 8px;
    height: 40px;
    margin: 0;
    padding: 0 8px 4px;
    border: 0;
    line-height: 36px;
    font-family: Script;
    font-size: 18pt;
}
#home {
    background: var(--accent1-clr);
    color: var(--text-clr);
}
#contact {
    border: 0;
}

/*|| text*/
.ournames {
    font-size: 48pt;
}
h1, h2, h3 {
    text-align: center;
    width: fit-content;
    box-sizing: border-box;
}
h1 {
    border-bottom: var(--accent2-clr) solid 8px;
    border-radius: 4px;
    font-size: 36pt;
    margin: 16px 0;
    padding: 0 8px 4px;
}
h2 {
    border-bottom: var(--accent2-clr) solid 4px;
    border-radius: 4px;
    font-size: 28pt;
    margin: 12px 0;
    padding: 0 4px 4px;
}
h3 {
    font-size: 20pt;
    margin: 0;
    padding: 4px 8px;
}
p {
    margin: 0;
    padding: 8px 4px;
    text-align: center;
    font: 16pt/1.5 Courier, "Courier New", monospace;
}
.action {
    border: dashed 2px var(--link-hvr-clr);
    position: relative;
    margin-top: 24px;
    padding: 8px;
    box-sizing: border-box;
}
.action::before {
    content: "ACTION!";
    position: absolute;
    right: -2px;
    top: -24px;
    height: 24px;
    line-height: 22px;
    font-family: Courier, "Courier New", monospace;
    font-size: 16pt;
    background: var(--link-hvr-clr);
    color: var(--bg-clr);
    padding-left: 2px;
}
.tip {
    border: dashed 2px var(--link-bg-clr);
    position: relative;
    margin-top: 24px;
    padding: 8px;
    box-sizing: border-box;
}
.tip::before {
    content: "PRO TIP!";
    position: absolute;
    left: -2px;
    top: -24px;
    height: 24px;
    line-height: 22px;
    font-family: Courier, "Courier New", monospace;
    font-size: 16pt;
    background: var(--link-bg-clr);
    color: var(--bg-clr);
    padding-left: 2px;
}
ol {
    font-family: Courier, "Courier New", monospace;
    margin: 0;
}

/*|| schedule*/
dl {
    font-size: 20pt;
    border: solid var(--accent1-clr) 4px;
    border-radius: 2px;
    padding: 0 8px 8px;
    background: var(--accent2-clr);
    color: black;
}
dt {
    margin-top: 8px;
}
dd {
    font: 14pt/1.5 Courier, "Courier New", monospace;
}

/*|| links*/
a, a:visited {
    color: var(--bg-clr);
    text-decoration: none;
    background: var(--link-bg-clr);
    padding: 0 2px;
}
a:hover {
    background: var(--link-hvr-clr);
}
.options {
    display: flex;
    flex-flow: row wrap;
    row-gap: 24px;
    column-gap: 24px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}
.option {
    transition: all ease-out 0.5s;
    border-radius: 2px;
}
.option:hover{
    transition: all ease-out 0.5s;
    box-shadow: var(--text-clr) 0px 0px 4px 4px;
}

/*|| scrollbar styling*/
body {
        scrollbar-color: var(--bg-clr) var(--accent1-clr);
        scrollbar-width: thin;
    }
@supports selector(::-webkit-scrollbar) {
    body::-webkit-scrollbar {
        background: var(--bg-clr);
    }
    body::-webkit-scrollbar-thumb {
        background: var(--accent1-clr);
    }
    body::-webkit-scrollbar-thumb:hover {
        background: var(--accent2-clr);
    }
}

/*|| small screens*/
@media (width<=800px) {
    .ournames {
        font-size: xxx-large;
    }
    h2 {
        padding-bottom: 8px;
    }
    body {
        height: 100%;
        margin-top: 0;
        border: solid 8px var(--accent1-clr);
    }
    nav {
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        width: 160px;
        padding: 8px;
        top: -100%;
        transition: all ease-out 0.5s;
        overflow-y: scroll;
    }
    label.nav-button {
        display: block;
        position: fixed;
        top: 12px;
        left: 12px;
        width: 60px;
        height: 60px;
        border-radius: 24px;
        background: url(../img/tab.png) center/60px no-repeat, var(--accent1-clr);
        cursor: pointer;
        transition: all ease-out 0.5s;
    }
    #toggle:checked + label.nav-button {
        transform: rotate(180deg);
        left: 40px;
    }
    nav:has(#toggle:checked) {
        top: 0;
    }
    #home {
        position: static;
        margin: 72px 0 40px;
        font-size: 20pt;
    }
    span.nav {
        border-right: 0;
    }
}