داڕێژە:دەستپێک/styles.css

لە ویکیفەرھەنگ
/* Folded Section */
.folded-section {
  position: relative;
  background-color: #fff;
  color: #000;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.folded-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 40px solid #000;
  border-left: 40px solid transparent;
  z-index: 1;
}

.folded-section-content {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.section-header {
  padding: 10px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.section-header h2 {
  margin: 0;
  padding: 10px;
  font-size: 20px;
}

/* Define lighter colors for each section */
.section1 {
  background-color: #c7e9ff; /* Light yellow */
}

.section2 {
  background-color: #ffcce5; /* Light blue */
}

.section3 {
  background-color: #ffe4b3; /* Light pink */
}

.section4 {
  background-color: #00e6ac; /* Light aqua */
}

#folded-section1::before {
  border-top-color: #91d9ff;
}

#folded-section2::before {
  border-top-color: #ffaec6;
}

#folded-section3::before {
  border-top-color: #ffcc66;
}

#folded-section4::before {
  border-top-color: #009a73;
}

/* Top Section */
.top-section {
  background: linear-gradient(to bottom, #f7f7f7, #e8e8e8);
  background-color: #f7f7f7;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* Container for Left and Right Sections */
.section-container {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap; /* Enable wrapping for smaller screens */
  justify-content: space-between;
}

.right-section {
  width: 50%;
  float: right;
}

.left-section {
  width: 45%;
  float: left;
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
  .section-container {
    flex-direction: column; /* Stack sections vertically */
  }

  .right-section,
  .left-section {
    width: 100%; /* Take full width on smaller screens */
    float: none;
  }
}

/* Bottom Section */
.bottom-section {
  background: linear-gradient(to top, #f7f7f7, #e8e8e8);
  background-color: #f7f7f7;
  padding: 20px;
  text-align: center;
  box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  clear: both;
}