html {
    cursor: url('/img/cursor.png'), auto;
}

body {
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
    color: #29015a;
    cursor: url('/img/cursor.png'), auto;
}

h1 {
    border-color: #333333;
    font-weight: bold;
    box-shadow: inset 0px 1px 0px 0px #fff6af;
    text-shadow: inset 0px 1px 0px #ffee66;
    background: linear-gradient(#ffec64, #ffab23);
    padding: 10px;
    margin: 0;
    text-align: center;
    font-size: 24px;
    position: sticky;
    top: 0;
    z-index: 10;
}

#game-list-container {
    padding: 10px;
}

#game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    justify-content: center;
}

.game-container {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.game-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
    cursor: url('/img/cursor.png') 0 0 , pointer !important;
}

.game-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.game-container:hover::after {
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
}

.game-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: url('/img/cursor.png') 0 0 , pointer !important;
}

.game-container:hover img {
    transform: scale(1.05);
}

.game-container h3 {
    position: absolute;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 5px;
    font-size: 12px;
    color: white;
    background-color: rgb(42 12 81);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-container:hover h3 {
    opacity: 1;
}

.game-container p {
    display: none;
}

.size-1 {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
}

.size-2 {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 4 / 3;
}

.game {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: -50px;
}

#game-frame {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
}


.return-button {
    font-size: 31px;
    cursor: url('/img/cursor.png'), auto;
    z-index: 1000;
    width: 140px;
    height: 50px;
    border-width: 0px;
    color: #29015a;
    font-weight: bold;
    border-bottom-right-radius: 34px;
    box-shadow: inset 0px 1px 0px 0px #fff6af;
    text-shadow: inset 0px 1px 0px #ffee66;
    background: linear-gradient(#ffec64, #ffab23);
}

.return-button:hover {
    background: linear-gradient(#ffab23, #ffec64);
}