@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    /* if you want to keep it super simple, you can edit these top variables (variables = the things that start with --) to add some style and leave the rest of the code alone! */

    /* colors */
    --text: #000;
    --background: #F5EEE9;
    --accent-dark: #760f36;
    --accent: #9A1A1D;
    --accent-light: #C9B47B;

    /* fonts */
    --basefont: sans-serif;
    --titlefont: roboto;
    --text-size: 16px;

    /* gallery styling */
    --minimum-img-width: 150px;
    --maximum-img-width: 400px;
    --maximum-columns: 4;
    --column-gap: var(--spacing);

    /* misc styling */
    --max-width: 800px;
    --spacing: 15px;
    --border-radius: 4px;
    --underline: dashed var(--accent-light);
    --border: dashed var(--accent) 1px;

    /* calculations - don't worry about this */
    --halfspacing: calc(var(--spacing) / 2);
    --doublespacing: calc(var(--spacing) * 2)
}

* {
    box-sizing: border-box;
    max-width: 100%;
    scrollbar-color: var(--accent);
    -ms-overflow-style: none;
    box-decoration-break:clone
}

body {
    overflow-x: hidden;
    overflow-y: scroll;
    padding: var(--spacing) 5%;
    background-image: url("/images/inspo/bg.png");
    background-color: var(--background);
    color: var(--text);
    font-family: var(--basefont);
    font-size: var(--text-size);
    line-height: 1.5em;
}

h1:has(+ nav) {
    margin-bottom: var(--halfspacing)
}

header {
    text-align: center;
    padding-bottom: var(--spacing);
}

nav {
    padding-top: var(--spacing)
}

main, header, footer {
    max-width: var(--max-width);
    margin: 0 auto;
}

footer {
    display: block;
    text-align: center;
    font-size: .9em;
    margin: var(--spacing) auto;
}

/* element styling */
a {
    color: var(--accent);
    text-decoration: underline var(--underline);
    text-underline-offset:.15em
}

a:hover {
    color: var(--accent-dark);
}

nav a {
    padding: 5px;
    margin: 5px;
}

#to-top a {
    position: fixed;
    right: var(--spacing);
    bottom: var(--spacing);
    font-size: 50px;
    text-decoration: none;
    color: var(--accent-light);
}

b {
    color: var(--accent-dark)
}

i {
    color: var(--accent)
}

mark {
    background-color: var(--accent-light);
    padding: 1px 2px;
    border-radius:var(--border-radius)
}

code {
    font-size:.9em;
    padding:1px 3px;
    font-family:monospace;
    color:var(--accent-dark)
}

u {
    text-decoration-color: var(--accent-dark)
}
ol, ul {
    margin:var(--spacing);
}
li {
    padding-left:var(--halfspacing);
    margin:var(--halfspacing) auto;
}
li > ul {
    padding-left: var(--spacing);
    margin:auto;
    font-size:.9em;
}
li::marker {
    color: var(--accent);
}
blockquote {
    padding-left:var(--doublespacing);
    margin:var(--doublespacing);
    border-left: var(--border);
    color:var(--accent-dark)
}

hr {
    width: 100%;
    border: none;
}

img {
   vertical-align: middle;
   max-width:100%;
   border-radius: 10px;
}

/* boxes & flex */
.box {
    max-width: 500px !important;
    padding: var(--spacing);
    margin: var(--spacing) auto;
    border-radius: var(--border-radius); 
    background-color: var(--background);
}

.boxwide {
    max-width: 800px !important;
    padding: var(--spacing);
    margin: var(--spacing) auto;
    border-radius: var(--border-radius); 
    background-color: var(--background);
}

.boximg {
	max-width: 500px !important;
    padding: var(--spacing);
    margin: var(--spacing) auto;
    border-radius: var(--border-radius);  
    display: flex;
    flex-flow: column;
  align-items: center;
  justify-content: center;
}

.boxtransp1 {
	max-width: 500px !important;
    padding: var(--spacing);
    margin: var(--spacing) auto;
    border-radius: var(--border-radius);  
    display: flex;
    flex-flow: column;
  align-items: center;
  justify-content: center;
}

.boxtransp2 {
    max-width: 500px !important;
    padding: var(--spacing);
    margin: var(--spacing) auto;
    border-radius: var(--border-radius); 
}

.boxtransp3 {
    max-width: 500px !important; 
}

.flex {
    display: flex;
    flex-flow: row wrap;
    gap: var(--halfspacing) var(--spacing);
    
}

.flex > * {
    flex: 1 2 200px;
    margin:0 auto;

}

.flex2 {
    display: flex;
    flex-flow: row wrap;
    gap: var(--halfspacing) var(--spacing);
    
}

.flex2 > * {
    flex: 1;
    margin:0 auto;

}

#img2 {
    align-self: flex-start
    }


small {
    font-size: x-small;
}

.center {
    text-align: center;
}


.justify {
    text-align: justify;
}

/* dividing lines between areas */
hr::after,
nav::after,
footer::before {
    content: "\a0 \a0";
    text-align-last: justify;
    width: 50%;
    margin: var(--spacing) auto;
    display: table;
    text-decoration: underline var(--underline);
    text-decoration-thickness: .1em
}

/* headers */
h1,
h2,
h3,
h4 {
    font-family: var(--titlefont);
    text-align: center;
}

h1 {
    font-size: 3em;
    letter-spacing: 0.5rem;
    
}
   h1 a {
      text-decoration: none;
      color:var(--accent);
    }

h2 {
    font-size: 1.5em !important;
    margin: 1em auto !important;
    color: var(--accent);

}


h3 {
    color: var(--background);
    background: var(--accent)
}

h4 {
    color: var(--accent-dark);
    background: var(--accent-light);
    font-weight: normal;
}

h5 {
    font-size: 2em;
    color: var(--accent);
    line-height: normal;
    
}

h6 {
    font-size: 2em !important;
    margin: -0.5px !important;;
    color: var(--accent);

}

/* image gallery */
#gallery {
    margin: var(--doublespacing) auto;
    display: block;
    text-align: center;
    line-height: 1.2em;
    font-size: .9em;
}
#gallery.columns {
    columns: var(--minimum-img-width) var(--maximum-columns);
    gap: var(--column-gap);
}

#gallery img {
    margin: var(--spacing) auto;
    max-width: min(var(--maximum-img-width), 100%);
    display:block;
    background-color:var(--image-background)
}

#gallery img:first-of-type {
  margin-top: 0;
}

figure {
    margin: var(--spacing) auto;
    break-inside: avoid;
}

/* lightbox */
#gallery img:hover {
    border-radius: var(--border-radius);
    cursor: pointer;
    outline: var(--border)
}

#lightbox {
    border: none;
    outline: none;
}
#lightbox img {
  max-height:90vh;
  max-width:90vw;
}

::backdrop {
    backdrop-filter: blur(2px) brightness(80%);
}

#gallery:has(~ #lightbox:popover-open) {
    pointer-events: none;
}
/* makes the lightbox work on small screens, like phones */
@media only screen and (min-width: 600px) {
    #lightbox button {
        display: none;
    }
} 
@media only screen and (max-width: 600px) {
    #lightbox button {
        display: block;
        width:30px;
        height:30px;
        margin:10px auto;
    }
} 

html {
    scroll-behavior: smooth
    }


    


button {
    inline-size: fit-content;
    margin-inline: auto;
    padding-inline: var(--spacing-r);
    border: none;
    background: none;
    box-shadow: none;
    outline: none;
    font-family: roboto;
    font-weight: bold;
    font-size: 17px;
    color: var(--accent);
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none; }

.button1 {
    font-size: 2em;
    }

dialog {
    font-size: 9pt;
    line-height: 1;
    text-align: justify;
    border: none;
    border-radius: 5px;
    filter: drop-shadow(10px 10px 10px);
}

@media (pointer: coarse) and (orientation: portrait) {
    dialog {
        max-height: 80% ;
        overflow-y: scroll
    }
}
    

.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    padding: var(--spacing);
    text-align: center;
}

.div1 { grid-area: 1 / 1 / 2 / 2; }
.div2 { grid-area: 1 / 2 / 2 / 3; }
.div3 { grid-area: 1 / 3 / 2 / 4; }
.div4 { grid-area: 2 / 1 / 3 / 2; }
.div5 { grid-area: 2 / 2 / 3 / 3; }
.div6 { grid-area: 2 / 3 / 3 / 4; }
.div7 { grid-area: 3 / 1 / 4 / 2; }
.div8 { grid-area: 3 / 2 / 4 / 3; }
.div9 { grid-area: 3 / 3 / 4 / 4; }


.parent2 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr;
    column-gap: 10px;
    row-gap: 10px;
    }
    
    .div10 { grid-area: 1 / 1 / 2 / 2; }
    .div11 { grid-area: 1 / 2 / 2 / 3; }
    .div12 { grid-area: 1 / 3 / 2 / 4; }
    .div13 { grid-area: 1 / 4 / 2 / 5; }
    .div14 { grid-area: 1 / 5 / 2 / 6; }
    .div15 { grid-area: 1 / 6 / 2 / 7; }
    

.parent3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    column-gap: 0px;
    row-gap: 0px;
}

.div16 { grid-area: 1 / 1 / 2 / 2; }
.div17 { grid-area: 1 / 2 / 2 / 3; }

.rise {
    width:fit-content;
    transition: .2s ease; 
    font-size: 2em
    }
    
    .rise:hover {
    transform: translateY(-20%);
    }

    a[href^='http'] {
        padding-right: 1.25em;
      }
      
      a[href^='http']::after {
        position: absolute;
        content: '';
        display: inline-block;
        width: 1em;
        height: 1em;
        margin-left: 0.1em;
        background-size: 80%;
        background-image: url("/misc/elements/link.png");
        background-repeat: no-repeat;
        transform: translateY(0.25em);
      }