@font-face {
    font-family: "HarryP";
    src: url(fonts/HarryP.TTF);
}

@font-face {
    font-family: "Tiffany";
    src: url(fonts/ITC-Tiffany-Demi.ttf);
}


body{
    font-family: 'Times New Roman', Times, serif;
    padding: 20px 0 ;
    margin: 0;
    text-align: center;
    background-image: url("images/background.jpg");
    background-size:auto;
    background-position: center;
}

h1 {
    font-family: "HarryP";
    font-size: 100px;
    margin: 0;
}

h2 {
    font-family: "HarryP";
    font-size: 24px;
    line-height: 120%;
    margin: 0 0 10px;
}

h3 {
    font-size: 28px;
    padding: 5px 0;
    margin: 0;
    color: darkred;
    border-radius: 8px;
    background-color: rgba(0,0,0,.2);
    width: 100%;
}

#main {
    display: flex;
    justify-content: center;
    border-radius: 16px;
    padding: 20px;
    gap: 20px;
    height: 800px;
    overflow: hidden;
}

.cnt-panel{
    background-image: url("images/parchment.jpg");
    background-position: center;
    background-size: cover;
    border-radius: 10PX;
    font-family: 'tiffany';

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    box-shadow: 0 0 20px black;
    max-height: 900px;
}

p {
    margin: 0px;
}

ol {
    text-align: left;
    padding-left: 20px;
    margin: 0 0 20px;
    width: 100%;
}




/* TEAM SECTIONS*/

.cnt-team-selector {
    display: flex;
    gap: 20px;
    margin: 8px 0 20px 0;
}

.icon-btn {
    height: 50px;
    padding: 5px;
    box-shadow: 0 0 5px black;
}

.gryffindor-btn {
    background-color: #740001;
}

.slytherin-btn {
    background-color: #1a472a;
}

.hufflepuff-btn {
    background-color: #eeb935;
}

.ravenclaw-btn {
    background-color: #0d1e4a;
}


.team-icon {
    height: 100%;
    width: auto;
    margin: auto;
    opacity: 0.8;
}

.icon-btn:hover {
    background-color: white;
}


/* ------------------------------------------ */


.score-display {
    background-color: rgba(0,0,0,.2);
    width: 100%;
    padding: 5px 0px;
    border-radius: 8px;
    margin: 20px 0;
}

.score-title {
    margin: 0;
    font-size: 18px;
}

.score {
    font-size: 80px;
    margin: 0;
}

.section-title {
    font-size: 18px;
    margin-bottom: 4px;
}

.team-controls { 
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin: 0 0 20px;
}

.btn-list .btn-add-points{
    background-color: darkgreen;
}

.btn-list .btn-foul{
    background-color: darkred;
}


button {
    width: 100%;
    min-width: 70px;
    padding: 10px 10px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: goldenrod;
    text-shadow: 0 0 30px black;
    box-shadow: 0 0 10px black;
}

.btn-add-points:hover {
    background-color: white;
    color: darkgreen;
}

.btn-foul:hover {
    background-color: white;
    color: darkred;
}

.btn-label {
    font-weight: 900;
    text-align: left;
}

.btn-points {
    font-weight: 100;
    font-size: 18px;
}

.btn-snitch {
    width: 100%;
    margin-top: 5px;
    border: none;
    background: goldenrod;
    color: darkred;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.btn-snitch:hover {
    background-color: darkred ;
    color: goldenrod;
}

.btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-game-control {
    background: transparent;
    border: 3px solid darkred;
    border-radius: 4px;
    color: darkred;
    justify-content: center;
    padding: 5px;
}

.btn-game-control:hover {
    background: darkred;
    border: 3px solid darkred;
    border-radius: 4px;
    color: goldenrod;
    justify-content: center;
    padding: 5px;
}


/* CONTROLS SECTION*/

#cnt-center-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    min-width: 350px;
    max-width: 350px;
    max-height: auto;
}

#cnt-history {
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-color: red transparent;
    flex: 1;
}

#cnt-history p {
    text-align: left;
}


/* Misc Elements */

hr {
    border: none;
    border-top: 1px solid black;
    margin: 0 0 20px 0;
}

.extra-top {
    margin-top: 20px;
}