body {
    padding: 0;
}

h1 {
    text-align: left;
    margin: 20px 0 20px 0;
}

.title {
    text-align: left;
    font-size: 80px;
    width: 100%;
    margin-left: 20px;
}

.matches-content,
.page-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

.matches-container,
.tickets-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: 20px;
}

.matches-box,
.ticket-box {
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    height: 300px;
    background-color: #e0dfdf;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.matches-box:hover,
.ticket-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.matches-box h2 {
    margin: 0;
    font-size: 30px;
}

.matches-box p.matches,
.ticket-box p.ticket {
    margin: 0;
    align-self: flex-start;
    font-size: 18px;
    line-height: 1.4;
}

.ticket-box .ViewTicket,
.return-button,
.buyTicket-back,
.buyTicket-confirm {
    background-color: #527244;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    padding: 8px 12px;
    transition: background-color 0.2s, opacity 0.3s ease;
}

.ticket-box .ViewTicket:hover,
.buyTicket-confirm:hover {
    background-color: #435733;
}

.matches-box .buybutton { 
    align-self: flex-end; 
    margin-top: 15px; 
    background-color: #527244; 
    color: white; 
    padding: 8px 12px; 
    text-decoration: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: background-color 0.2s; 
} 

.matches-box .buybutton:hover { 
    background-color: #435733; 
}

.ticket-box .ViewTicket {
    align-self: flex-end;
    margin-top: 15px;
    padding: 3px 3px;
}

.ViewTicket img {
    height: 34px;
    width: 34px;
    object-fit: contain;
}

.ViewTicket a {
    text-decoration: none;
    color: inherit;
}

.teams span.home-team,
.teams span.away-team {
    font-size: 30px;              /* same as .team-name */
    font-weight: 600;
    font-family: 'DM Serif Display', serif;
}


.return-button,
.buyTicket-back {
    position: absolute;
    bottom: 14px;
    left: 40px;
    font-size: 15px;
}

.ownedTicket-box,
.buyTicket-card {
    position: relative;
    font-size: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 900px;
    height: 350px;
    background-color: #e0dfdf;
    padding: 40px;
    border-radius: 6px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ownedTicket-teams,
.buyTicket-teams {
    font-size: 40px;
    text-align: center;
    font-weight: 600;
}

.ownedTicket-details,
.buyTicket-details {
    font-size: 18px;
    text-align: center;
    line-height: 1.8;
}

.ownedTicket-seat,
.ownedTicket-date,
.sownedTicket-tadium,
.buyTicket-details span {
    display: block;
    margin: 8px 0;
}

.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.qr-section img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 4px;
}

.buyTicket-action {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.heart-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    padding: 0;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.heart-btn:hover {
    color: red;
}

.heart-btn:visited {
    color: inherit;
}

.team-name {
    font-size: 30px;
    font-weight: 600;
    font-family: 'DM Serif Display', serif;
}


.success-message {
    background-color: #e6f4ea;
    color: #1e4620;
    padding: 16px 24px;
    border-radius: 10px;
    margin: 20px auto 30px;
    max-width: 700px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

