@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

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

:root {
    --color-text-primary: #1c2a38;
    --color-text-secondary: #8A8F98;
    --color-text-success: #198754;
    --color-text-alert: #d72641;
    --color-text-secondary-dark: #fff;
    --color-text-icon: #dbdade;
    --color-bg-primary: #fff;
    --color-bg-secondary: #f3f5f9;
    --color-bg-secondary-dark: #060d29;
    --color-bg-alert: #fdeaec;
    --color-theme-primary: #623ce6;
    --color-theme-success: #198754;
    --color-theme-danger: #dc3545;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    display: block;
}

strong {
    font-weight: 600;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: var(--color-bg-secondary);
    width: 100vw;
}

.match {
    background-color: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    min-width: 600px;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 2px 0 rgba(#303030, 0.1), 0 4px 4px 0 rgba(#303030, 0.1);
}

.match[onclick] {
    cursor: pointer;
}

.match-header {
    display: flex;
    border-bottom: 2px solid rgba(#303030, 0.1);
    padding: 16px;
}

.match-status {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-right: auto;

}

.match-status.live {
    background-color: var(--color-bg-alert);
    color: var(--color-text-alert);
}

.match-status.live:before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    margin-right: 8px;
}

.match-round {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-right: auto;

}

.match-tournament {
    display: flex;
    align-items: center;
    font-weight: 600;

}
.match-tournament img {
    height: 30px;
    margin-right: 12px;
}

.match-actions {
    display: flex;
    margin-left: auto;
}

a.match-icon {
    display: block;
    padding: 3px;
    color: #3498db;
}

.btn-icon {
    border: 0;
    background-color: transparent;
    color: var(--color-text-icon);
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-content {
    display: flex;
    position: relative;
}

.column {
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% / 3);
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-bg-primary);
    box-shadow: 0 4px 4px 0 rgba(#303030, 0.15),
        0 0 0 15px var(--color-bg-secondary);

}

.team-logo img {
    width: 80px;
}

.team-name {
    text-align: center;
    margin-top: 24px;
    font-size: 20px;
    font-weight: 600;
}

.match-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-date, .match-referee {
    font-size: 14px;
    color: var(--color-text-secondary);

}

.match-date strong, .match-referee strong {
    color: var(--color-text-primary);
}

.match-score {
    margin-top: 12px;
    display: flex;
    align-items: center;
}

.match-score-number {
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
}

.match-score-number--leading {
    color: var(--color-theme-primary);
}

.match-score-divider {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text-icon);
    margin-left: 10px;
    margin-right: 10px;
}

.match-score.extra {
    margin-top: 12px;
}

.match-score.extra .match-score-number {
    font-size: 24px;
}

.match-score.extra .match-score-divider {
    font-size: 18px;
}


.match-time-lapsed {
    color: #DF9443;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.match-referee {
    margin-top: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-bet-options {
    display: flex;
    margin-top: 8px;
    padding-bottom: 12px;
}

.match-bet-option {
    margin-left: 4px;
    margin-right: 4px;
    border: 1px solid var(--color-text-icon);
    background-color: #F9f9f9;
    border-radius: 2px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
}

.match-bet-option.offer{
    border-color: var(--color-theme-primary);
    color: var(--color-text-primary);
    border-width: 2px;
}
.match-bet-option.offer.success {
    border-color: var(--color-theme-success);
    color: var(--color-text-success);
}
.match-bet-option.offer.danger {
    border-color: var(--color-theme-danger);
    color: var(--color-text-alert);
}

.match-bet-place {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    background-color: var(--color-theme-primary);
    border-radius: 6px;
    padding: 10px 48px;
    color: var(--color-text-secondary-dark);
    font-size: 14px;
    box-shadow: 0 4px 8px 0 rgba(#303030, 0.25);
}

.match-bet-place.success{
    background-color: var(--color-theme-success);
}
.match-bet-place.danger{
    background-color: var(--color-theme-danger);
}


.match-container {
    display: inline-block ;
    margin: 10px;
}

.container {
    display: inline-block;
}

.ball {
    width: 20px;
    height: 20px;
    margin: 0 0 0 5px;
    background-image: url('https://cdn2.iconfinder.com/data/icons/activity-5/50/26BD-soccer-ball-128.png');
    background-size: cover;
    animation: roll 4s linear infinite;
}

@keyframes roll {
    0% {
    }
    100% {
        transform: rotate(360deg)
    }
}

.header {
    width: 100vw;
    background-color: var(--color-bg-secondary-dark);
    min-width: 620px;
}

.header .waves-container {
    width: 100%;
}

.header .waves {
    position:relative;
    width: 100%;
    height:15vh;
    margin-bottom:-7px; /*Fix for safari gap*/
    min-height:100px;
    max-height:150px;
}

/* Animation */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}
@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% {
        transform: translate3d(85px,0,0);
    }
}
/* End of Animation */

.footer {
    margin: 20px 0;
    min-height: 200px;
    /*min-width: 620px;
    width: 100vw;*/
    background-color: var(--color-bg-secondary-dark);
    color: var(--color-text-secondary);
    padding: 20px;

}

.odds-summary-item {
    margin-left: 4px;
    margin-right: 4px;
    border: 2px solid var(--color-theme-primary);
    background-color: #F9f9f9;
    border-radius: 2px;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 600;
    width: 40px;
    height: 20px;
}

.odds-summary-item.success {
    border-color: var(--color-theme-success);
    background-color: var(--color-theme-success);
    color: var(--color-text-success);
}
.odds-summary-item.danger {
    border-color: var(--color-theme-danger);
    background-color: var(--color-theme-danger);
    color: var(--color-text-alert);
}






.lineup {
    display: grid;
    grid-template-columns: 1fr 1fr; /* İki sütun, her biri eşit genişlikte */
    gap: 20px; /* Sütunlar arasındaki boşluk */
}

.lineup .column {
    /* İsteğe bağlı: İçeriği ortalamak için kullanılabilir */
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: start;
    justify-content: flex-start;
}

.lineup .player {
    margin-bottom: 10px; /* Oyuncular arasındaki boşluk */
}

.lineup .playerno {
    font-weight: bold; /* Oyuncu numarasını kalın yapmak */
    margin-right: 5px; /* Oyuncu numarası ile adı arasındaki boşluk */
}


.profitability-container {
    max-width: 800px; /* İstersen 600px, 1000px gibi ayarlayabilirsin */
    margin: 0 auto; /* Ortalamak için */
    padding: 20px; /* Sağ ve soldan boşluk */
    color: #060d29;
}

.profitability-container .profitibility-header {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;        
    font-style: italic;
    background: #f9f9f9;
    border-radius: 12px 12px 0 0 ;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profitability-container .profitibility-footer {
    
    text-align: center;
    font-size: 14px;
    color: #888; /* Gri ton */
    font-style: italic;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profitability {
    
    padding: 5px 10px;;
    background: #f9f9f9;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.profitability .profitability-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.profitability .match-tournament {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profitability .match-actions {
    font-weight: 600;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.profitability .kpi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.profitability .kpi-item {
    display: flex;
    flex-direction: column; /* ALT ALTA yerleştirir */
    align-items: center;
    justify-content: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.profitability .keypoint {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px; /* keypoint ile indicator arasında boşluk */
}

.profitability .indicator {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
}

.profitability .indicator-alt {
    font-size: 0.7rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    border-radius: 5px;
    padding: 2px 6px;
    background-color: #060d29;
    color: white;
}

.profitability .indicator.kar {
    color: #43a047; /* Güzel bir yeşil tonu */
}
.profitability .indicator.zarar {
    color: #e53935; /* Zarar ise kırmızı */
}

/* Responsive ayar */
@media (max-width: 600px) {
    .profitability .kpi {
        grid-template-columns: repeat(2, 1fr);
    }
}


.team-container-wrapper {

    margin: 0 auto; /* Ortalamak için */
    padding: 0 20px; /* Sağ ve soldan boşluk */
    color: #060d29;
    overflow-x: auto;
}

/* Responsive ayar */
@media (max-width: 1280px) {
    .team-container-wrapper {
        max-width: 1200px; /* İstersen 600px, 1000px gibi ayarlayabilirsin */

    }
}

/* Responsive ayar */
@media (max-width: 600px) {
    .team-container-wrapper {
        max-width: 600px; /* İstersen 600px, 1000px gibi ayarlayabilirsin */
    }
}



.team-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 0 20px;
    
}

.team-box {
    display: inline-block;
    width: 50px;                /* Genişlik yarıya düşürüldü */
    margin-right: 15px;
    text-align: center;
    vertical-align: top;
    cursor: pointer;
}

.team-box.center {
        align-content: center;
}

.team-box img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.team-name {
    margin-top: 6px;
    font-size: 8px;           /* Yazı boyutu da küçültüldü */
    color: #333;
    word-wrap: break-word;
}