/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
/*MIT License

Copyright (c) 2024 Colin Wren

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.*/ 
body {
  background-color: beige;
  color: black;
  font-family: 'Pokemon Fire Red';
  font-size: 64px;
}
@font-face {
    font-family: 'Pokemon Fire Red';
    src: url('Pokemon-Fire-Red.woff2') format('woff2'),
        url('Pokemon-Fire-Red.woff') format('woff');
    font-weight: normal;
    font-style: normal; 
    font-display: swap;
    
}

area {
	cursor: pointer;
}
a > * {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  transition: fill 0.2s, stroke 0.2s;
}
a > *:hover {
  fill: rgba(255, 0, 0, 0.25);
  stroke: Red;
}
.link { color: #FF0000;  display: inline-flex;
  align-items: center;} /* CSS link color (red) */
.link:hover { color: #ff0000; text-shadow: 4px 4px 0 #636363; display: inline-flex;      /* keep triangle + text inline */
  align-items: center;       /* vertically align */
  position: relative;
}

.link::before {
  content: "";
  display: inline-block;
  margin-left: 0.2em;  position: relative;
   margin-right: 0.2em;  position: relative;
  top: 0.2em;

  /* Triangle made from borders */
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  border-left: 0.7em solid black;

  opacity: 0;                /* hidden by default */
  transform: scaleX(0);      /* collapsed */
}

.link:hover::before,
.link:focus-visible::before {
  opacity: 1;                /* show on hover/focus */
  transform: scaleX(1);      /* expand to normal size */
}
}
  
  image-rendering: pixelated;
   } /* CSS link hover (green) */
.item-screen {
    width: 960px;
    height: 440px;
    padding-top: 4px;
    background: repeating-linear-gradient(
        0deg, 
        #d68c73,
        #d68c73 4px,
        #ffad94 4px,
        #ffad94 8px
    );
}

.bag {
    margin-left: 12px;
    margin-right: 4px;
    margin-bottom: 8px;
    height: 436px;
    background-image: url("img/ui-background.png"); background-repeat: no-repeat;
    display: grid;
    grid-template-columns: 316px 568px;
    gap: 60px;
    timeline-scope: --item-list-scroll-timeline;
}

.bag-section-image {
    height: 276px;
    width: 316px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 44px;
}

.bag-section-image::after {
    height: 256px;
    width: 256px;
    content: '';
    display: block;
    position: absolute;
    background-image: url('img/key-items.png'); background-repeat: no-repeat;
    animation: item-bag-image linear;
    animation-timeline: --item-list-scroll-timeline;
}

.bag-section-image img {
    width: 232px;
}

.bag-section-title {
    padding-left: 24px;
    padding-right: 16px;
    padding-top: 28px;
    width: 280px;
    height: 98px;
    text-align: center;
    color: #ffffff;
    text-shadow: 4px 4px 0 #636363;
}
.bag-section-title::before {
    content: 'KEY ITEMS';
    animation: item-bag-title linear;
    animation-timeline: --item-list-scroll-timeline;
}

.item-list {
    margin-top: 32px;
    color: #606060;
    text-shadow: 4px 4px 0 #d0d0c8;
    height: 364px;
    overflow-y: scroll;
    width: 540px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-timeline: --item-list-scroll-timeline y;
}
.item-list::-webkit-scrollbar {
    display: none;
}

.item-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid; 
    grid-auto-rows: 64px; 
    grid-template-columns: 1fr; 
    gap: 8px 0px; 
    width: 504px;
}

.item-list li::after {
    display: block;
    height: 8px;
    width: 504px;
    content: '';
    background: repeating-linear-gradient(to right, #efe7ad, #efe7ad 24px, #efe7ad 24px,#ffffce 24px, #ffffce 32px);
}

@keyframes item-bag-image {
    0% {
        background-image: url('img/items.png');
    }
    45% {
        background-image: url('img/items.png');
    }
    46% {
        background-image: url('img/pokeballs.png');
    }
    52% {
        background-image: url('img/pokeballs.png');
    }
    53% {
        background-image: url('img/key-items.png');
    }
    100% {
        background-image: url('img/key-items.png');
    }
}

@keyframes item-bag-title {
    0% {
        content: 'ITEMS';
    }
    45% {
        content: 'ITEMS';
    }
    46% {
        content: 'POKe BALLS';
    }
    52% {
        content: 'POKe BALLS';
    }
    53% {
        content: 'KEY ITEMS';
    }
    100% {
        content: 'KEY ITEMS';
    }
}

