/*Haochen Yang's code starts from here*/
* {
    margin: 0 auto;
    box-sizing: border-box;
}

body {
    background: deepskyblue;
    font-family: arial, helvetica, sans-serif;
    color: yellow;
    text-align: center;
}

#page-wrapper {
    width: 100vw;
    margin: 0 auto;
}

#content {
    display: flex;
    flex-direction: column;
    width:100%;
    max-width: 1100px;
    visibility:hidden;
}
header {
    min-height:100%;
    width:100%;
    background: url("./src/court.png")center;
    background-size:cover;
    text-align: center;
    font-weight: bold;
    padding:2%;
}

header h1{
    font-weight: bold;
    font-size: calc(18px + 1vw);
    color:yellow;
    margin: 5px;
    padding: 5px;
}

header p {
    color:yellow;
    font-size: calc(10px + 0.8vw);
    margin: 5px;
    padding: 5px;
}
header button {
    color:skyblue;
    margin:5px;
    padding:8px 14px;
    font-size:calc(12px + 0.3vw);
}
/*The whole nav part was done by Siyu Yang*/
nav {
    background:white;
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    padding-left:0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    color:skyblue;
    text-decoration: none;
    padding: 18px 26px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    border: 1px solid #14f3ad;
    color:black;
}
/*Siyu Yang's Nav template ends here*/
/* =============================================
   The Big FOOTER templates is also from Siyu Yang
   ============================================= */


table {
    width: 100%;
    margin: 20px auto;
}

th, td {
    text-decoration: none;
    font-weight: bold;
    padding: 16px;
    color: yellow;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
}

#grand-slams-img{
    transition: transform 10s linear;
}
#grand-slams-img:hover {
    transform: rotate(-90deg);
}

footer {
    background: skyblue;
    text-align: center;
    padding: 16px;
    color: black;
    border-top: 4px solid yellow;
}
/*The value in parathesis should be between 750 to 1200*/
@media screen and (max-width:1000px) {
    header{
        text-align: center;
    }
    #content {
        flex-direction: column;
    }
    nav,main{
        width:100%;
        display:block;
    }
}
/*Haochen Yang's code ends in here*/