* {
    box-sizing: border-box;
}

body {
    margin: 0rem;
    padding: 0rem;
    font-family: 'Oxygen', sans-serif;
    background-color: #dbdbdb;
}
/* Part 1 social*/
#social {
    background-color: black;
    color: white;
    height: 3rem;
    width: 100%;
    position: sticky; /* social yukarı sıfır pozisyonuna yapış*/
    top: 0rem;
    z-index: 1; /*sayfa içerğnde hç birşy bunn üstüne çıkmasın */
    font-size: 1rem;
    text-align: right;
    padding: 1rem;
}

#description {
    float: left;
    letter-spacing: 0.2rem;
    font-size: 1rem;
}

span {
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
}

#social>i {
    margin-right: 1rem;
}

#social>i:hover {
    opacity: 0.5;
}

#social a {
    text-decoration: none;
    color: rgb(255, 0, 149);
}
/* Part 2 container*/

#container {
    margin: auto;
    height: auto;
    width: 80%;
}

header{
    width: 100%;
    height: 250px;
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    position: relative;
    font-family: 'Playfair Display', serif;
    color: wheat;
    background-color: black; /* yazı net görülsün diye resim şeffaflaşınca işmize yarayacak*/
    margin-bottom: 0.5rem;
}

#headerImage{
    width: 100%;
    height: 250px;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    opacity: 0.7;
}

/* yazıyı merkeze almak için */
#centered {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50,-55);
}

/* Part 3 section */

section {
    background-color: #f1f1f1;
    width: 100%;
    height: auto;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15);
    overflow: auto; /* önemli !*/
}

nav {
    width: 20%;
    float: left; /* önemli */
    margin-top: 0.8rem;
    height: auto;
}

nav ul {
    width: auto;
    height: 100%; /* ! */
    margin: 0rem;
    padding: 0rem;
}

nav li {
    list-style-type: none;
}

nav li a {
    height: 3.1rem;
    line-height: 3.1rem;
    text-decoration: none;
    color: black;
    border-bottom: 0.1rem solid #b4b4b4;
    padding-left: 2rem;
    display: block;
}

nav li a:hover {
    color: white;
    background-color: #adadad;
}

i {
    margin-right: 0.8rem;
}

/* part 4 */

main {
    float: left;
    height: auto;
    width: 80%;
    padding: 00.8rem;
}

.content {
    width: 48%; /* box sizing yaptık. taşmaması için 48 verdim */
    display: inline-block;
    margin-right: 1.2 rem;
    border-radius: 0.3rem;
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15);
    margin-bottom: 0.6rem;
}

.img {
    width: 100%;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
    transition: opacity 0.8s;

}

.img:hover{
    opacity: 0.6; /* yukarıdaki 0.8s ile alakalı */
}

h5 {
    margin: 0.8rem;
    color: dimgray;
}

.contentText {
    margin: 0.8rem;
    color: dimgray;
    text-indent: 1rem;
}

.btn:link { /*tıklanmadan link halindeki özellikleri */
    display: block;
    width: 10rem;
    height: 3rem;
    padding: 0.8rem 0.8rem 0.8rem 2.4rem;
    background-color: #0071ce;
    border-radius: 0.3rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn:hover{
    opacity: 0.5;
}

footer {
    width: 100%;
    height: 4.3rem;
    background-color: black;
    color: white;
    line-height: 4.3rem;
    text-align: center;
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15);
}

/********************* about **********************/

h1 {
    text-align: center;
    background-color: black;
    color: white;
    height: 3.1rem;
    line-height: 3.1rem;
    border-radius: 0.3rem;
    margin:0 0.8rem ;
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15);
}

#aboutImg {
    width: 20rem;
    height: 18rem;
    margin: 1rem;
    border-radius: 0.3rem;
    float: left;
    margin-bottom: 0.5rem;
    transition: opacity 0.8s;
}

#aboutImg:hover {
    opacity: 0.6;
}

.aboutText {
    font-size: 1rem;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: justify;
    margin-right: 1rem;
    text-indent: 3rem;
 
}

/* *************** references ************ */

.references {
    width: 31%;
    height: 18rem;
    float: left;
    margin: 0.5rem;
    border-radius: 0.3rem;
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15);
    background-color: rgb(169, 170, 172);
}

.refImg {
    width: 100%;
    height: 10rem;
    border-radius: 0.3rem;
    opacity: 0.6;
    transition: opacity 0.7s;
}

.refImg:hover{
    opacity: 1;
}

.refTitle {
    font-size: 1.2rem;
    display: inline-block;
    margin-top: -0.25rem;
    color: black;
    text-align: center;
    width: 100%;
    height: 3rem;
    line-height: 3rem;
    background-color: lightslategrey;
    border-radius: 0.3rem;
}

.reftext {
    text-align: center;
}

/* *************** gallery ************ */

.galimg {
    width: 22%;
    height: 10rem;
    border-radius: 0.3rem;
    opacity: 0.8;
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15);
    margin: 0.63rem;
    transition: all 0.7s; /* sadece opacity değil tüm işlem için all kullandım */
    object-fit: cover; /*rsimleri küçültmez sbt tutr */
}

.galimg:hover{
    opacity: 1;
    border: 5px solid white;
    cursor: crosshair;
}


/* ***************** connect *************** */

iframe{
    width: 97%;
    height: 19rem;
    border-radius: 0.8rem;
    margin-top: 0.8rem;
    margin-left: 0.8rem;
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15);
}

.section1 {
    width: 97%;
    height: auto;
    margin: auto;
    margin-top: 0.8rem;
    background-color: #f2f2f2;
    padding: 0.8rem;
}

.form {
    width: 49%;
    float: left;
    height: 21rem;
    border: 0.3rem solid #d8d8d8;
    padding: 0.8rem;
    margin-right: 0.8rem;
    border-radius: 0.3rem;
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15);
}

.col25 {
    width: 25%;
    float: left;
    margin-top: 0.5rem;
}

.col75 {
    width: 75%;
    float: left;
    margin-top: 0.5rem;
}

label {
    padding: 0.1rem 0.8rem 0.8rem 0rem;
    display: inline-block;
}

input[type=text], textarea {
    width: 100%;
    padding: 0.1rem;    
    border: 1px solid #ccc;
    border-radius: 0.1rem;
}

.row::after{    /*burası çok kritik */
    content: "";
    clear: both;
    display: block;
}

input[type=submit]{
    background-color: #4caf50;
    color: white;
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 00.3rem;
    float: right;
    width: 75%;
    margin-top: 0.8rem;
}

.address {
    width: 49%;
    float: right;
    height: 21rem;
    border: 0.3rem solid #d8d8d8;
    padding: 0.8rem;
    border-radius: 0.3rem;
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15);
}

h2 {
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-decoration: underline;
}

.span1 {
    display: block;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-top: 0.8rem;
    letter-spacing: 0.3rem;
    text-align: center;
    font-size: 1rem;
}