:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --post-color: #F3F6F9;
    --post-border: #dadbdd;
    --visitor-box: #f8f9fa;
    --visitor-box-color: #000;
}

[data-theme="dark"],[data-theme="siyah"],[data-theme="black"]{
    --bg-color: #1a1a1a;
    --text-color: #f5f5f5;
    --post-color: #363636;
    --post-border: #4c4c4c;
    --visitor-box: #4c4c4c;
    --visitor-box-color: #fff;


}

*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}

body{
    background-color:var(--bg-color);
    color:  var(--text-color) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: "Ubuntu", serif;
    font-weight: 700;
}

h1,h2,h3,h4{
    color:#f75a5a;
}

header {
    background-color: #3456B5;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/src/img/header.jpg");
    background-position:top;
    background-size: cover;
    width: 100%;
    height: 450px;
}

.header_menu{
    width:100%;
    height: 50px;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
}

.ads_button{
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.ads_button > img{
    width: 25px;
    margin-right: 5px;
}

#inverse{
    flex-direction: row-reverse;
}

#inverse > img{
    margin-left: 5px;
    
}

.contact_message, .contact_message2 {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background-color: #2fc595;
    color: #fff !important;
    font-weight: bold;
    font-size: 13px;
    border-radius: 16px;
    padding: 5px 10px;
    height: 30px;
    display: flex;
    align-items: center;
}

.contact_message span, .contact_message2 span {
    display: inline-block;
    position: relative;
    animation: slide-left 10s linear infinite;
}

@keyframes slide-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes glowing-border {
    0% {
        box-shadow: 0 0 4px #FE6D6D, 0 0 5px #FE6D6D, 0 0 6px #FE6D6D;
    }
    50% {
        box-shadow: 0 0 4px #FF8E8E, 0 0 5px #FF8E8E, 0 0 6px #FF8E8E;
    }
    100% {
        box-shadow: 0 0 4px #FFB7B7, 0 0 5px #FFB7B7, 0 0 6px #FFB7B7;
    }
}

.top-rank {
    border: 1px solid #FE6D6D;
    animation: glowing-border 1.5s infinite alternate;
    border-radius: 8px;
    padding: 10px;
}
.visitor_box {
    text-align: left;
    font-size: 10px;
    font-weight: bold;
    background: var(--visitor-box);
    color:var(--visitor-box-color);
    padding: 8px;
    border-radius: 0 5px 5px 0;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
    margin: 10px;
    width: 100px;
    position: absolute;
    top: 50px;
    left: -10px;
}
.contact_message2 {
    height: 50px;
    font-size: 16px;
    border-radius: 16px 16px 0 0;
}

main{
    width:70%;
    background-color: var(--bg-color);
    position: relative;
    bottom: 110px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 20px;
}

#post-container {
    display: flex;
    flex-direction: column; 
    gap: 20px; 
    width: 100%; 
}

.post {
    background: var(--post-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--post-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    width: 100%; 
    box-sizing: border-box; 
    min-width: 1010px;
    min-height: 158.16px;
}

.post_left{
    width: 20%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
}
.ranking {
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: #FF7171;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}


.post_image{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.post_image > img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.post_right{
    width: 80%;
    height: 100px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.post_right_r{
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

}

.post_right_r_h{
    font-size: 26px;
    margin-bottom: 20px;
}

.post_right_r_c{
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    padding: 2px 2px;
    border-radius: 12px;
    font-size: 0.95em;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    overflow: hidden;
    position: relative;
    white-space: nowrap; 
    width: 100%; 
    height: 30px; 
    text-overflow: clip;
    
}

.post_right_r_c::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    z-index: 1;
    pointer-events: none;
}

.post_right_r_c span {
    display: inline-block;
    position: relative;
    animation: scroll-text 10s linear infinite; /* Animasyon */
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.copy-text {
    color: red; 
    font-weight: bold;
    cursor: pointer; 
    text-decoration: underline;
    transition: color 0.3s ease; 
}


.post_right_l{
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.post_right_l > a{
    text-decoration: none;

}

.post_right_l_b {
    width: 100%;
  appearance: button;
  background-color: transparent;
  background-image: linear-gradient(to bottom, #39C0DB, #06cef7);
  border: 0 solid #e5e7eb;
  border-radius: .5rem;
  box-sizing: border-box;
  color: #fff ;
  column-gap: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-family: ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: 100%;
  font-weight: 700;
  line-height: 24px;
  margin: 0;
  outline: 2px solid transparent;
  padding: 1rem 1.5rem;
  text-align: center;
  text-transform: none;
  transition: all .1s cubic-bezier(.4, 0, .2, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-shadow: -6px 8px 10px rgba(81,41,10,0.1),0px 2px 2px rgba(81,41,10,0.2);
  margin-bottom: 10px;
}

.post_right_l_b:active {
  background-color: #f3f4f6;
  box-shadow: -1px 2px 5px rgba(81,41,10,0.15),0px 1px 1px rgba(81,41,10,0.15);
  transform: translateY(0.125rem);
}

.post_right_l_b:focus {
  box-shadow: rgba(72, 35, 7, .46) 0 0 0 4px, -6px 8px 10px rgba(81,41,10,0.1), 0px 2px 2px rgba(81,41,10,0.2);
}


#green-button{
  background-image: linear-gradient(to bottom, #2fc595, #08e49e);
}


        .modal {
            display: none; 
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.8); 
        }

        .modal-content {
            background-color: var(--bg-color);
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 500px;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
        }

        .modal_header{
            width: 100%;
            border-bottom: 1px solid gray;
            margin-bottom: 10px;
            display: flex;
            flex-direction:row;
            align-items: center;
            justify-content: space-between;
        }

        .close, .close-info {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            position: relative;
            bottom: 5px;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        footer{
            width: 100%;
            background-color: var(--post-color);
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            padding: 10px;
            text-align: justify;
        }
        
        @media (max-width: 768px) { 

            .post{
                min-width: unset;
                min-height: unset;
            }
            header{
                height: 300px;
            }
           main{
            width:100%;
            padding: 5px;
           }

           .post_right_r_h {
            font-size:20px;
           }

           .post_right_l {
            padding: 10px;
            margin-top: 10px;
           }

           .post_right_l_b {
            padding: 1rem 0.1rem;
           }

           .contact_message{
            display: none;
           }

           .contact_message2{
            display: flex;
            margin-top: 102px;
           }

           .ranking{
            top: -50px;
            left: -20px;
           }
        }

        @media (min-width: 768px) {
            .contact_message2{
                display: none;
               }
        }
        