main {
    display: flex;
    border: solid black 1px;
    justify-content: center;
    margin: 10px 10px;
    flex-direction: row;
}

.shop,
.clicker,
.right {
    width: 33.33%;
    border: solid black 0.5px;
}

.title {
    text-align: center;
    font-size: 24px;
    text-decoration: underline;
    margin: 10px 0px;
}

.shop-main {
    margin-top: 50px;
}

.shop-title {
    font-size: 20px;
    text-decoration: underline;
    margin-left: 20px;
}

.shop-details {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 30px 15px;
}

.clicker-main {
    margin-top: 50px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.clicker-image-container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clicker-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-bottom: 50px;
}

.clicker-img img {
    width: 300px;
    height: auto;
    max-height: 100%;
    transition: transform 0.5s;
}

.clicker-img img:hover {
    transform: scale(1.1);
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less depending on your design */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Grid layout for CPU Generation modal */
.cpu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns */
    gap: 20px;
    margin-top: 20px;
}

.cpu {
    background-color: #f2f2f2;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: solid 1px #ddd;
}

.cpu button {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

.cpu button:hover {
    background-color: #45a049;
}

.cpu span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: gray;
}

#cpu-generation-details {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.cpu {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

.buy-cpu {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
}

.buy-cpu:hover {
    background-color: #4CAF50;
    color: white;
}

.right-main {
    margin-top: 50px;
}

#cpu-generation-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.generation-button:hover {
    scale: 1.02;
}

.locked {
    background-color: gray;
    cursor: not-allowed;
    opacity: 0.5;
}