@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');
:root{
    --red:rgb(228, 47, 47);
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-sans-serif;
    
}
body{
    background-color: black;
}
header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid white;
}
header h1{
    color: white;
    font-weight:600;
    padding: 1rem 1.5rem;
}
.brand{
    color:var(--red);
    font-weight: bold;
    font-size: 2.5rem;
}
.empty{
   width: 150px;
}
.heading{
    text-align: center;
    padding: 20px;
    color: #eee;
}
#main{
    display: flex;
    flex-direction: column;
}
.scorecard{
    width: 60%;
    margin: 20px auto;
    border-radius: 5px;
    background-color: white;
    padding:20px 15px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column; 
    box-shadow: var(--red) 0px 7px 25px 0px;
    box-sizing: content-box;
}
.scorecard:hover{
    border: 3px solid var(--red);
    transition: border 0.05s ease;
    box-shadow: none;
}
.scorecard h4{
    padding: 10px;
    color: black;
    font-size: 1em;
}
.scorecard h3{
    text-align: center;
    font-size: 1.5em;
}
.scorecard p{
    margin: 20px auto;
    font-size: 1.2em;
    color:green;
}
.match-id{
    display: none;
}
.match-score{
    background-color: white;
    border-radius: 10px;
    width:90%;
    margin: 20px auto;
}
.not-started{
    padding: 20px;
    font-size: 1.5em;
    background-color: white;
    width:70%;
    border-radius: 10px;
    margin: 20px auto;
}
.not-started h2{
    display: block;
    text-align: center;
    margin: 100px auto;
}
.score-display{
    margin-left:35px ;
}
.back-not{
    position:absolute;
    left:20%;
    margin: 30px 0;
    background-color: lightgray;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.back-not:active{
    background-color: var(--red);
}
.back{
    position:absolute;
    left:10%;
    margin: 30px 0;
    background-color: lightgray;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.back:active{
    background-color: var(--red);
}
.match-head{
    margin-top:15px;
    font-size: 2em;
    padding: 30px 10px;
    text-align: center;
}
.team-score{
    padding:0  10px;
    font-size: 1.3em;
    font-weight: bold;
}
.current-rr{
    font-size: 1.1em;
    font-weight: 400;
    padding: 15px 10px;
}
.required-rr{
    font-size: 1.1em;
    font-weight: 400;
    padding: 0 10px;
}
.status{
    margin: 10px 0;
    padding: 5px 10px;
    color: green;
}
.recent{
    font-size: 1em;
    padding: 5px 10px;
}
table{
    border-collapse: collapse;
    margin: 20px  10px ;
    width: 90%;
    border: 1px solid black;
}
thead tr{
    background-color: lightgray; 
    font-weight: 600;
    font-size: 1.15em;
}
table tr{
    padding: 0.45em;
    border: 1px solid black;
}
table td{
    text-align: left;
    padding: 1em;
    font-size: 1em;
    width:25px;
    
}
.player{
    width:150px;
}
.p-name{
    color:rgb(7, 41, 153);
    padding:5px 7px;
}
.comm{
    display: flex;
    flex-direction: column;
    width:90%;
    margin: 20px auto;
}
.comm p{
    padding: 15px;
    font-size: 1em;
}
.comm-heading{
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    text-decoration: underline;
    margin: 20px 0;
}
.content{
    background-color: #eee;
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: 20px auto;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}
.content h2{
    font-size: 1.5em;
    padding: 10px 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}
.content p{
    font-size: 1.2em;
    padding: 10px 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}
.news-id{
    display: none;
}
.news-data{
    display: flex;
    flex-direction: column;
    width:90%;
    margin: 20px auto;
} 
.news-data p{
    margin-top:10px;
    text-align: left;
}
.api-error{
    background-color: white;
    width:85%;
    margin:20px auto;
    padding:10px 0;
    text-align: center;
}
.btn{
    padding:5px 10px;
    background-color: black;
    color:white;
    border-radius: 10px;
    text-align: center;
    margin: 25px auto;
    text-decoration: none;
    border:2px solid black;
}
.btn:hover{
    background-color: white;
    color:black;
}
@media screen and (max-width:540px) {
    
    .empty{
        display: none;
    }
    header{
        justify-content: center;
    }
    .not-started{
        width:80%;
        font-size: 1.1em;
    }
    .scorecard,.content{
        width:80%;
    }
    .score-display{
        margin-left:10px;
    }
    table td{
        padding: 0.5em;
        font-size: 0.7em;
    }
    .comm{
        width:100%;
    }
    .comm p{
        padding: 8px;
        border-bottom: 1px solid black;
        width:95%;
    }
    .back{
        left:25px;
        margin: 5px 0;
    }
}
