body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #dbeafe;
}

aside {
    position: fixed;
    top: 0;
    right: 0; 
    width: 20%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

footer {
    width: 100%;
    text-align: center;
    color: #cccccc;
}

footer a{
    float: center;
    margin-left: 10px;
    color: #cccccc;
}

#patch {
    color: #8f8f8f;
    text-align: right;
    padding-right: 5%;
}

aside img{
    height: 60%;
    padding-left: 50%;
}

img{
    user-select: none;
    -webkit-user-drag: none;
}

::selection {
    background: rgb(0, 255, 0);
}

header {
    width: 100%;
    text-align: center;
    background-color: #cccccc;
    padding: 10px 0;
}

#dollar {
    font-size: 32px;
}

#game {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    text-align: center;
}

#clickButton {
    font-size: 10px;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform .2s;
}

#moneyCount {
    font-size: 48px;
}

.money-popup {
    font-size: 40px;
    color: green;
    position: absolute;
    animation: flyUp 1s ease-out forwards;
}

.logo{
    padding-top: 5%;
    height: 10%;
}

@keyframes flyUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.sidebar {
    color: #fff;
    position: fixed;
    top: -20px;
    left: 0;
    width: 20%;
    height: 100%;
    background-color: #f4f4f4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}


.cpu-card, .ram-card, .gpu-card, .power-card, .storage-card, .main-card { 
    width: 80%;
    height: 50%;
}

button {
    border: none;
    padding: 0%;   
    width: 100%; 
    height: 100%; 
    background-color: transparent;
}

div.cpu-card, div.ram-card, div.gpu-card, div.power-card, div.storage-card, div.main-card{
    font-weight: 1000;
    position: relative; 
    text-align: left;
    padding: 20px;
}

div.cpu-card:hover, div.ram-card:hover, div.gpu-card:hover, div.power-card:hover, div.storage-card:hover, div.main-card:hover{
    transform: scale(1.2);
}


div.cpu-card {
    background-color: rgb(73, 255, 73);
}

div.ram-card {
    background-color: rgb(255, 73, 73);
}

div.gpu-card {
    background-color: rgb(73, 115, 255);
}

div.power-card {
    background-color: rgb(249, 73, 255);
}

div.storage-card {
    background-color: rgb(255, 197, 73);
}

div.main-card {
    background-color: rgb(185, 255, 73);
}

button:hover {
    cursor: pointer;
}

.upgrade1Button:hover {
    transform: scale(1.2);
}

div.cpu-card img, div.ram-card img, div.gpu-card img, div.storage-card img, div.power-card img, div.main-card img {
    position: absolute;
    top: 0px; 
    left: 81%;  
    transform: translateX(-50%) rotate(-15deg); 
    width: 150px;
    height: auto;
    z-index: 0;   
    border-radius: 5%;
}

div.cpu-card img {
    max-width: 42%;
    height: auto;
}

div.main-card img {
    max-width: 32%;
    height: auto;
}

div.gpu-card img{
    max-width: 100%;
    height: auto;
}


.reset-button {
    position: fixed;
    bottom: 10px;
    left: 10px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: 5%;
    width: 10%;
}

.reset-button:hover {
    background-color: darkred;
}

