
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}


#game {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
}

.row {
    display: grid;
    grid-template-columns: repeat(5, 50px);
    gap: 5px;
}

.tile {
    width: 50px;
    height: 50px;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

.tile.press {
    animation: press_pulse 0.4s ease-in-out;
}

@keyframes press_pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.tile.delete {
    animation: delete_pulse 0.4s ease-in-out;
}

@keyframes delete_pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}


#message {
    margin: 20px;
    font-size: 20px;
    height: 24px;
}

.button {
  display: inline-block;
  padding: 15px 25px;
  font-size: 24px;
  margin: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: green;
  border: none;
  border-radius: 15px;
  box-shadow: 0 9px #999;
}

.button:active {
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}


@media (max-width: 480px) {

    h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .tile {
        max-width: 52px;
    }
}


.special-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    object-fit: cover;
    z-index: 1000;
    display: block;
    opacity: 1;
    animation: speacial-image-fadeOut 3s forwards;
}

/* Animacija, ki bo izginila sliko po 3 sekundah */
@keyframes special-image-fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}