body {
    font-family: 'Fira Code', monospace;
}

.featured-header {
    display: flex;
    align-items: center;            
    margin-bottom: 20px;
}

.title {
    color: var(--color4);
    font-size: 22px;
    font-family: 'Fira Code', monospace;
}

.game-container-makecode {
    --iframe-width: 640px; 
    --iframe-height: 480px;  
    --scale: 1;
    --crop-top: 27px;
    --crop-bottom: 18px;     
    --crop-left: 27px;     
    --crop-right: 27px;    

    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-top: 40px; 
    margin-left: -40px;

    width: calc(var(--iframe-width) * var(--scale) - var(--crop-left) - var(--crop-right));
    height: calc(var(--iframe-height) * var(--scale) - var(--crop-top) - var(--crop-bottom));
}

.game-container-scratch {
    --iframe-width: 640px; 
    --iframe-height: 480px; 
    --crop-top: 0px;      
    --crop-bottom: 0px;     
    --crop-left: 27px;     
    --crop-right: 27px;     
    --scale: 1;

    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 10px;
    margin-top: 40px; 
    margin-left: -40px;

    width: calc(var(--iframe-width) * var(--scale) - var(--crop-left) - var(--crop-right));
    height: calc(var(--iframe-height) * var(--scale) - var(--crop-top) - var(--crop-bottom));
}

.game-container iframe {
position: absolute;
top: calc(-1 * var(--crop-top));
left: calc(-1 * var(--crop-left));
width: var(--iframe-width);
height: var(--iframe-height);
border: none;
transform: scale(var(--scale));
transform-origin: top left;
}


.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}


.arrow {
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    color: white;
    border-radius: 50%;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px auto;
    max-width: 1000px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    background: rgba(0,0,0,0.78); 
}
.play-button {
    background: var(--color14);
    color: white;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1.5px solid var(--color14);
    text-align: center;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    text-decoration: none;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
    transition: all 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.view-button {
    background: white;
    color: var(--color14);
    padding: 8px 4px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    text-decoration: none;
    border: 1.5px solid var(--color14);
    transition: all 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.play-button, .view-button {
    margin-top: 4px;
    width: 66px;
    margin-left: 6px;
}

.game-info-container {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 30px;
}

.game-iframe-container {
  flex: 2;
  min-width: 0; 
}

.game-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  margin-top: 40px; 
  color: var(--color20);
}

.description-box, .controls-box {
  background: var(--color10);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.description-box h3, .controls-box h3 {
  margin-top: 0;
  color: var(--color7);
  border-bottom: 2px solid var(--color1);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.controls-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.controls-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-key {
  background: var(--color1);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
  min-width: 24px;
  text-align: center;
}

.user-info-card {
    display: flex;
    align-items: center;
    background-color: var(--color2);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    width: 150px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid var(--color1);
}

.user-info-card .username a {
    color: var(--color7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.user-info-card .username a:hover {
    color: var(--color3);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .game-info-container {
    flex-direction: column;
  }
  
  .game-iframe-container {
    margin-bottom: 20px;
  }
}

.analytics {
    width: 90px; 
    height: 63px; 
    display: flex; 
    background-color: var(--color7); 
    border-radius: 10px; 
    align-items:center;
}

.icon {
    margin-left: 15px;
    height: 25px;
    width: auto;
    align-items:center;
}

.count {
    font-size: 25px;
    color: var(--color5);
    margin-left: 10px;
}


.left-arrow {
    left: 135px;
}

.right-arrow {
    right: 135px;
}

.nav-arrow {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Dots Navigation */
.dots-container {
    text-align: center;
    margin-top: -14px;

}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--color7); 
    opacity: 0.5;
}

.dot:hover {
    background-color: var(--color5); 
    transform: scale(1.2);
    opacity: 0.8;
}

.dot.active {
    background-color: var(--color3);
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 10px rgba(var(--color3-rgb), 0.5);
}

.game-header {
    margin-top: 40px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
    height: 50px;
    margin-left: -40px;
    margin-bottom: -45px;
    z-index:10000;
    background-color: var(--color9); 
}

.new-tab-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    margin-top: -38px;
    margin-right: 5px;
    background-color: var(--color3);
    color: var(--color4);
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-left: auto;
}

.new-tab-icon:hover {
    background-color: var(--color9);
}