html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
    background-color: #f0f0f0;
    font-family: 'Fredoka', sans-serif;
    margin-left: 0;
    margin-right: 0;
    background-image: url("img/background.JPG");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.header {
   
    color: white;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 120px;
}

.img {
    width: 150px;
    height: 125px;
    border-radius: 50%;

}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: row;

}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar a {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    padding-bottom: 8px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 4px;
    background: #FADA5E;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar li {
    margin: 0 15px;
}

/* Wszystkie suchary container */

.all-jokes {
  margin-top: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  padding: 0 20px;
  background-color: #fcfcfc5c;
  color: rgb(0, 0, 0);
  border-radius: 20px;
}

.joke-container {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 60px; 
    padding: 20px;
    color: #000000;
}
/* Joke container */
.joke {
  background-color: #ffffff52;
  padding: 20px;
  border-radius: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.joke-text {
    font-size: 30px;
    text-align: center;
    margin-bottom: 10px;
}

/* ------------------------------------------ */


/* User container */
.user-panel {
  background-color: #ffffff52;
  border-radius: 0 10px 0 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.user-img {
    max-width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    background-color: #ffffff52;
    padding: 5px;
    margin-bottom: 10px;
}

/* ------------------------------------------ */

/* Button container */
.button-panel {
    display: flex;
    grid-column: span 2;
    justify-content: center;
    align-items: center;
    background-color: #ffffff52;
    width: 100%;
    height: 100%;
    border-radius: 0 0 10px 10px;
    padding: 10px 0 10px 0;

}

.joke-button {
    background-color: #ffffff52;
    color: black;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 10px;
    margin-left: 10px;
    width: 100px;
    font-size: 20px;
}

.joke-button.like {
    background-color: green;
    color: white;
}

.joke-button.unlike {
    background-color: red;
    color: white;
}

.joke-button.average {
    background-color: #FADA5E;
    color: rgb(0, 0, 0);
}

.joke-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.joke-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}



.img-like {
    width: 30px;
    height: 25px;
    margin-right: 10px;
    display: block;
    margin: 0 auto;
}

/* ------------------------------------------ */

/* Page panel container */
.page-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}


.joke-button.next-page {
  background-color: #FADA5E;
  color: rgb(0, 0, 0);
  width: 100%;
  font-weight: bold;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.page-btn {
  flex: 1;
  max-width: 60px;
}



/* ------------------------------------------ */

/* Footer container */
footer {
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: #4f4f4f5c;
    color: white;

    padding: 20px 0;

    height: 50px;

    margin-top: 150px;
}

/* ------------------------------------------ */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    margin-top: 60px;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .navbar li {
    margin: 10px 0;
  }

  .img {
    width: 100px;
    height: 100px;
  }
  .joke-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  .joke-text {
    font-size: 20px;
  }

  .joke-button {
    font-size: 16px;
    width: 100%;
  }

  .page-btn {
    max-width: 45px;
    font-size: 14px;
  }

  .page-panel {
    padding: 15px 5px;
  }
}

