@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda+SC:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Homemade+Apple&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

*, html{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #931111 #ffffff !important;
}

::selection {
    background: #ffffff;
    color: #931111;
}

::-moz-selection {
    background: #ffffff;
    color: #931111;
}

::-webkit-selection {
    background: #ffffff;
    color: #931111;
}

body{
    overflow-x: scroll;
    overflow-y: scroll;
    background: url('assets/header-background.png');
    color: #766164;
}

main{
    width: 100vw;
    margin: 0 auto;
}

grid, home, photos {
    display: block;
}

grid {
    margin: 10em auto 1em;
    display: flex;
    gap: 2em;
    width: max-content;     
    min-width: 100vw;     
    padding: 2em;
    background: url('assets/grid-bg.png');
    border-top: 10px solid #fff;
    border-bottom: 10px solid #fff;
}

home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

photos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

photos img{
    width: 12em;
    height: 12em;
    margin-top: 10px;
    border: 0.5em solid #fff;
}

.blurb{ 
    display: none;
    text-align: center;
    order: 1;
    width: 100%;
    background: #fff;
    padding: 1em;
    font: normal 0.7em/140% 'Inconsolata', monospace;
}

label img:hover{
    filter: sepia(0.9);
}

.radiobutton:checked + label, label:hover{
    font-style: italic;
    font-weight: bold;
	cursor: pointer;
}

.radiobutton {
	display: none;
}

.radiobutton:checked + label + .blurb {
    display: block;
}

label{
    display: block;
}

h1{
position: fixed;
  width: 100vw;
  margin: 0 auto;
  top: 0;
  text-align: center;
  font: normal 2.5em 'Homemade Apple';
  text-transform: lowercase;
  color: #931111;
  text-shadow: 1px 1px 0 #fff;
  padding: 1em 0 0;
  background: url('assets/header-background.png');
}

h1 span{
    background: #fff;
    line-height: 30px;
    display: inline-block;
    border-radius: 20px 0px;
    box-shadow: 3px 3px 0 #ad1d1d;
}

reset{
    position: fixed;
    top: 5em;
    text-align: center;
    z-index: 10;
 left: 50%;
 transform: translateX(-50%);
  font-size: 1.5em;
  color: #931111;
}

reset label{
    background: #fff;
    padding: 0 10px;
    border-radius: 40px;
    box-shadow: 3px 3px 0 #ad1d1d;
    width: fit-content;
}

reset .radiobutton:checked + label, reset label:hover{
    font-style: normal;
    font-weight: bold;
    cursor: pointer;
    background: none!important;
    box-shadow: none!important;
}

footer{
    position: fixed;
    width: 100vw;
    margin: 0 auto;
    bottom: 0;
    text-align: center;
    font: normal 1.2em 'Homemade Apple';
    text-transform: lowercase;
    text-shadow: 1px 1px 0 #f699ae;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75px;
    background: url('assets/header-background.png');
}

footer a:link, footer a:visited{
    color: #931111;
    text-decoration: none;
    border-radius: 0 20px;
    padding: 0 10px;
    display: block;
    text-decoration: underline wavy;
}

footer a:hover, footer a:active{
    text-decoration: underline wavy;
    background: #fff;
    box-shadow: 3px 3px 0 #ad1d1d;
}

footer a img{
    vertical-align: middle;
}

.blurb h2{
    font: normal 1.2em 'Bodoni Moda SC';
    letter-spacing: 2px;
    color: #b71414;
}

/* =========================
   LARGE DESKTOPS (1440px+)
   ========================= */
@media (min-width: 1440px) {
    photos img {
        width: 13em;
        height: 13em;
    }

    h1 {
        font-size: 2.7em;
    }
}

/* =========================
   LAPTOPS / SMALL DESKTOPS
   ========================= */
@media (max-width: 1439px) and (min-width: 1024px) {
    grid {
        gap: 1.75em;
        padding: 1.75em;
    }

    photos img {
        width: 11.5em;
        height: 11.5em;
    }
}

/* =========================
   TABLETS (768px–1023px)
   ========================= */
@media (max-width: 1023px) {
    body {
        overflow-x: hidden;
    }

    h1,
    footer {
        position: static;
    }

    h1 {
        font-size: 2em;
        padding-top: 0.75em;
    }

    reset {
        position: static;
        transform: none;
        margin: 1em auto;
        display: flex; 
        justify-content: center;
        width: 100%;
    }

    grid {
        flex-direction: column;
        width: 100%;
        min-width: 0;
        margin: 2em 0 1em;
        padding: 1.5em;
        align-items: center;
    }

    home {
        width: 100%;
        max-width: 500px;
    }

    photos {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    photos img {
        width: 45%;
        height: auto;
    }

    .blurb {
        font-size: 0.75em;
    }
}

/* =========================
   LARGE PHONES (481px–767px)
   ========================= */
@media (max-width: 767px) {
    h1 {
        font-size: 1.7em;
    }

    h1 span {
        line-height: 22px;
        border-radius: 14px 0;
        box-shadow: 2px 2px 0 #ad1d1d;
    }

    grid {
        padding: 1em;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }

    photos img {
        width: 48%;
        border-width: 0.35em;
    }

    reset {
        font-size: 1.15em;
        margin: 1em auto;
    }

    reset label {
        padding: 0 12px;
        border-radius: 30px;
        box-shadow: 2px 2px 0 #ad1d1d;
    }

    footer {
        font-size: 1em;
        min-height: 55px;
    }
}

/* =========================
   SMALL PHONES (≤480px)
   ========================= */
@media (max-width: 480px) {
    h1 {
        font-size: 1.4em;
        padding-top: 0.5em;
    }

        reset {
        margin: 0.75em auto;
    }

    reset label {
        padding: 0 14px;
        border-radius: 22px;
        box-shadow: 1px 1px 0 #ad1d1d;
    }

    grid {
        padding: 0.75em;
        gap: 1em;
    }

    home {
        gap: 0.5em;
    }

    photos {
        flex-direction: column;
    }

    photos img {
        width: 100%;
        border-width: 0.3em;
    }

    .blurb {
        font-size: 0.8em;
        padding: 0.75em;
    }

    footer {
        font-size: 0.95em;
        padding: 0.5em 0;
    }
}
