ويكيبيديا:مسابقة البيئة المغاربية 2024/styles.css

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 20px;
}

.span-c6 {
  grid-column: span 6 / auto;
}

.span-c5 {
  grid-column: span 5 / auto;
}

.span-c4 {
  grid-column: span 4 / auto;
}

.span-c3 {
  grid-column: span 3 / auto;
}

.span-c2 {
  grid-column: span 2 / auto;
}

.span-r3 {
  grid-row: span 2 / auto;
}

/* Mobile breakpoint */
@media screen and (max-width: 675px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 20px;
  }

  .span-c6 {
    grid-column: auto;
  }

  .span-c5 {
    grid-column: auto;
  }

  .span-c4 {
    grid-column: auto;
  }

  .span-c3 {
    grid-column: auto;
  }

  .span-c2 {
    grid-column: auto;
  }

  .span-r3 {
    grid-row: auto;
  }

  .nav-links {
    flex-direction: column;
  }
}

/* Tablet breakpoint */
@media screen and (min-width: 676px) and (max-width: 1024px) {
  /* Adjust styles for tablet devices here */
}

/* Large screens breakpoint */
@media screen and (min-width: 1025px) {
  /* Adjust styles for large screens here */
}

.title-card {
  vertical-align: top;
  background: #fff;
  color: #000;
  border-radius: 2px;
  box-shadow: 0.5px 0.866px 5px 0 rgba(0, 0, 0, 0.11);
  border-bottom: 15px solid #1d3c80;
  border-top: 10px solid #1d3c80;
}

.title-text {
  font-size: 20px;
  font-weight: normal;
  text-align: center;
  color: #1d3c80;
  line-height: 1.5em;
  padding: 5px;
}
.title-text2 {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  color: #1d3c80;
  line-height: 1.5em;
}

.card {
  display: block;
  padding: 10px;
  background: #fff;
  color: #1d3c80;
  border-radius: 2px;
  box-shadow: 0.5px 0.866px 5px 0 rgba(0, 0, 0, 0.11);
  border-top: 10px solid #228B22;
}

.card:hover {
  border-top: 15px solid #526915;
  box-shadow: 0.5px 0.866px 5px 0 rgba(0, 0, 0, 0.21);
}

.sec-title {
  display: block;
  font-size: 20px;
  color: #526915;
  font-weight: bold;
  margin: 5px;
  padding: 5px;
}

.nav-links {
  display: flex;
  list-style: none;
  width: 100%;
  margin: auto;
  padding: 10px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.nav-links ul a {
  text-decoration: none;
}

.nav ul li {
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 5px;
  min-width: 150px;
  text-align: center;
  font-size: 105%;
  font-weight: bold;
  margin: 5px;
}

.nav ul li:hover {
  background: #228B22;
}

li.content-title:hover {
  width: 200px;
  background: #007bff;
  color: white;
  transition-duration: 0.5s;
}

li.content-title a {
  color: #000;
}

li.content-title.green-b {
  background: #4ca40b;
}

.content-title.green-b a {
  color: white;
}

li.content-title.red-b {
  background: #da4453;
  color: white;
}

.content-title.red-b a {
  color: white;
}

li.content-title.red-b:hover {
  width: 210px;
  background: silver;
  color: white;
  transition-duration: 0.5s;
}

.nav p {
  font-family: "Tajawal", sans-serif;
  font-size: 35px;
  font-weight: bold;
  text-align: center;
  line-height: 5px;
}

.footer {
  background: #0b4b0f;
  padding: 10px;
  border-radius: 2px;
}

.num-card {
  display: block;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0.5px 0.866px 5px 0 rgba(0, 0, 0, 0.11);
  color: #228B22;
}

.num-card:hover {
  box-shadow: 0.5px 0.866px 5px 0 rgba(0, 0, 0, 0.21);
}

.num-title {
  display: block;
  font-size: 14px;
  color: #fff;
  margin: 5px;
  padding: 5px;
  text-align: center;
  background: #228B22;
}

.num-big {
  margin: 5px;
  padding: 15px;
  font-family: "Tajawal", sans-serif;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
}

.cat {
  width: 100%;
  margin: auto;
  padding: 10px;
}

.cat ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.cat ul li a {
  display: inline-block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 5px;
  min-width: 200px;
  text-align: center;
  font-size: 95%;
  margin: 2px 5px;
  cursor: pointer;
}

.cat .mw-selflink {
  background: #4ca40b;
  color: #228B22;
  box-shadow: 0.5px 0.866px 5px 0 rgba(0, 0, 0, 0.21);
}

.cat ul li a:hover {
  background: #4ca40b;
  color: #ffffff;
  box-shadow: 0.5px 0.866px 5px 0 rgba(0, 0, 0, 0.21);
  transition-duration: 0.5s;
}