/* Mobile First CSS */
@import url('https://fonts.googleapis.com/css2?family=Kelly+Slab&display=swap');

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Stardew-themed scrollbar - Start */
html {
    scrollbar-width: thin;
    scrollbar-color: #D57A05 #FAE58D;
}

::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: #FAE58D;
    border-left: 3px solid #D57A05;
}

::-webkit-scrollbar-thumb {
    background-color: #D57A05;
    border-radius: 10px;
    border: 3px solid #FAE58D;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #b8650a;
}
/* Stardew-themed scrollbar - End */

/* Texts - Start */
h1,
h2,
button {
    font-family: 'Kelly Slab', cursive;
    color: #441600;
}

h1 { font-size: 4rem; }
h2 { font-size: 2rem; }

label,
p,
a,
select,
input,
textarea,
span,
legend {
    font-family: 'Kelly Slab', cursive;
    font-size: .9rem;
    color: #441600;
}

a { text-decoration: none; }

.input-style {
    width: 100%;
    padding: 5px; 
    background-color: #FEFBCC;
    border: 3px outset #D57A05;
    border-radius: 5px;
    -webkit-box-shadow: -3px 3px 1px rgba(0, 0, 0, .2);
            box-shadow: -3px 3px 1px rgba(0, 0, 0, .2);
    margin-top: 3px;
    margin-bottom: 15px;
}

input:focus,
textarea:focus { outline: none !important; }
/* Texts - End */

/* Pre Styles - Start */
.d-flex { display: -webkit-box; display: -ms-flexbox; display: flex; }
.justify-center { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
.justify-start { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; }
.justify-end { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }
.justify-around { -ms-flex-pack: distribute; justify-content: space-around; }
.justify-between { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
.justify-evenly { -webkit-box-pack: space-evenly; -ms-flex-pack: space-evenly; justify-content: space-evenly; }
.align-center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
.align-start { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
.flex-row { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; }
.flex-col { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
.flex-wrap { -ms-flex-wrap: wrap; flex-wrap: wrap; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.mb-20 { margin-bottom: 20px; }
/* Pre Styles - End */

/* Body & Main - Start */
body { background-color: #FAE58D; }

main {
    height: 100%;
    max-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-perspective: 1px;
            perspective: 1px;
    -webkit-perspective-origin: center top;
            perspective-origin: center top;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}
/* Body & Main - End */

/* Header - Start */
header {
    z-index: 9;
    display: block;
    position: fixed;
    top: 0;
    padding: 30px;
}

.logo-icon,
.menu-icon {
    height: 40px;
    cursor: pointer;
}

.dropdown-nav {
    position: fixed;
    top: 77px;
    right: 30px;
    width: 200px;
    height: 205px;
    border: 10px solid #FAE58D;
    border-radius: 10px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 20 stretch;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 20 stretch;
    background-color: #FAE58D;
    visibility: visible;
    opacity: 1;
    -webkit-transition: height 300ms, opacity 300ms ease-in-out;
    -o-transition: height 300ms, opacity 300ms ease-in-out;
    transition: height 300ms, opacity 300ms ease-in-out;
    overflow: hidden;
}

.dropdown-nav img {
    width: 30px;
    margin-right: 15px
}

.dropdown-nav a {
    font-size: 1.1rem;
    padding: 10px 12px 3px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-shadow: 0px 2px 1px #d5864f;
}

.closed {
    height: 0;
    opacity: 0;
    visibility: hidden;
}
/* Header - End */

/* Hero - Start */
#hero {
    position: relative;
    width: 100vw;
    height: 110vh;
    min-height: 760px;
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
}

.hero-bg {
    z-index: -1;
    top: 0;
    display: block;
    position: absolute;
    background-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/hero-background.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    -webkit-transform-origin: center top;
        -ms-transform-origin: center top;
            transform-origin: center top;
    -webkit-transform: translateZ(-1px) scale(2);
            transform: translateZ(-1px) scale(2);
}

#hero .title {
    position: absolute;
    top: 20vh;
    left: 0;
    right: 0;
    width: 80%;
    max-width: 500px;
    min-width: 300px;
    margin: 0 auto;
}

#hero .hero-img {
    position: absolute;
    bottom: 0;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center bottom;
    object-position: center bottom;
    width: 100%;
    height: 100%;
    max-height: 35%;
} 
/* Hero - End */

/* Locations - Start */
#locations,
#villagers {
    background-color: #FAE58D;
    width: 100vw;
    height: 100%;
    padding: 50px 30px;
}

#locations h2,
#villagers h2 {
    text-align: center;
}

#locations .location-box {
    position: relative;
    width: 100%;
    min-width: 155px;
    -ms-flex-preferred-size: 46%;
        flex-basis: 46%;
    border: 10px solid #FAE58D;
    border-radius: 10px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 13 stretch;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 13 stretch;
    margin: 5px;
    cursor: pointer;
    -webkit-transition: -webkit-transform 150ms;
    transition: transform 150ms;
}

#locations .location-box:hover,
#locations .location-box:focus-visible {
    -webkit-transform: scale(1.03);
        -ms-transform: scale(1.03);
            transform: scale(1.03);
}

.locations-subheading {
    font-family: 'Kelly Slab', cursive;
    text-align: center;
    color: #441600;
    font-size: 1.2rem;
    margin: 30px 0 15px;
}

#locations .location-box--mini {
    position: static;
    width: auto;
    min-width: 100px;
    -ms-flex-preferred-size: auto;
        flex-basis: auto;
    background-color: #FAE58D;
    padding: 10px 14px 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

#locations .location-box--mini .location-box__icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 6px;
}

#locations .location-box--mini img {
    width: 64px;
    height: 64px;
    -o-object-fit: contain;
    object-fit: contain;
    margin-bottom: 6px;
}

/* Extra specificity (two classes, not one) needed to beat the
   #locations .location-box p rule further down. Same specificity
   would otherwise fall back to source order and lose, leaving this
   label position:absolute with no positioned ancestor (it'd fly up
   to the top of the page since .location-box--mini is position:static). */
#locations .location-box.location-box--mini p {
    position: static;
    border: none;
    border-image: none;
    padding: 0;
    width: auto;
    max-width: none;
    font-size: 0.8rem;
}

.pill-btn {
    display: block;
    margin: 30px auto 0;
    background-color: #FEFBCC;
    color: #441600;
    border: 4px outset #D57A05;
    border-radius: 20px;
    -webkit-box-shadow: -3px 3px 1px rgba(0, 0, 0, .2);
            box-shadow: -3px 3px 1px rgba(0, 0, 0, .2);
    padding: 10px 22px;
    font-size: 1rem;
    cursor: pointer;
    -webkit-transition: -webkit-transform 150ms;
    transition: transform 150ms;
}

.pill-btn:hover,
.pill-btn:focus-visible {
    -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
            transform: scale(1.05);
}

#locations div img,
#villagers div img {
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center center;
    object-position: center center;
    width: 100%;
    height: 100%;
}

#locations div:nth-child(1) img {
    -o-object-position: left center;
    object-position: left center;
}

#locations .location-box p,
.border p {
    position: absolute;
    left: 0;
    right: 0;
    display: block;
    z-index: 2;
    border: 6px solid #FAE58D;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/scrollborder.png) 24 repeat;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/scrollborder.png) 24 fill repeat;
    border-image-width: 24px;
    border-image-outset: 6px;
    padding: 0px 18px 0px 18px;
    text-shadow: 0px 2px 1px #d5864f;
    text-align: center;
}

#locations .location-box p {
    bottom: 10px;
    margin: 0 auto;
    width: 87%;
    max-width: 165px;
}

.border p {
    top: 0;
    bottom: 0;
    margin: auto;
    height: 34px;
    font-size: 1.5rem;
    width: 200px;

}
/* Locations - End */

/* Map - Start */
#map {
    z-index: -2;
    display: block;
    background-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/pelican-town.png);
    background-size: cover;
    background-position: center center;
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    -webkit-transform-origin: center top;
        -ms-transform-origin: center top;
            transform-origin: center top;
    -webkit-transform: translateZ(-1px) scale(2);
            transform: translateZ(-1px) scale(2);
    
}

.border {
    position: absolute;
    border: 10px solid #FAE58D;
    border-radius: 10px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 15 stretch;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 15 stretch;
    width: 101vw;
    height: 102vh;
    min-height: 707px;
    display: block;
    left: -2px;
    right: 0;
    margin-top: -3px;
}
/* Map - End */

/* Villagers - Start */
.villagers-hint {
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

#villagers .villager-box {
    width: 100%;
    max-width: 145px;
    min-width: 90px;
    -ms-flex-preferred-size: 30%;
        flex-basis: 30%;
    margin: 5px 5px 30px;
    cursor: pointer;
    -webkit-transition: -webkit-transform 150ms;
    transition: transform 150ms;
}

#villagers .villager-box:hover,
#villagers .villager-box:focus-visible {
    -webkit-transform: scale(1.06);
        -ms-transform: scale(1.06);
            transform: scale(1.06);
}

#villagers .villager-box p {
    display: block;
    position: relative;
    z-index: 1;
    color: #801701;
    background-color: #FEFBCC;
    border: 6px solid #FAE58D;
    border-radius: 10px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 13 stretch;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 13 stretch;
    padding: 5px;
    text-align: center;
    margin: -20px auto 0;
    text-shadow: 0px 2px 1px #d5864f;
}
/* Villagers - End */

/* Arcade - Start */
#arcade {
    position: relative;
    text-align: center;
    padding: 60px 30px;
    background-color: #241019;
    background-image: -webkit-linear-gradient(rgba(20, 8, 16, 0.72), rgba(20, 8, 16, 0.72)), url(assets/game/arcade-room-bg.png);
    background-image: linear-gradient(rgba(20, 8, 16, 0.72), rgba(20, 8, 16, 0.72)), url(assets/game/arcade-room-bg.png);
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

#arcade h2 {
    color: #FEFBCC;
    text-shadow: 0px 2px 1px rgba(0, 0, 0, 0.5);
}

#arcade .villagers-hint {
    color: #FEFBCC;
}

.arcade-cabinet {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border: 14px solid #FAE58D;
    border-radius: 14px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 22 stretch;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 22 stretch;
    padding: 6px;
    background-color: #222;
    -webkit-box-shadow: 0 8px 0 rgba(68, 22, 0, 0.3);
            box-shadow: 0 8px 0 rgba(68, 22, 0, 0.3);
}

#gameCanvas,
#fishingCanvas,
#prairieCanvas,
#rhythmCanvas {
    display: block;
    max-width: 100%;
    height: auto;
    background-color: #cdeaf0;
    cursor: pointer;
}

#gameCanvas:focus,
#fishingCanvas:focus,
#prairieCanvas:focus,
#rhythmCanvas:focus {
    outline: 3px solid #D57A05;
}

/* Fishing catch bar - exact port of the reference implementation's DOM,
   CSS, and physics. Overlaid on the (still-interactive) canvas during the
   catching phase only; pointer-events is off so clicks/keys keep going to
   the canvas underneath, which is what actually tracks input/session state.
   The only real adaptation: a real <img> fish icon in place of the
   reference's Font Awesome glyph, which wasn't loading there. */
.fishing-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    display: none;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.fishing-wrapper.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.bamboo-wrapper {
    height: 400px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.bamboo-col {
    height: 400px;
    width: 6px;
    background: -webkit-linear-gradient(0deg, rgb(195, 134, 41) 0%, rgb(255, 184, 23) 100%);
    background: linear-gradient(90deg, rgb(195, 134, 41) 0%, rgb(255, 184, 23) 100%);
    border: 2px solid #ad7b20;
    border-radius: 4px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-evenly;
    overflow: visible;
    z-index: 10;
}

.bamboo-segment {
    height: 0;
    border-top: 1px solid #ffd385;
    border-bottom: 3px solid #ad7b20;
    width: 14px;
    margin-left: -4px;
    border-radius: 4px;
}

.fishing-slide-wrapper {
    width: 20px;
    height: 400px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    background: -webkit-linear-gradient(90deg, #017bf9 0%, #c6e8ff 100%);
    background: linear-gradient(0deg, #017bf9 0%, #c6e8ff 100%);
    position: relative;
    overflow: hidden;
}

.fishing-slide {
    height: 80px;
    width: 16px;
    background: #85ff00;
    border: 2px solid #008804;
    border-top: 2px solid #d3ffce;
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    opacity: 0.8;
}

.bamboo-row {
    background: -webkit-linear-gradient(90deg, rgb(195, 134, 41) 0%, rgb(255, 184, 23) 100%);
    background: linear-gradient(0deg, rgb(195, 134, 41) 0%, rgb(255, 184, 23) 100%);
    border-top: 1px solid #ad7b20;
    border-bottom: 1px solid #ad7b20;
    height: 5px;
    width: 24px;
    position: absolute;
    z-index: 5;
    left: -2px;
}

.bamboo-row:first-child {
    top: -2px;
}

.bamboo-row:last-child {
    bottom: -2px;
}

.fishing-progress-wrapper {
    height: 400px;
    width: 8px;
    background: -webkit-linear-gradient(0deg, rgba(159, 119, 62, 1) 0%, rgba(103, 58, 35, 1) 100%);
    background: linear-gradient(90deg, rgba(159, 119, 62, 1) 0%, rgba(103, 58, 35, 1) 100%);
    border: 2px solid #e09f2a;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    margin-left: 12px;
}

.fishing-progress-bar {
    width: 100%;
    height: 0;
    background: rgb(0, 255, 0);
}

.fishing-pole-wrapper {
    height: 400px;
    margin-right: 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    position: relative;
}

.fishing-pole {
    height: 85%;
    width: 2px;
    background: #ddd;
    border: 2px solid #737373;
    border-bottom: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-evenly;
}

.fishing-pole-handle {
    width: 8px;
    height: 15%;
    background: -webkit-linear-gradient(0deg, rgb(136, 93, 28) 0%, rgb(226, 161, 14) 100%);
    background: linear-gradient(90deg, rgb(136, 93, 28) 0%, rgb(226, 161, 14) 100%);
    border: 2px solid #966c20;
    border-radius: 4px;
}

.fishing-pole-reel {
    width: 22px;
    height: 22px;
    position: absolute;
    bottom: 12%;
    right: 0;
    border-radius: 50%;
    background: -webkit-linear-gradient(90deg, rgb(169, 107, 14) 0%, rgb(255, 186, 29) 100%);
    background: linear-gradient(0deg, rgb(169, 107, 14) 0%, rgb(255, 186, 29) 100%);
    border: 2px solid #9c7631;
}

.fishing-pole-segment {
    border-bottom: 2px solid #000;
    width: 8px;
}

.fishing-pole-reel-handle {
    width: 4px;
    height: 16px;
    background: #909090;
    border: 1px solid #737373;
    -webkit-transform-origin: 2px 0;
        -ms-transform-origin: 2px 0;
            transform-origin: 2px 0;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
}

.fishing-icon {
    -webkit-transform: rotate(-60deg);
        -ms-transform: rotate(-60deg);
            transform: rotate(-60deg);
    width: 24px;
    height: 24px;
    -o-object-fit: contain;
    object-fit: contain;
    position: absolute;
    bottom: 10px;
    left: -3px;
}

@-webkit-keyframes rotating {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
@keyframes rotating {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.rotating {
    -webkit-animation: rotating 0.3s linear infinite;
            animation: rotating 0.3s linear infinite;
}

@-webkit-keyframes strobing {
    50% { opacity: 0.5; }
}
@keyframes strobing {
    50% { opacity: 0.5; }
}
.strobing {
    -webkit-animation: strobing 1.0s ease-in-out infinite;
            animation: strobing 1.0s ease-in-out infinite;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(-60deg); }
    10% { transform: translate(-1px, -2px) rotate(-60deg); }
    20% { transform: translate(-2px, 0px) rotate(-60deg); }
    30% { transform: translate(2px, 2px) rotate(-60deg); }
    40% { transform: translate(1px, -1px) rotate(-60deg); }
    50% { transform: translate(-1px, 2px) rotate(-60deg); }
    60% { transform: translate(-2px, 1px) rotate(-60deg); }
    70% { transform: translate(2px, 1px) rotate(-60deg); }
    80% { transform: translate(-1px, -1px) rotate(-60deg); }
    90% { transform: translate(1px, 2px) rotate(-60deg); }
    100% { transform: translate(1px, -2px) rotate(-60deg); }
}
.shake {
    -webkit-animation: shake 0.8s infinite;
            animation: shake 0.8s infinite;
}

.arcade-tile {
    width: 170px;
    margin: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background-color: #FAE58D;
    border: 10px solid #FAE58D;
    border-radius: 10px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 15 stretch;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 15 stretch;
    -webkit-transition: -webkit-transform 150ms;
    transition: transform 150ms;
}

.arcade-tile:hover,
.arcade-tile:focus-visible {
    -webkit-transform: scale(1.06);
        -ms-transform: scale(1.06);
            transform: scale(1.06);
}

.arcade-tile img {
    width: 100%;
    height: 100px;
    -o-object-fit: contain;
    object-fit: contain;
    background-color: #FEFBCC;
    border-radius: 6px;
    padding: 4px;
}

.arcade-tile p {
    margin-top: 8px;
    font-family: 'Kelly Slab', cursive;
    color: #441600;
}

.arcade-modal__box {
    max-width: 780px;
    text-align: center;
}

.arcade-modal__title {
    font-size: 1.6rem;
    color: #441600;
    text-shadow: 0px 2px 1px #d5864f;
    margin-bottom: 4px;
}
/* Arcade - End */

/* Gift Guide Modal - Start */
.hidden {
    display: none !important;
}

.gift-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 20px;
}

.gift-modal.closed {
    display: none;
}

.gift-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(68, 22, 0, 0.55);
}

@-webkit-keyframes gift-modal-pop {
    0%   { opacity: 0; -webkit-transform: scale(0.8) rotate(-2deg); }
    70%  { opacity: 1; -webkit-transform: scale(1.03) rotate(0.5deg); }
    100% { opacity: 1; -webkit-transform: scale(1) rotate(0); }
}

@keyframes gift-modal-pop {
    0%   { opacity: 0; transform: scale(0.8) rotate(-2deg); }
    70%  { opacity: 1; transform: scale(1.03) rotate(0.5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

.gift-modal__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    background-color: #FAE58D;
    border: 12px solid #FAE58D;
    border-radius: 10px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 20 stretch;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 20 stretch;
    padding: 25px 30px;
    -webkit-animation: gift-modal-pop 280ms cubic-bezier(.34, 1.56, .64, 1);
            animation: gift-modal-pop 280ms cubic-bezier(.34, 1.56, .64, 1);
}

.gift-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 34px;
    height: 34px;
    background-color: #FEFBCC;
    border: 3px solid #FAE58D;
    border-radius: 50%;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 8 stretch;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 8 stretch;
    font-size: 1.3rem;
    line-height: 1;
    color: #801701;
    cursor: pointer;
    font-family: 'Kelly Slab', cursive;
    -webkit-transition: -webkit-transform 150ms;
    transition: transform 150ms;
}

.gift-modal__close:hover {
    -webkit-transform: scale(1.1) rotate(90deg);
        -ms-transform: scale(1.1) rotate(90deg);
            transform: scale(1.1) rotate(90deg);
}

.gift-modal__header {
    text-align: center;
    margin-bottom: 15px;
}

.gift-modal__box--profile {
    max-width: 960px;
    max-height: 88vh;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.profile-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 26px;
    text-align: left;
    min-height: 0;
}

.profile-card__left {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: 210px;
    padding-top: 12px;
}

.gift-modal__portrait-frame {
    position: relative;
    width: 190px;
    height: 190px;
    overflow: hidden;
    border: 14px solid #FAE58D;
    border-radius: 8px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 20 stretch;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 20 stretch;
    background-color: #FEFBCC;
    -webkit-box-shadow: 0 4px 0 rgba(68, 22, 0, 0.25);
            box-shadow: 0 4px 0 rgba(68, 22, 0, 0.25);
}

.profile-card__left .gift-modal__portrait-frame img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    border: none;
    border-radius: 0;
    -webkit-box-shadow: none;
            box-shadow: none;
    margin-bottom: 0;
}

.profile-card__left .gift-modal__name-plaque {
    margin-top: 12px;
    width: 100%;
    font-size: 1.2rem;
    text-align: center;
    color: #441600;
    background-color: #FEFBCC;
    border: 4px solid #FAE58D;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/scrollborder.png) 16 fill repeat;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/scrollborder.png) 16 fill repeat;
    border-image-width: 16px;
    padding: 4px 6px;
    text-shadow: 0px 2px 1px #d5864f;
}

.profile-card__birthday-label {
    margin-top: 18px;
    font-size: 0.95rem;
    color: #8a5a00;
    font-style: italic;
}

.profile-card__birthday-boxes {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.profile-card__box {
    display: block;
    background-color: #FEFBCC;
    border: 3px outset #D57A05;
    border-radius: 5px;
    -webkit-box-shadow: -2px 2px 1px rgba(0, 0, 0, .2);
            box-shadow: -2px 2px 1px rgba(0, 0, 0, .2);
    padding: 6px 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #441600;
    text-align: center;
}

.profile-card__right {
    min-width: 0;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    overflow-y: auto;
    max-height: calc(88vh - 100px);
    padding-right: 6px;
}

.profile-card__section-label {
    font-family: 'Kelly Slab', cursive;
    font-size: 1.2rem;
    color: #441600;
    background-color: #FEFBCC;
    border: 5px solid #FAE58D;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/scrollborder.png) 20 fill repeat;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/scrollborder.png) 20 fill repeat;
    border-image-width: 20px;
    padding: 5px 14px;
    text-align: center;
    text-shadow: 0px 2px 1px #d5864f;
    margin-bottom: 12px;
}

.profile-card__bio {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    color: #441600;
    font-size: 0.95rem;
    line-height: 1.6;
}

.profile-card__bio li {
    margin-bottom: 4px;
}

.profile-card__bio li::before {
    content: "✳ ";
    color: #8a5a00;
}

.gift-modal__header img {
    width: 90px;
    height: 90px;
    -o-object-fit: cover;
    object-fit: cover;
    border: 6px solid #FEFBCC;
    border-radius: 50%;
    background-color: #FEFBCC;
    -webkit-box-shadow: 0 4px 0 rgba(68, 22, 0, 0.25);
            box-shadow: 0 4px 0 rgba(68, 22, 0, 0.25);
    margin-bottom: 8px;
}

.gift-modal__header h3 {
    font-size: 1.6rem;
    color: #441600;
    text-shadow: 0px 2px 1px #d5864f;
}

.gift-modal__birthday {
    font-style: italic;
    color: #8a5a00;
    margin-top: 2px;
}

.gift-modal__birthday::before {
    content: "🎂 ";
}

.gift-modal__search {
    position: relative;
    max-width: 320px;
    margin: 0 auto 15px;
}

.gift-modal__search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    font-size: 0.9rem;
    pointer-events: none;
}

.gift-modal__search input {
    width: 100%;
    background-color: #FEFBCC;
    border: 4px outset #D57A05;
    border-radius: 20px;
    -webkit-box-shadow: -3px 3px 1px rgba(0, 0, 0, .2);
            box-shadow: -3px 3px 1px rgba(0, 0, 0, .2);
    padding: 8px 14px 8px 32px;
    color: #441600;
}

.gift-modal__search input:focus {
    outline: none;
}

.gift-modal__section {
    margin-top: 18px;
}

.gift-modal__section h4 {
    font-family: 'Kelly Slab', cursive;
    font-size: 1.1rem;
    color: #441600;
    background-color: #FEFBCC;
    border: 5px solid #FAE58D;
    border-radius: 8px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/scrollborder.png) 20 fill repeat;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/scrollborder.png) 20 fill repeat;
    border-image-width: 20px;
    padding: 4px 14px;
    text-align: center;
    text-shadow: 0px 2px 1px #d5864f;
}

.gift-modal__heart-icon {
    width: 20px;
    height: 20px;
    -o-object-fit: contain;
    object-fit: contain;
    vertical-align: -4px;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: pixelated;
}

.gift-modal__section--loves h4 {
    color: #a3143c;
    text-shadow: 0px 2px 1px #e7a5b8;
}

.gift-modal__section--likes h4 {
    color: #8a5a00;
    text-shadow: 0px 2px 1px #f0cf8a;
}

.gift-list__empty {
    text-align: center;
    font-style: italic;
    color: #801701;
    margin-top: 10px;
}

.gift-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
}

.gift-list__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: 80px;
    text-align: center;
    -webkit-transition: -webkit-transform 150ms;
    transition: transform 150ms;
}

.gift-list__item:hover {
    -webkit-transform: scale(1.08);
        -ms-transform: scale(1.08);
            transform: scale(1.08);
}

.gift-list__item img {
    width: 46px;
    height: 46px;
    -o-object-fit: contain;
    object-fit: contain;
    background-color: #FEFBCC;
    border: 3px solid #FEFBCC;
    border-radius: 10px;
    -webkit-box-shadow: 0 3px 0 rgba(68, 22, 0, 0.2);
            box-shadow: 0 3px 0 rgba(68, 22, 0, 0.2);
    margin-bottom: 4px;
}

.gift-list__item span {
    font-size: 0.72rem;
    line-height: 1.15;
}

@media only screen and (min-width: 700px) {
    .gift-list__item {
        width: 84px;
    }
}
/* Gift Guide Modal - End */

/* Location Info Modal - Start */
.location-modal__box {
    max-width: 480px;
    text-align: center;
}

.location-modal__box .gift-modal__header img {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    -o-object-fit: cover;
    object-fit: cover;
}

.location-modal__icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: 110px;
    height: 110px;
    margin: 0 auto;
    font-size: 3.2rem;
    background-color: #FEFBCC;
    border: 6px solid #FEFBCC;
    border-radius: 50%;
    -webkit-box-shadow: 0 4px 0 rgba(68, 22, 0, 0.25);
            box-shadow: 0 4px 0 rgba(68, 22, 0, 0.25);
}

.location-modal__npc {
    font-style: italic;
    color: #8a5a00;
    margin-top: 2px;
}

.location-modal__npc::before {
    content: "🏠 ";
}

.location-modal__description {
    color: #441600;
    line-height: 1.5;
    background-color: #FEFBCC;
    border: 5px solid #FAE58D;
    border-radius: 8px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/scrollborder.png) 20 fill repeat;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/scrollborder.png) 20 fill repeat;
    border-image-width: 20px;
    padding: 14px 18px;
    margin-top: 16px;
    text-align: left;
}

.explore-modal__box {
    max-width: 560px;
    text-align: center;
}

.explore-modal__subtitle {
    font-style: italic;
    color: #8a5a00;
    margin-top: 2px;
}

.explore-list {
    list-style: none;
    margin-top: 16px;
    padding: 0;
    text-align: left;
}

.explore-list li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 12px;
    background-color: #FEFBCC;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.explore-list__icon {
    font-size: 1.6rem;
    line-height: 1.3;
}

.explore-list li strong {
    display: block;
    color: #441600;
    margin-bottom: 2px;
}

.explore-list li p {
    color: #441600;
    font-size: 0.85rem;
    line-height: 1.35;
}
/* Location Info Modal - End */

/* Contact - Start */
#contact {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 20px;
    background-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/section-cover.png);
    background-size: cover;
    background-position: center center;
    position: relative;
    width: 100vw;
    height: 100%;
    padding: 30px;
}

.trivia-card {
    border: 10px solid #FAE58D;
    border-radius: 10px;
    -o-border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 15 stretch;
    border-image: url(https://res.cloudinary.com/dqfgwgif9/image/upload/v1645661048/stardew-valley/border.png) 15 stretch;
    width: 100%;
    min-width: 300px;
    max-width: 500px;
    background-color: #FAE58D;
    padding: 30px;
    margin: 20px 10px;
    text-align: center;
}

.trivia-card__text {
    min-height: 4.5em;
    line-height: 1.5;
    color: #441600;
}

/* Contact - End */

/* Footer - Start */
#footerStyle > div > div > a > img {
    height: 30px;
    margin: 0 3px;
}

#footerStyle { padding: 30px 50px; }
#footerStyle > div > img:nth-child(1) { width: 170px; }
#footerStyle > div > img:nth-child(2) { width: 250px; }
/* Footer - End */

/* Responsive - Start */
@media only screen and (min-width: 1015px) {
    /* Hero */
    #hero { min-height: 820px; }
    #hero .title { top: 24vh; }

    #hero .hero-img {
        height: auto;
        max-height: none;
    }

    /* Locations & Villagers */
    #locations,
    #villagers { padding: 70px 30px; }

    #locations h2,
    #villagers h2 { font-size: 2rem; }

    #locations .location-box:not(.location-box--mini) {
        -ms-flex-preferred-size: 23.2%;
            flex-basis: 23.2%;
    }

    #locations .location-box:not(.location-box--mini):nth-child(1) {
        -ms-flex-preferred-size: 55%;
            flex-basis: 55%;
    }

    #locations .location-box:not(.location-box--mini):nth-child(2) {
        -ms-flex-preferred-size: 40%;
            flex-basis: 40%;
    }

    #villagers .villager-box {
        max-width: none;
        -ms-flex-preferred-size: 15%;
            flex-basis: 15%;
    }

    /* Map */
    #map {
        width: 90vw;
        margin: 0 auto;
    }
    
    .border {
        width: 91vw;
        margin: 0 auto;
        height: 101vh;
        display: block;
        left: 0;
        right: 0;
    }

    /* Footer */
    #footerStyle,
    #footerStyle > div {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }

    #footerStyle {
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }

    #footerStyle > div:nth-child(1) > img,
    #footerStyle > div:nth-child(2) > div {
        margin-bottom: 0;
    }

    #footerStyle > div:nth-child(1) > img:nth-child(1) {
        margin-right: 15px;
        width: 150px;
    }

    #footerStyle > div:nth-child(1) > img:nth-child(2) {
        width: 210px;
        margin-top: 10px;
    }

    #footerStyle > div:nth-child(2) > a > img {
        height: 35px;
        margin-left: 15px;
    }
}

@media only screen and (min-width: 1500px) {
    /* Hero */
    #hero .title { max-width: 550px; }
}


@media only screen and (max-width: 640px) {
    /* Villager profile card - stack portrait above bio/gifts instead of side-by-side */
    .gift-modal { padding: 12px; }

    .gift-modal__box {
        padding: 18px 16px;
        max-height: 92vh;
    }

    .gift-modal__box--profile {
        max-width: 100%;
        max-height: 94vh;
    }

    .profile-card {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        gap: 14px;
    }

    .profile-card__left {
        width: 100%;
        max-width: 220px;
        padding-top: 0;
    }

    .gift-modal__portrait-frame {
        width: 140px;
        height: 140px;
    }

    .profile-card__right {
        width: 100%;
        max-height: calc(94vh - 260px);
        padding-right: 0;
    }

    /* Arcade */
    .arcade-tile {
        width: 130px;
        margin: 6px;
    }

    .arcade-tile img {
        height: 80px;
    }

    .arcade-modal__box {
        padding: 16px 12px;
    }

    /* Contact card - let it shrink below its desktop min-width instead of overflowing */
    .trivia-card {
        min-width: 0;
    }
}

@media only screen and (max-width: 390px) {
    /* Locations */
    #locations .location-box {
        flex-basis: 100%;
        height: 280px;
        min-width: auto;
    }
}
/* Responsive - End */