body {
  background-color: #f1f1f1;
  font-family: "Cera Pro", sans-serif;
  padding-bottom: 5vw;
}

.headline{
  font-weight: 900;
  font-size: 3.4vw;
  text-align: center;
  color: #313131;
  padding-bottom: 20px;
}

@media (max-width: 768px) {
  .headline{
    font-size: 6.8vw;
  }
}

.cases{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  width: 90vw;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 70px;
}

@media (max-width: 768px) {
  .cases{
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.case{
  background-color: white;
  border-radius: 2vw;
  width: 43vw;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
  position: relative;
  padding-bottom: 2vw;
}

@media (max-width: 768px) {
  .case{
    border-radius: 4vw;
    width: 86vw;
    padding-bottom: 4vw;
  }
}

.case:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* Добавьте тень при наведении */
}

@media (max-width: 768px) {
  .case:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3); /* Добавьте тень при наведении */
  }
}

.caseLink{
  text-decoration: none;
}

.imgCase{
  width: 43vw;
  border-top-left-radius: 2vw;
  border-top-right-radius: 2vw;
}

@media (max-width: 768px) {
  .imgCase{
    width: 86vw;
    border-top-left-radius: 4vw;
    border-top-right-radius: 4vw;
  }
}

.caseHeadline{
  font-weight: 900;
  font-size: 1.5vw;
  color: #313131;
  margin-left: 2vw;
  margin-right: 2vw;
  margin-top: 0.6vw;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .caseHeadline{
    font-size: 2vw;
  }
}

@media (max-width: 768px) {
  .caseHeadline{
    font-weight: 900;
    font-size: 3vw;
    color: #313131;
    margin-left: 4vw;
    margin-right: 4vw;
    margin-top: 1.2vw;
  }
}

@media (max-width: 500px) {
  .caseHeadline{
    font-size: 4vw;
  }
}

.flexSpacer{
  flex-grow: 1;
}

.caseButton{
  height: 3vw;
  width: 18vw;
  margin: 0 auto;
  background-color: #d51228;
  border: none;
  border-radius: 0.7vw;
  color: white;
  display: inline-block;
  font-weight: 700;
  font-size: 1vw;
  transition: background-color 0.3s ease;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .caseButton{
    height: 5vw;
    width: 30vw;
    font-size: 1.67vw;
  }
}

@media (max-width: 768px) {
  .caseButton {
    height: 6vw;
    width: 36vw;
    border-radius: 1.4vw;
    font-size: 2vw;
  }
}

@media (max-width: 500px) {
  .caseButton{
    height: 10vw;
    width: 60vw;
    font-size: 3.33vw;
  }
}

.caseButton:hover{
  background-color: #b51124;
  cursor: pointer;
}

.overlayRectangle{
  position: absolute;
  top: 1vw;
  left: 1vw;
  height: 1.5vw;
  font-size: 0.7vw;
  font-weight: 600;
  color: white;
  background-color: #dd3333;
  border-radius: 1vw;
  display: inline-block;
  padding: 0 0.8vw;
  text-align: center;
  line-height: 1.5vw;
}

@media (max-width: 768px) {
  .overlayRectangle{
    top: 2vw;
    left: 2vw;
    height: 3vw;
    font-size: 1.4vw;
    border-radius: 2vw;
    padding: 0 1.6vw;
    line-height: 3vw;
  }
}

.overlayRectangle2{
  top: 3vw;
  background-color: #81d742;
}

@media (max-width: 768px) {
  .overlayRectangle2{
    top: 6vw;
  }
}

#htmlcss{
  line-height: 1.6vw;
}

@media (max-width: 768px) {
  #htmlcss{
    line-height: 3.2vw;
  }
}
