
body{
    background-color: moccasin;
}

h2{
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.5rem;
}

h3{
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 0.8rem;
}
#cookieCount{
    position: relative;
    font-size: 24px;
    font-weight: bold;
    font-family: Verdana, Geneva, Tahoma, sans-serif;


    display: block;
    margin: auto;display: flex;
    justify-content: center;
}

.CPSCounter{
    padding-bottom: 20px;
    margin: auto;display: flex;
    justify-content: center;
    font-weight: bold;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}


.CookieButton{ 
    position: relative;
    height: 30%;
    width: 30%;
    min-width: 100px;
    transition: transform .3s ease-out;
    display: block;
    margin: auto;display: flex;
    justify-content: center;
}

.CookieButton:hover{
    transform: scale(1.1);
}

.CookieButton:active {
    transform: scale(.9);
  }

.cookieNav{
    width: 40%;
    position: absolute;
    left: 0;
    right: 0;
    top: 10%;
    margin-left: auto;
    margin-right: auto;
}

.shop{
    position: fixed;
    width: 0;
    height: 100%;
    right: 0;
    top: 0;
    z-index: 10;
    
    position: fixed;
    background-color: skyblue;
    transition: 0.5s; 
}

.shop-item {
    cursor: pointer;
    position: relative;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 20px;
    height: 6%;
}

.shop-item:hover{
    background-color: gray;
}

.productImage{
    height: 100%;
    margin-top: 2px;
}

.upgradeName {
    font-size: 75%;
    padding-left: 5px;
    display: flex;
}

.upgradePrice {
    font-size: max(.8vw, 10px);
    max-width: 20px;
    margin-right: 15%;
    margin-left: auto; /* Pushes it to the right */
    z-index: 100;
}

.itemContent {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    top: 5px;
    left: 20%;
    height: 100%;
    width: 80%;
}

.itemDisplayNav {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 40%;
    width: 100%;
    margin-top: 10%;

    overflow-x: auto;
    overflow-y: auto; /* Enables scrolling */
    background-color: deepskyblue;
    white-space: nowrap;
z-index: 100;
    display: block; /* Let items stack naturally */
    transition: .5s;
}

.upgradesMenu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background-color: firebrick;
    white-space: nowrap;

    z-index: 15;
    display: block; /* Let items stack naturally */
    transition: .5s;
}

.itemDisplay {
    background-color: khaki;
    width: 100vw; /* Always matches the viewport width */
    height: 80px;
    margin-bottom: 20px;
}
@media screen and (max-width: 800px) {
    .upgradeName {
      width: 100%;
      display: none !important;
    }
  }

.divide{
    border: 1rem;
    border-top: 8px solid black;
    border-radius: 5px;
}

body{
    background-color: moccasin;
}

h2{
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.5rem;
}

h3{
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 0.8rem;
}
#cookieCount {
    position: relative;
    font-size: 24px;
    font-weight: bold;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    padding-bottom: 30px;

    display: block;
    margin: auto;display: flex;
    justify-content: center;
}

.CookieButton{ 
    position: relative;
    height: 30%;
    width: 30%;
    min-width: 100px;
    transition: transform .3s ease-out;
    display: block;
    margin: auto;display: flex;
    justify-content: center;
}

.CookieButton:hover {
    transform: scale(1.1);
}

.CookieButton:active {
    transform: scale(.9);
}

.cookieNav{
    width: 40%;
    position: absolute;
    left: 0;
    right: 0;
    top: 10%;
    margin-left: auto;
    margin-right: auto;
}

.shop{
    position: fixed;
    width: 0;
    height: 100%;
    right: 0;
    top: 0;
    z-index: 10;
    
    position: fixed;
    background-color: skyblue;
    transition: 0.5s; 
}

.shop-item {
    cursor: pointer;
    position: relative;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 20px;
    height: 6%;
}

.shop-item:hover{
    background-color: gray;
}

.productImage{
    height: 100%;
    margin-top: 2px;
}

.upgradeName {
    font-size: 75%;
    padding-left: 5px;
    display: flex;
}

.upgradePrice {
    font-size: max(.8vw, 10px);
    max-width: 20px;
    margin-right: 15%;
    margin-left: auto; /* Pushes it to the right */
    z-index: 100;
}

.itemContent {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    top: 5px;
    left: 20%;
    height: 100%;
    width: 80%;
}

.itemDisplayNav {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 40%;
    width: 100%;
    margin-top: 10%;

    overflow-x: auto;
    overflow-y: auto; /* Enables scrolling */
    background-color: deepskyblue;
    white-space: nowrap;

    display: block; /* Let items stack naturally */
    transition: .5s;
}

.itemDisplay {
    background-color: khaki;
    width: 100vw; /* Always matches the viewport width */
    height: 80px;
    margin-bottom: 20px;
}

.shopButton{
    position: static;
    width: 8%;
    cursor: pointer;
}
.boughtUpgradesButton{
    position: static;
    width: 8%;
    cursor: pointer;
}

@media screen and (max-width: 800px) {
    .upgradeName {
      width: 100%;
      display: none !important;
    }
  }

.divide{
    border: 1rem;
    border-top: 8px solid black;
    border-radius: 5px;
}

.falling-cookie{
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
    animation: fall 1s linear forwards;
}

.goldenCookie{
    position: absolute;
    width: 3%;
    cursor: pointer;
}

@keyframes fall {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(200px); opacity: 0; }
}

.statItem{
    height: 10%;
    width: 100px;
        display: flex;
    position: static;
}

#goldenMouseStat, #diamondCookieStat, #superOvenStat , #electricFactoryStat, #bigCargoPlaneStat{
    font-size: 75%;
    padding-left: 6rem;
    margin-top: -50px;
    display: flex;
    position: absolute;
}

.shop-item {
    position: relative;
    cursor: pointer;
}

.shop-item::before {
    content: attr(data-description);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.65em;
    white-space: normal;
max-width: 200px;
word-wrap: break-word;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    font-family:Verdana, Geneva, Tahoma, sans-serif
}

.shop-item::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    margin-bottom: -12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 9;
}

.shop-item:hover::before,
.shop-item:hover::after {
    opacity: 1;
}
