@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;900&display=swap');

:root {
  --dark-blue: #1F4782;
  --dark-gray: #303335;
  --golden: #AB834C;
  --golden-tainoi: #E9BE71;
  --gray: #818C96;
  --white: #FFF;
}

.renkk {
  color: #fff;
  text-decoration: none;
  font-size: 30px;
  font-family: 'Raleway', sans-serif;
}




#background-video {
  height: 100vh;
  width: 100vw;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
}

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

body {
  background: linear-gradient(90deg, #CAF3F2 0%, #6FE3E1 100%);
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  justify-content: center;
  min-height: 100vh;
}


.radio {
  display: none;
}

.general-container {
  display: flex;
  height: 30rem;
  margin: 0 auto;
  max-width: 100%;
  width: 80rem;
}

.content {
  background: var(--white);
  background-size: cover;
  background-position: center;
  border-radius: 3rem;
  cursor: pointer;
  flex: 1;
  margin-right: 0.8rem;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}



.content:hover {
  box-shadow: 0.3rem 0.3rem 0.4rem rgba(0, 0, 0, 0.3);
}

.icon {
  align-items: center;
  background-color: var(--white);
  border-radius: 50%;
  bottom: 1rem;
  color: var(--golden-tainoi);
  display: flex;
  font-size: 1.5rem;
  height: 2.5rem;
  justify-content: center;
  left: 1.1rem;
  position: absolute;
  width: 2.5rem;
}

.content:nth-of-type(2) {
  background-image: url('src/insaat.jpg');
}

.content:nth-of-type(3) {
  background-image: url('src/enerji.jpg');
}

.content:nth-of-type(4) {
  background-image: url('src/zeytin.jpg');
}



.content:nth-of-type(2) .icon {
  color: var(--dark-gray);
}

.content:nth-of-type(3) .icon {
  color: var(--dark-blue);
}

.content:nth-of-type(4) .icon {
  color: var(--gray);
}

.content:nth-of-type(5) .icon {
  color: var(--golden);
}


.card-title {
  writing-mode: vertical-rl;
  /* Dikey yazı */
  text-orientation: mixed;
  bottom: auto;
  left: auto;
  color: var(--white);
  font-size: 1.5rem;
  text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.7);
  opacity: 1;
  position: absolute;
  transition: all 0.3s ease;
  pointer-events: none;
  /* Tıklamayı devre dışı bırak */

  transform: rotate(180deg);
  /* 180 derece döndür */
  letter-spacing: 0.2em;
  /* Harfler arası boşluk */
  line-height: 1.8;
  /* Satırlar arası boşluk */
}


/* Yazılar aktif kartta yatay hale gelsin */
.radio:checked+.content>.card-title {
  writing-mode: horizontal-tb;
  /* Yatay yazı */
  text-orientation: mixed;
  /* Standart yatay metin */
  position: absolute;
  bottom: 1rem;
  /* Alt kısma hizala */
  right: auto;
  /* Sağa hizalamayı kaldır */
  left: 1.5rem;
  /* Soldan boşluk ekle */
  pointer-events: auto;
  /* Tıklamayı aktif hale getir */
}


/* Her kart için farklı arka plan */
.content:nth-of-type(1) {
  background-image: url('src/mimar.jpg');
}

.content:nth-of-type(2) {
  background-image: url('src/insaat.jpg');
}

.content:nth-of-type(3) {
  background-image: url('src/enerji.jpg');
}

.content:nth-of-type(4) {
  background-image: url('src/zeytin.jpg');
}

.subtitle {
  font-size: 0.9rem;
}

.radio:not(:checked)+.content {
  flex: 1;
  /* Kapalı kart genişliği */
  transition: all 0.3s ease;

}

/* Seçili kart genişliği */
.radio:checked+.content {
  flex: 10;
  /* Seçili kart genişliği */
  border-radius: 2rem;
  box-shadow: 0.3rem 0.3rem 0.4rem rgba(0, 0, 0, 0.3);
}

.radio:checked+.content>.card-title {
  opacity: 1;
  transform: translateX(0);
}