/* General page theme */
body {
    font-family: 'Courier New', Courier, monospace, sans-serif;
    background: linear-gradient(to bottom, #0b6623, #14532d); 
    color: white;
    margin: 0;
    padding: 0 1rem;
}

/* Header */
#mainHeader {
    text-align: center;
    background: #f5f242; 
    color: #0b6623;
    padding: 1rem;
    border-bottom: 5px solid white;
}

#websiteHeader {
    margin: 0;
    font-size: 2.5rem;
}

.sectionTitle {
    text-align: center;
    color: #f5f242;
    margin-top: 1.5rem;
}

.player {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #f5f242;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 600px;
    text-align: center;
}

.playerImg {
    display: block;
    margin: 0.5rem auto;
    width: 60%;      /* all images take up the same percentage of the card width */
    height: auto;    /* keeps the aspect ratio consistent */
    max-width: 300px; /* optional: cap the size so they don’t get huge on wide screens */
    border-radius: 10px;
    border: 3px solid white;
}


/* Links */
a {
    color: #f5f242;
    text-decoration: none;
    font-weight: bold;
}
a:hover {
    text-decoration: underline;
}

/* Rising players layout */
.risingPlayers {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* Table */
#playersTable {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem auto;
    background: white;
    color: black;
    border-radius: 8px;
    overflow: hidden;
}

#playersTable th, #playersTable td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

#playersTable thead {
    background: #0b6623;
    color: white;
}

#playersTable tr:nth-child(even) {
    background: #d6d6d6;
}

.ausOpen { 
  color:deepskyblue; 
}

.frenchOpen { 
  color: orangered; 
}

.wimbledon { 
  color: greenyellow; 
}

.usOpen { 
  color:fuchsia;
}

.rankings ol {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    max-width: 400px;
    margin: 1rem auto;
    list-style: decimal inside;
}
