@charset 'UTF-8';
/** BASIC */
body {
    margin: 0;
    padding: 0;
    border: 0;
    background: #eee;
}
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo', sans-serif;
}

.container {
    border:solid 1px;
    margin:auto;
    max-width: 1200px; /* Masaüstü için maksimum genişlik belirlendi */
    padding: 2%;
}

.container h2{
    background:#333;
    color:white;
    padding:.1%;
    text-align: center;
}

.container h2.tcf {
    background:red;
}

.container .galeri{
    display:flex;
    padding:2%;
    gap:2%;
    justify-content: center;
    flex-wrap: wrap;
}

.container .galeri .resim{
    border:solid 1px;
    width: 23%; /* Masaüstünde daha küçük bir alan kaplaması için %23 olarak belirlendi */
    padding-top: 23%;
    overflow: hidden;
    position: relative;
    cursor:pointer;
}

.container .galeri .resim img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 200ms ease-in-out;
}

.container .galeri .resim p {
    position:absolute;
    background:rgba(0,0,0,.5);
    color:white;
    width:100%;
    height:20%;
    bottom: -20%;
    display:flex;
    align-items: center;
    padding:1%;
    transition: all 200ms ease-in-out;
}

.container .galeri .resim:hover p{
    bottom: 0;
}

.container .galeri .resim:hover img{
    transform: scale(1.1) rotate(5deg);
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    margin: 0px;
    padding: 0px;
    background: #FFFFFF url(../images/t1.jpg) repeat top left;
    font-family: "Tahoma", Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #80795F;
}

h1{
    margin-top: 0px;
    margin-left: 0px;
    font-weight: bold;
    font-size: 25px;
    color: #5E5945;
}

h2{
    margin-top: 0px;
    font-weight: bold;
    font-size: 20px;
    color: #CC9933;
}

hr {
    display: none;
}

p, ol, ul {
    text-align: justify;
    line-height: 160%;
}

ul {
    list-style-type: square;
}

a {
    color: #488081;
}

a:hover {
    text-decoration: none;
}

/** HEADER */

#header {
    float: left;
    width: 18%;
    margin-right: 1px;
    padding: 1%;
    box-sizing: border-box;
}

/** MENU */

.menu ul{
  list-style: none;
  margin: 0;
  padding: 2%;
  width: 100%; /* Yüzdelik değere dönüştürüldü */
  max-width: 1000px; /* Maksimum genişlik belirlendi */
  margin: auto;
}

.menu li{
  float: left;
  position: relative;
  width: 20%; /* Yüzdelik değere dönüştürüldü */
  box-sizing: border-box; /* İç ve dış kenarlıkların toplam genişliğe dahil edilmesini sağlar */
}

.menu ul li ul{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* Alt menünün genişliğini üst menüye uyumlu hale getirir */
  z-index: 1000;
  white-space: nowrap; /* Alt menünün yatay kalmasını sağlar */
}

.menu ul li:hover ul{
  display: block;
}

.menu ul li a{
  text-decoration: none;
  background: #333;
  display: block;
  color: white;
  font-weight: bold;
  font-family: sans-serif;
  text-align: center;
  border-bottom: 2px solid red;
  border-left: 1px solid #595959;
  padding: 5px;
  box-sizing: border-box;
}

.menu ul li ul li {
  float: none; /* Alt menü elemanlarının dikeyde kalmasını önler */
  width: 100%;
}

.menu ul li ul li a{
  background: #595959;
  text-align: left;
  padding: 5px;
  border-bottom: 1px solid #333;
  font-size: .8em;
  box-sizing: border-box;
}

.menu li a:hover{
  background: rgb(248,140,0);
  transition: .5s;
}

.menu ul li ul li a:hover{
  padding-left: 15px;
  
}

/** CONTENT */

#content {
    margin: auto;
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    font-size: 15px;
    background-color: #F4EEE5;
    border-left: 1px solid #5E5945;
    border-right: 1px solid #5E5945;
}

#content h2 {
}

#photo {
    margin-bottom: 18px;

}

#right {
     float: right;
     margin: 0px auto;
     padding: 0px;
     width: 76%;
}

#left {
     float: left;
     margin: 0px;
     padding: 10px;
     width: 20%;
     border: 1px dashed #5E5945;
}


/** FOOTER */

#footer {
    clear: both;
}

#footer p {
    margin: 0px auto;
    width: 100%;
    padding: 10px 0px 10px 0px;
    background-color: #5E5945;
    font-size: 10px;
    text-align: center;
    color: #FFFFFF;
}

/** Mobil Uyumlu Düzenlemeler */
@media screen and (max-width: 768px) {
    body {
        padding: 1%;
    }

    .container .galeri .resim {
        width: 48%;
        padding-top: 48%;
    }

    .container .galeri .resim img {
        transform: none;
    }

    /* Hamburger Menü Stili */
    .menu-toggle {
        display: block;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 999;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background: #333;
    }

    .menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .menu ul.active {
        display: flex;
    }

    .menu li {
        width: 100%;
    }

    .menu ul li a {
        padding: 15px 0;
        border-left: none;
    }
}

@media screen and (max-width: 400px) {
    .container .galeri .resim {
        width: 100%;
        padding-top: 100%;
    }

    /* 400px ve daha küçük ekranlar için hamburger menü stili */
    .menu-toggle {
        right: 10px;
        top: 10px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 4px;
    }

    .menu ul li a {
        padding: 12px 0;
    }
}
