@import url("reset.css");
@import url("common.css");
@import url("dialog.css");
@import url("form.css");
@import url("settings.css");
@import url("custom-elements.css");

:root {
    --font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Typography & Headings */
h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p {
    margin-top: 0.5em;
}

h1 + ul,
h2 + ul,
h3 + ul,
h4 + ul,
h5 + ul,
h6 + ul {
    margin-top: 0.5em;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: #fff;
}

/* Layout & Containers */
layout {
    display: block;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y proximity;
    padding: 6em 0 0 0;
    scroll-padding-top: 6em;
}

.section {
    padding: 5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
    max-width: 75em;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.section:not(:last-child) {
    border-bottom: 0.14em solid #888;
}

.inner {
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.inner h1 {
    color: white;
    text-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 0 1em;
}

.inner-page {
    width: 100%;
}

.inner-page > div {
    margin-left: auto;
    margin-right: auto;
}

.center-contents {
    display: flex;
    justify-content: center;
    align-items: center;
}

.two-col {
    min-width: calc(min(25em, 100%));
    display: flex;
    justify-content: space-between;
}

/* Header, Nav, Aside */
layout > header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 7rem;
    background-color: white;
    z-index: 1000;
    margin: 0;
    padding: 1rem;
    transition: all 0.5s;
    scroll-snap-align: start;
}

layout[data-scrolled] > header {
    box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    height: 5rem;
}

layout > header img {
    height: 5rem;
    width: auto;
    transition: all 0.5s;
}

layout[data-scrolled] > header img {
    height: 4rem;
}

nav {
    display: flex;
    justify-content: space-between;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem 1rem;
    align-items: center;
    flex-wrap: wrap;
}

nav ul a {
    color: #000;
    text-decoration: none;
}

nav li {
    margin-bottom: 0;
}

nav .flags {
    display: flex; 
    align-items: center; 
    gap: 0.5em;
}

layout > header > nav .flags > img {
    width: 1.75em;
    height: 1.75em;
    cursor: pointer;
    border-radius: 50%;
    border: 0.07em solid #ccc;
}

nav img {
    width: 8rem;
    height: auto;
}

nav-menu {
    display: none;
}

nav a span {
    color: #333;
}

nav a:hover {
    text-decoration: none;
}

nav a:hover span {
    color: #000;
    text-decoration: none;
}

a:hover img:not(.preview) {
    transform: none;
}

aside {
    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;
    background-color: #000;
    color: #fff;
    height: 100vh;
    width: 20%;
    padding: 2rem 1rem;
    display: none;
}

aside div.hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

aside .socials {
    display: flex;
    column-gap: 1rem;
    justify-content: center;
}

aside a {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: bolder;
}
aside ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
}
aside ul li {
    text-align: center;
}

/* Sections & Main Content */
section, main {
    scroll-snap-align: start;
}

section.slider {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

section.header {
    display: flex;
    flex-direction: column;
    height: 13rem;
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) ), url(../images/titlebg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    scroll-snap-align: start;
}


section.header.iletisim {
    background: linear-gradient( rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) ), url(../images/iletisim.jpg);
}

section.header .top {
    flex: 3 3 0;
}

section.header .bottom {
    flex: 1 1 0;
}

section.header + section {
    padding-top: 1em;
}

/* Content & Text Classes */
.kaynak {
    font-weight: bold;
}

.tarih {
    font-style: italic;
}

.icerik {
    margin-top: 1em;
    text-align: justify;
    text-justify: auto;
}

.ozet {
    margin-top: 2em;
}

/* Images & Galleries */
.swiper {
    width: 100%;
    height: calc(100vh - 2rem - 50px);
}

.swiper .swiper-slide {
    width: 100%;
    position: relative;
}

.swiper .left :is(h1, p, button){
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.swiper .right :is(h1, p, button) {
    position: absolute;
    right: 5rem;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.swiper .swiper-slide h1 {
    margin-top: 0;
}

.swiper .swiper-slide p {
    margin-bottom: 1em;
}

.swiper div.img {
    background-size: cover;
    background-position: center calc(50% + 3em);
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: calc(min(10em, 10%)) calc(min(10em, 10%));
}

.index-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
    gap: 2em;
    width: 100%;
}

.index-gallery-photo {
    width: 100%;
    height: 15em;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.index-gallery .baslik {
    font-size: 1.2em;
    font-weight: bold;
}

.gallery-photo {
    max-width: 35em;
    width: 100%;
    max-height: 30em;
    object-fit: cover;
    object-position: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30em, 1fr));
    gap: 2em;
    width: 100%;
}

.simple-nav-previous, .simple-nav-next {
    margin-top: 1em;
}

.haber-fotograf-yan {
    max-width: 30em;
    max-height: 15em;
    margin: 1em auto;
}

.haber-fotograf-dik {
    max-width: 15em;
    max-height: 25em;
    margin-left: 1em;
}

.etkinlik-fotograf {
    align-self: stretch;
    background-size: cover;
    background-position: center 0;
}

img.etkinlik-fotograf-buyuk {
    max-width: calc(min(100%, 30em));
    max-height: 35em;
    height: auto;
    align-self: start;
    margin: 0;
}

img.etkinlik-fotograf-tamboy {
    max-width: 100%;
    max-height: calc(100vh - 10em);
    height: auto;
    align-self: start;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin: 0;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 3em 3em 0 3em;
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto;
    justify-content: space-between;
    align-items: center;
    scroll-snap-align: start;
    gap: 2em;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
    color: #ddd;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer .links {
    justify-self: end;
}

.footer-page img {
    max-height: 3em;
}

footer .copyright {    
    grid-column: 1 / -1;
    text-align: center;
    font-size: 85%;
}

footer .copyright a {
    text-decoration: underline;
}

/* Buttons & Links */
.uye-bilgi a.button {
    display: inline-block;
    padding: 0.6em 1.5em;
    margin-right: 0.5em;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 0.3em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.uye-bilgi a.button:hover {
    background-color: #222;
    color: #ddd;
    text-decoration: none;
}

a.button.edit {
    background: #43a047;
}

a.button.edit:hover {
    background: #1b5e20;
}

a.button.delete {
    background: #e53935;
}

a.button.delete:hover {
    background: #b71c1c;
}

a.button.add {
    background: #3587e5;
}

a.button.add:hover {
    background: #2872c7;
}

/* Components */
div.files {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 55em;
    margin-left: auto;
    margin-right: auto;
}

div.files > div {
    display: flex;
    gap: 1em;
    padding: 1em 0 1em 1em;
}

div.files div.fiv-viv {
    flex: 0 0 3em;
}

div.files > div.info {
    flex: 1 1 0;
}

ul.sections > li {
    padding: 1em 1em 1em 2em;
    margin: 1em 0;
    background: linear-gradient(to right, #444 0.25em, transparent 0.25em);
    background-repeat: no-repeat;
    background-size: 0.5em 75%;
    background-position: left center;
    list-style: none;
}

.public-page {
    display: flex;
    align-items: center;
    width: 100%;
}

.public-page > div {
    flex: 1 1 0;
}

.public-page > div.content h3:first-child {
    margin-top: 0;
}

.public-page img {
    flex: 0 0 auto;
    max-width: calc(min(100%, 30em));
    height: auto;
    max-height: 20em;
    margin: 1em;
}

.relative {
    position: relative;
}

.uye h4 {
    margin-top: 3em;
    text-align: center;
}

.uye-bilgi {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.uye-bilgi header {
    flex: 0 0 auto;
    width: 15em;
    display: block;
    padding-bottom: 0;
    margin: 0;
    margin-bottom: 0.5em;
    z-index: -1;
    border-radius: 0;
    font-size: 120%;
    font-weight: bold;
    overflow: hidden;
    text-align: left;
    color: unset;
    position: sticky;
    top: 0;
    background-color: white;
}

header.notitle {
    position: unset;
}

.uye-bilgi div, .uye-bilgi > table, .uye-bilgi > fragment-container {
    flex: 1 1 0;
    min-width: calc(min(30em, 100%));
}

.uye img.float-right {
    max-width:10em;
    max-height:12em;
    right:0;
    position:absolute
}

.uye-bilgi .float-right {
    max-width:10em;
    max-height:12em;
    top:5em;
    right:5em;
    position:absolute
}

.uye-bilgi .listing-row {    
    padding-bottom: 1em;
    padding-top: 1em;
    border-bottom: var(--border-thin) hsl(var(--main-hue), 50%, 80%) solid;
}

.uye-bilgi.connect-below {
    margin-bottom: -8em;
}

.uye-bilgi .links {
    margin-top:1.5em;
}

/* Utilities & Helpers */
.scroll-snap-align {
    scroll-snap-align: start;
}

.scroll-snap-stop {
    scroll-snap-stop: always;
}

.iletisim {
    display: grid;
    gap: 2em;
    grid-template-columns: repeat(auto-fill, minmax(25em, 1fr));
}

form.tiny {
    display: flex;
    flex-direction: column;
    gap: 0em;
    align-items: stretch;
}

form.tiny label {
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0;
    text-align: left;
    font-size: 90%;
}

form.tiny input[type=submit] {
    margin-top: 1.5em;
    cursor: pointer;
    max-width: 5em;
}

form.tiny input[type="text"],
form.tiny input[type="email"],
form.tiny textarea {
    width: 100%;
}

form.tiny input[type="text"]:focus,
form.tiny input[type="email"]:focus,
form.tiny textarea:focus {
    border-color: #3587e5;
    outline: none;
}

ul.uye {
    list-style-type: "👤";
}

ul.uye li {
    margin-top: 1em;
    padding-left: 1em;
}

ul.uye a {
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    text-decoration: none;
}

ul.uye b {
    flex: 0 0 2.5em;
}

ul.uye span {
    flex: 1 1 0;
}

nav-menu {
    cursor: pointer;
}


/* Media Queries */
@media all and (max-width: 1100px) {
    .section, .public-page {
        flex-direction: column;
        padding: 2em 1em;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer .links {
        justify-self: center;
    }

    .public-page img {
        margin-left: auto;
        margin-right: auto;
    }

    .uye-bilgi .float-right {
        top: 10em;
    }
        
    section.header {
        height: 10rem;
    }

    .uye-bilgi header {
        margin: 0;
        margin-bottom: 0.5em;
        z-index: 100;
        font-size: 120%;
        font-weight: bold;
        color: black;
        position: sticky;
        top: -1.75em;
        background-color: white;
        width: 100%;
        text-align: center;
        padding: 0.5em;
    }

    .uye-bilgi header.no-title {
        background-color: transparent;
        position: unset;
        z-index: -1;
    }

    .uye-bilgi.connect-below {
        margin-bottom: -2em;
    }

    .uye-bilgi a.button {
        margin-top: 0.5em;
    }

    .uye-bilgi a.button {
        padding: 0.6em 1.2em;
    }

    header#main-header > nav > ul {
        display: none;
        position: absolute;
        right: 5em;
        width: 20em;
        max-width: calc(100% - 5em);
        background-color: white;
        border: var(--border) hsl(var(--main-hue), 50%, 80%) solid;
        box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.2);
        padding: 2em;
        font-size: 16px;
        border-radius: 1em;
    }

    header#main-header > nav > ul > li {
        display: block;
        margin-bottom: 1.5em;
    }

    nav .flags {
        gap: 1.5em;
    }

    nav .flags img {
        width: 2.5em;
        height: 2.5em;
    }

    nav-menu {
        display: block;
        height: 1.5em;
        margin-top: auto;
        margin-bottom: auto;
        font-size: 200%;
    }

    .dialog {
        padding-top: 6rem;
    }

    .uye-bilgi header {
        top: -1.75em;
    }
}

@media all and (max-width: 768px) {
    :root {
        --font-size: 14px;
    }

    .section, .public-page {
        flex-direction: column;
        padding: 2em 0.5em;
    }

    .uye-bilgi img.float-right,.uye img.float-right {
        position: unset;
        max-width: 100%;
        height: auto;
        margin: 1em auto;
        top: unset;
        right: unset;
        display: block;
    }

    table.details > tbody > tr > th {
        word-wrap: unset;
        width: unset;
    }

    .uye-bilgi a.button {
        padding: 0.6em 0.8em;
    }

    header#main-header > nav > ul {
        right: 4em;
    }
}

@media all and (max-height: 800px) {
    section.header {
        height: 8em;
    }
}