:root {
    --color-offwhite: #f4f8f6;
    --color-light: #f1daa4;
    --color-medium: #b24f59;
    --color-dark: #266033;
    --color-darker: #0e4019;
    --radius: 16px;
}

.hoverlight:hover {
    filter:
        drop-shadow(0 0 2px var(--color-light))
        drop-shadow(0 0 4px var(--color-light))
        drop-shadow(0 0 6px var(--color-light));
}

.media-log {
    background-color: var(--color-medium);
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 10px;
    margin: -5px;
}
.media-log-item {
    width: 180px;
}
.media-log-item img {
    width: 100%;
    height: auto;
}
.media-log-item .date {
    padding: 10px 0px 0px 0px;
    text-align: center;
    color: var(--color-light);
    font-size: 12px;
    font-weight: bold;
}
.media-log-item .desc {
    padding: 0px 10px 10px 10px;
    text-align: center;
    color: var(--color-light);
    font-size: 12px;
    max-height: 80px;
    overflow-y: auto;
    overflow-x: hidden;
}


.grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.grid-item {
    text-align: center;
}

.yap-td-header {
    font-weight: bold;
    font-size: 11px;
    color: var(--color-light);
    vertical-align: top;
    width: 150px;
}
.yap-td {
    font-size: 11px;
    color: var(--color-light);
    vertical-align: top;
    width: 150px;
}

.pkmn-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background-color: var(--color-medium);
    padding: 10px;
}
.pkmn {
    text-align: center;
}
.pkmn-name {
    font-weight: bold;
    margin-top: 4px;
    font-size: 10px;
}
.pkmn-desc {
    font-size: 11px;
    color: var(--color-light);
    max-height: 40px;
    overflow-y: auto;
}

.yap-td-header-dark {
    font-weight: bold;
    font-size: 11px;
    color: var(--color-dark);
    vertical-align: top;
    width: 150px;
}
.yap-td-dark {
    font-size: 11px;
    color: var(--color-dark);
    vertical-align: top;
    width: 150px;
}

.pokemon-game-box {
    position: relative;
}
.boxart-img {
    width: 150px;
    display: block;
}
.starter-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    pointer-events: none;
}

.tooltip {
    z-index: 100;
}

.tooltip-regular {
    position: relative;
    display: inline-block;
}

.tooltiptext {
    position: absolute;
    visibility: hidden;
    width: fit-content;
    background-color: var(--color-medium);
    color: var(--color-light);
    font-size: 10px;
    text-align: center;
    border-radius: 6px;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tooltip-regular:hover .tooltiptext {
    visibility: visible;
}

.tooltiptext2 {
    position: absolute;
    visibility: hidden;
    width: fit-content;
    background-color: var(--color-medium);
    color: var(--color-light);
    font-size: 10px;
    text-align: center;
    border-radius: 6px;
    z-index: 10000;
    pointer-events: none;
}

.tooltip:hover .tooltiptext2 {
    visibility: visible;
}

.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    box-sizing: border-box;
    row-gap: 10px;
}

.bordered {
    border: 10px solid transparent; /*required for border image*/
    border-image: url("../resources/borders/border14.png") 30% round;
}

.box-border {
    border: 10px solid transparent; /*required for border image*/
    border-image: url("../resources/borders/border14.png") 30% round;
    width: fit-content; /*wdith is determined by layout*/
    height: fit-content;
    margin: 10px;
}

#layout-border {
    border: 10px solid transparent; /*required for border image*/
    border-image: url("../resources/borders/border14.png") 30% round;
    width: fit-content; /*wdith is determined by layout*/
    margin: 40px auto; /*have to move margin here to have space btwn layout and top*/
}

body {
    margin: 0; /*get rid of browser auto margins*/
    font-family: "Cantarell", serif;
    font-size: 14px;
    /*background-repeat: repeat; /*repeat in both directions*/
    background-attachment: fixed; /*don't scroll bg*/
    background-position: 20% 30%;
    cursor: url(http://www.rw-designer.com/cursor-extern.php?id=130278), auto;
    /*cursor: url(http://www.rw-designer.com/cursor-extern.php?id=56537), auto*/
    /*cursor: url(http://www.rw-designer.com/cursor-extern.php?id=86776), auto*/
}

.layout {
    display: grid;
    grid-template-columns: 230px 650px 200px; /*left, center, right widths*/
    height: 75vh;
    max-height: 75vh;
    gap: 0px; /*spacing between columns*/
    margin: -5px;
    position: relative;
}

.secondary-layout {
    display: grid;
    grid-template-columns: 230px 650px;
    height: 90vh;
    gap: 0px;
    margin: -5px;
    position: relative;
}

.onebox-layout {
    display: grid;
    grid-template-columns: 650px;
    height: 90vh;
    gap: 0px;
    margin: -5px;
    position: relative;
}

#nav-sidebar {
    text-align: right;
    color:#e8d6a7;
    font-weight: bold;
}

.sidebar {
    background-image: url("../resources/tiles/tile3.png");
    background-repeat: repeat; /*repeat in both directions*/
    background-size: 50px;
    padding: 20px; /*padding between edges and content*/
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--color-light);
}

.mini-sidebar-button {
    position: relative;
}

.mini-sidebar-button img {
    width: 80px;
}

.sidebar-button {
    position: relative;
}

.sidebar-button img {
    width: 170px;
}

.mini-sidebar-button-text {
    position: absolute;
    font-size: 8px;
    top: 45%; /* center vertically */
    left: 45%; /* center horizontally */
    transform: translate(-50%, -50%);
    color: var(--color-light);
}

.sidebar-button-text {
    position: absolute;
    font-size: 15px;
    top: 45%; /* center vertically */
    left: 45%; /* center horizontally */
    transform: translate(-50%, -50%);
    color: var(--color-light);
}

.spacer {
    width: 50px;
    height: 0;
    display: inline-block;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
}

/*unrelated to .gallery; for item and then description next to it*/
.gallery-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.main {
    background-image: url("../resources/tiles/tile4.png");
    background-repeat: repeat;
    background-size: 150px;
    position: relative;
    overflow-y: auto;
    max-width: 650px;
    color: var(--color-dark);
}

.frog {
    width: 100px;
    height: auto; /*keep aspect ratio*/
}

.frog:hover {
    animation: squish 0.5s; /*play the squish animation over 0.5 seconds*/
}


.hovergrow {
    transition: transform 0.2s ease;
}

.hovergrow:hover {
    transform: scale(1.05);
}

@keyframes squish {
    0% {transform: scaleX(1); animation-timing-function: ease-in;} /*normal width at the start*/
    30% {transform: scaleX(1.2); animation-timing-function: ease-out;} /*widen a bit*/
    60% {transform: scaleX(0.9); animation-timing-function: ease-in;} /*overshoot back*/
    100% {transform: scaleX(1);} /*back to normal*/
}

.box {
    color: var(--color-light); /*text color*/
    background-color: var(--color-medium);
    padding: 20px; /*padding between edges and content*/
    width: fit-content; /*width dynamically fits content instead of being fixed*/
    margin: -5px;
}

.inner-box {
    color: var(--color-dark); /*text color*/
    background-color: var(--color-light);
    padding: 20px; /*padding between edges and content*/
    width: fit-content; /*width dynamically fits content instead of being fixed*/
    margin: 10px 0px 0px 0px; /*all margins. padding between edges and parent*/
}

.scrollable-box {
    max-height: 200px;
    overflow-y: auto; /*for scrollbar*/
    overflow-x: hidden; /*no horizontal scrollbar*/
    padding: 20px;
    background-color: var(--color-medium);
    width: fit-content;
    max-width: 180px;
    color: var(--color-light);
    margin: -5px;
    font-size: 14px;
}

.large-scrollable-box {
    max-height: 400px;
    overflow-y: auto; /*for scrollbar*/
    overflow-x: hidden; /*no horizontal scrollbar*/
    padding: 20px;
    background-color: var(--color-medium);
    width: fit-content;
    max-width: 300px;
    color: var(--color-light);
    margin: -5px;
    font-size: 14px;
}

.fit-box {
    padding: 20px;
    background-color: var(--color-medium);
    width: fit-content;
    height: fit-content;
    color: var(--color-light);
    margin: -5px;
}

.blog-box {
    padding: 20px;
    background-color: var(--color-medium);
    width: 580px;
    height: fit-content;
    color: var(--color-light);
    margin: -5px;
}

.top {
    display: flex;
    margin: -5px;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    background-color: var(--color-dark);
    padding: 10px;
    background-image: url("../resources/photo gallery/IMG_4955.JPG");
    background-position: 30% 70%;
    background-size: cover;
}

.bottomtext {
    margin: 50px 0px 0px 50px;
    color: var(--color-light);
    font-size: 11px;
}

.marquee {
    height: 90px;
    overflow: hidden; /*otherwise you can see the animation start outside*/
    background-color: var(--color-dark);
    border-radius: 0px;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: inline-block; /*without this, animation stops at the end of the marquee instead of wrapping around*/
    color: var(--color-light);
    white-space: nowrap; /*no next wrapping*/
    animation: marquee-scroll 20s linear infinite; /*loop forever*/
    padding-left: 100%; /*make it start all the way to the right offscreen*/
}

audio {
    width: 300px;
    border-radius: var(--radius);
    background-color: var(--color-dark);
    padding: 8px;
}

/*define how the animation looks*/
@keyframes marquee-scroll {
    0% {transform: translateX(0);} /*the start of the animation*/
    100% {transform: translateX(-100%);} /*the end of the animation*/
}