@charset "utf-8";
/* CSS Document */

.phase-finale {
    width: 766px;
    margin: auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    overflow-x: auto;
}

.bracket-wrapper {
	position: relative;
}

.bracket {
    display: flex;
    /*align-items: flex-start;*/
    align-items: stretch;
    gap: 18px;
    position: relative;
}

#svg-lines {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
	z-index: 1;
}

.round {
    display: flex;
    flex-direction: column;
    position: relative;
}

.round-title {
    background: linear-gradient(to bottom,#103a72,#08264a);
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    padding: 8px 5px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.third-place .round-title {
    margin-bottom: 52px;
}

.round-body {
    flex:1;
    display: flex;
    flex-direction: column;
    /*align-items: stretch;*/
    justify-content: space-around;
    position: relative;
}

.third-place {
	position: absolute;
    bottom: 100px;
}

.round.final .round-title {
    background: linear-gradient(to bottom,#d9a323,#b78400);
}

.round.final .round-body .third-place .round-title {
    background: linear-gradient(to bottom,#b96d3d,#934c1f);
}

.round.final .round-body .match {
    border: 2px solid #d9a323;
}

.round.final .round-body .third-place .match {
    border: 2px solid #b96d3d;
}

.round.final .round-body .match::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    background-image: url('/image/worldcup.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#match-30::before {
	top: -100px;
	width: 100px;
    height: 100px;
    background-image: url('/image/worldcup.png');
}

#match-31::before {
	top: -50px;
	width: 50px;
    height: 50px;
    background-image: url('/image/bronze_medal.png');
}

/*
.match-spacer-8  { height: 55px; }
.match-spacer-4  { height: 140px; }
.match-spacer-2  { height: 280px; }
.match-spacer-1  { height: 420px; }
*/
.match {
    width: 170px;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    margin-bottom: 2px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.match-header {
    background: #f3f3f3;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #ddd;
    padding: 4px 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-header img {
    vertical-align: middle;
    max-height: 14px;
}

.team {
    display: flex;
    align-items: center;
    padding: 5px 6px;
    font-size: 16px;
    border-bottom: 1px solid #efefef;
}

.team:last-child {
    border-bottom: none;
}

.team.alt {
    background: #f8f8f8;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.team img {
    width: 18px;
    height: auto;
    margin-right: 7px;
}

.team-name {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.score {
    font-weight: bold;
    min-width: 18px;
    text-align: right;
}

.pen {
    font-size: 10px;
    color: #666;
    margin-left: 2px;
}





/*
@media screen and (max-width: 900px) {

    .phase-finale {
        width: 100%;
    }

    .bracket {
        min-width: 1180px;
    }
*/
}