* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Helvetica, sans-serif;
  background-color: #f5f5f5;
}

nav {
  background-color: #800000;
  width: 100%;
  height: 4em;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
nav h1 {
  color: white;
  font-weight: bold;
  font-size: 1.8em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.container section {
  padding-top: 2em;
  margin-top: 3em;
  display: flex;
  justify-content: center;
  text-align: center;
  padding-bottom: 2em;
  border-top: 2px solid #800000;
}
.container section h2 {
  font-family: Helvetica, sans-serif;
  color: black;
  text-align: center;
  font-size: x-large;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}
.header h2 {
  color: #800000;
  font-size: 2em;
  margin-bottom: 10px;
}
.header p {
  color: #666;
  font-size: 1.1em;
}

.leaderboard {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.leaderboard-header {
  background-color: #800000;
  color: white;
  padding: 20px;
  text-align: center;
}
.leaderboard-header h3 {
  font-size: 1.5em;
  margin-bottom: 5px;
}
.leaderboard .leaderboard-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s;
}
.leaderboard .leaderboard-item:hover {
  background-color: rgb(250.1, 250.1, 250.1);
}
.leaderboard .leaderboard-item:last-child {
  border-bottom: none;
}
.leaderboard .leaderboard-item .rank {
  font-size: 1.5em;
  font-weight: bold;
  width: 60px;
  text-align: center;
  margin-right: 20px;
}
.leaderboard .leaderboard-item .rank.gold {
  color: #ffd700;
}
.leaderboard .leaderboard-item .rank.silver {
  color: #c0c0c0;
}
.leaderboard .leaderboard-item .rank.bronze {
  color: #cd7f32;
}
.leaderboard .leaderboard-item .plane-image {
  width: 120px;
  height: 80px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  border: 3px solid #ddd;
  background-color: #f0f0f0;
}
.leaderboard .leaderboard-item .plane-info {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.leaderboard .leaderboard-item .plane-info .plane-name {
  display: none;
}
.leaderboard .leaderboard-item .plane-info .plane-stats {
  color: #666;
  font-size: 0.9em;
  font-weight: bold;
}
.leaderboard .leaderboard-item .vote-count {
  font-size: 1.4em;
  font-weight: bold;
  color: #800000;
  text-align: center;
  min-width: 100px;
}
.leaderboard .leaderboard-item .vote-count .number {
  display: block;
  font-size: 1.8em;
}
.leaderboard .leaderboard-item .vote-count .label {
  font-size: 0.7em;
  color: #666;
  text-transform: uppercase;
}

.loading,
.error {
  text-align: center;
  padding: 40px;
  font-size: 1.2em;
}
.loading.loading,
.error.loading {
  color: #800000;
}
.loading.error,
.error.error {
  color: #cc0000;
  font-size: 1.1em;
}

.refresh-btn {
  display: block;
  margin: 20px auto;
  background-color: #800000;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.refresh-btn:hover {
  background-color: #4d0000;
}

.stats-summary {
  display: flex;
  justify-content: space-around;
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
}
.stats-summary .stat {
  text-align: center;
}
.stats-summary .stat .stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #800000;
}
.stats-summary .stat .stat-label {
  color: #666;
  font-size: 0.9em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .leaderboard .leaderboard-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .leaderboard .leaderboard-item .rank {
    margin-bottom: 10px;
  }
  .leaderboard .leaderboard-item .plane-image {
    margin: 10px 0;
  }
  .stats-summary {
    flex-direction: column;
    gap: 15px;
  }
}

 /* Footer Stilleri */
      .planemash-footer {
        background-color: #f5f5f7;
        border-top: 1px solid #d2d2d7;
        padding: 0;
      }

      .footer-content {
        max-width: 980px;
        margin: 0 auto;
        padding: 17px 22px 7px 22px;
      }

      .footer-links {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
        margin-bottom: 11px;
      }

      .footer-column {
        display: flex;
        flex-direction: column;
      }

      .footer-column h4 {
        font-size: 12px;
        font-weight: 600;
        color: #1d1d1f;
        margin-bottom: 8px;
        line-height: 1.33337;
      }

      .footer-column ul {
        list-style: none;
      }

      .footer-column ul li {
        margin-bottom: 5px;
      }

      .footer-column ul li a {
        color: #515154;
        text-decoration: none;
        font-size: 12px;
        line-height: 1.33337;
        transition: color 0.15s ease-in-out;
      }

      .footer-column ul li a:hover {
        color: #800000;
        text-decoration: underline;
      }

      /* Çoklu kategorili kolonlar için */
      .footer-column .category-group {
        margin-bottom: 20px;
      }

      .footer-column .category-group:last-child {
        margin-bottom: 0;
      }

      /* Footer Alt Kısım */
      .footer-bottom {
        border-top: 1px solid #d2d2d7;
        padding-top: 7px;
        padding-bottom: 7px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 15px;
      }

      .footer-legal {
        flex: 1;
        font-size: 12px;
        color: #888888;
        line-height: 1.33337;
      }

      .footer-legal p {
        margin-bottom: 3px;
      }

   
     
      
      

      

      /* Responsive */
      @media (max-width: 875px) {
        .footer-links {
          grid-template-columns: repeat(3, 1fr);
          gap: 25px;
        }

        .footer-content {
          padding: 17px 20px 7px 20px;
        }
      }

      @media (max-width: 735px) {
        .footer-links {
          grid-template-columns: repeat(2, 1fr);
          gap: 20px;
        }

        .footer-bottom {
          flex-direction: column;
          align-items: flex-start;
          gap: 10px;
        }

        .footer-legal .links {
          flex-direction: column;
          gap: 5px;
        }

        .demo-content h1 {
          font-size: 36px;
        }
      }

      @media (max-width: 480px) {
        .footer-links {
          grid-template-columns: 1fr;
          gap: 15px;
        }

        .demo-content {
          padding: 40px 20px;
        }

        .demo-content h1 {
          font-size: 28px;
        }

        .footer-content {
          padding: 17px 16px 7px 16px;
        }
      }



.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 20em;
  width: 40em;
  max-width: 95%; 
  border: 2px solid transparent;
  border-radius: 20px;
  margin: 1em auto; 
}

.card1 {
  width: 100%; 
  height: 3em;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #800000;
}

.card1 p {
  font-family: Helvetica, sans-serif;
  color: white;
  font-size: larger;
  text-align: center;
  padding: 0 1em; 
}

.card2 {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 2em;
  gap: 2em;
  flex-wrap: wrap; 
}

.imgdiv img {
  border-radius: 50%;
  height: 100px;
  width: 100px;
  object-fit: cover;
}

.textdiv {
  flex: 1;
  min-width: 200px; 
}

.textdiv p {
  font-family: Calibri, "Trebuchet MS", sans-serif;
  color: black;
  font-size: medium;
  line-height: 1.5; 
}

.textdiv h3 {
  font-family: Helvetica, sans-serif;
  font-size: x-large;
  color: black;
  margin-bottom: 0.5em;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  flex-direction: column;
  padding: 0 1em; 
}


@media (max-width: 1024px) {
  .card {
    width: 35em;
    height: auto; 
    min-height: 20em;
  }
  
  .card2 {
    gap: 1.5em;
  }
  
  .textdiv h3 {
    font-size: large;
  }
}

@media (max-width: 768px) {
  .card {
    height: auto; 
    width: 90%;
    max-width: 500px;
    min-height: 25em;
  }
  
  .card1 {
    width: 100%;
    height: auto;
    min-height: 3em;
    padding: 0.5em 0;
  }
  
  .card1 p {
    font-size: large;
    text-align: center;
    padding: 0 1em;
  }
  
  .card2 {
    flex-direction: column;
    gap: 1.5em;
    padding: 2em 1em;
    text-align: center;
  }
  
  .imgdiv img {
    border-radius: 50%;
    height: 80px;
    width: 80px;
  }
  
  .textdiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: unset;
  }
  
  .textdiv p {
    font-size: medium;
    text-align: center;
    margin: 0;
  }
  
  .textdiv h3 {
    font-size: large;
    margin-bottom: 0.5em;
  }
  
  .btn {
    padding-top: 1.5em;
  }
  
  main {
    gap: 1.5em;
    padding: 1em 0.5em;
  }
}

@media (max-width: 480px) {
  .card {
    width: 95%;
    min-height: 23em;
  }
  
  .card1 p {
    font-size: medium;
    padding: 0 0.5em;
  }
  
  .card2 {
    padding: 1.5em 0.5em;
    gap: 1em;
  }
  
  .imgdiv img {
    height: 70px;
    width: 70px;
  }
  
  .textdiv h3 {
    font-size: medium;
  }
  
  .textdiv p {
    font-size: small;
  }
  
  .btn a {
    font-size: 15px;
    padding: 4px 16px;
  }
  
  .btn a span {
    margin: 8px;
  }
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2em;
}
.btn a {
  background: transparent;
  position: relative;
  padding: 5px 20px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #800000;
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: #800000;
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
}
.btn a span {
  margin: 10px;
}
.btn a::before {
  position: absolute;
  top: 0;
  left: -5em;
  right: 0;
  bottom: 0;
  margin: auto;
  content: "";
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  text-align: center;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}
.btn a:hover {
  color: #fff;
  border: 1px solid #800000;
}
.btn a:hover::before {
  box-shadow: inset 0 0 0 10em #800000;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  flex-direction: column;
}
