@font-face {
    font-family: "arvo";
    src: url(assets/arvo.ttf);
}

* {
    margin: 0;
    padding: 0;
}

body {
    --dark: #000000;
    --light: #ffffff;
    --primary: #ffa600;
    --secondary: #ffd483;

    font-family: "arvo";

    display: flex;
    flex-direction: column;
    height: 100vh;
}

.top-menu {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    padding: 20px;
    padding-left: 60px;
    padding-right: 60px;
}

.name {
    color: var(--light);
    letter-spacing: 1px;
}

.pages {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.pages a {
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    color: var(--light);
}

.pages a:hover {
    color: var(--secondary);
}

.pages #current {
    border-bottom: solid 3px var(--light);
}

.pages #current:hover {
    border-bottom: solid 3px var(--secondary);
}

.container {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.highcharts-figure,
.highcharts-data-table table {
    width: calc(100% - 40vw - 60px);
}

#container {
    height: 400px;
}

.highcharts-data-table table {
    font-family: Verdana, sans-serif;
    border-collapse: collapse;
    border: 1px solid #ebebeb;
    margin: 10px auto;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 1.2em;
    color: #555;
}

.highcharts-data-table th {
    font-weight: 600;
    padding: 0.5em;
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
    padding: 0.5em;
}

.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
    background: #f8f8f8;
}

.highcharts-data-table tr:hover {
    background: #f1f7ff;
}

.games {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 40vw;
}

.games th {
    background-color: var(--primary);
    color: var(--light);
}

.games td, .games th {
    border: none;
    text-align: left;
    padding: 8px;
}
  
.games tr:nth-child(even) {
    background-color: #F2F4F3;
}

.games tr:hover {
    background-color: #ffedcb;
}

.result {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
}

.result-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 60vw;
    border: solid 3px var(--primary);
    padding: 20px;
}

.result h1 {
    font-size: 3em;
    color: var(--primary);
}

.result img {
    width: 10vw;
    height: auto;
}

.rules {
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 40px;
}

.rules h1 {
    margin-bottom: -5px;
}

.rules h2 {
    margin-top: 15px;
    font-size: 1em;
}

.rules ul {
    list-style-type: disc;
    margin-block-start: 0.5em;
}

.rules li {
    margin: 2px;
    margin-left: 20px;
}

.rules ul ul li {
    margin-left: 40px;
}

@media screen and (max-width: 900px) {
    body {
        height: 100svh;
    }
    
    .top-menu {
        padding: 30px;
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .name {
        letter-spacing: 2px;
        font-size: 1.2em;
        font-weight: bold;
    }
    
    .pages {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }
    
    .pages a {
        font-size: 1em;
    }
    
    .container {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 40px;
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 0px;
        padding-right: 0px;
    }
    
    .highcharts-figure,
    .highcharts-data-table table {
        min-width: 310px;
        max-width: 800px;
    }
    
    #container {
        height: 400px;
    }
    
    .highcharts-data-table table {
        font-family: Verdana, sans-serif;
        border-collapse: collapse;
        border: 1px solid #ebebeb;
        margin: 10px auto;
        text-align: center;
        width: 100%;
        max-width: 500px;
    }
    
    .highcharts-data-table caption {
        padding: 1em 0;
        font-size: 1.2em;
        color: #555;
    }
    
    .highcharts-data-table th {
        font-weight: 600;
        padding: 0.5em;
    }
    
    .highcharts-data-table td,
    .highcharts-data-table th,
    .highcharts-data-table caption {
        padding: 0.5em;
    }
    
    .highcharts-data-table thead tr,
    .highcharts-data-table tr:nth-child(even) {
        background: #f8f8f8;
    }
    
    .highcharts-data-table tr:hover {
        background: #f1f7ff;
    }
    
    .games {
        font-family: arial, sans-serif;
        border-collapse: collapse;
        width: calc(100vw - 80px);
    }

    .result {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 40px;
    }
    
    .result-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        width: 70vw;
        border: solid 4px var(--primary);
        padding: 20px;
        padding-bottom: 30px;
        padding-top: 30px;
    }
    
    .result h1 {
        font-size: 1.5em;
        color: var(--primary);
    }
    
    .result img {
        width: 10vw;
        height: auto;
    }

    .rules {
        padding-left: 40px;
        padding-bottom: 40px;
    }
    
    .rules ul {
        list-style-type: disc;
        margin-block-start: 0.5em;
    }

    .rules li {
        margin-left: 40px;
        margin: 5px;
    }

    .rules ul ul li {
        margin-left: 40px;
    }
}