/*!
 * Chris Carolan
 */

 *,
 *:after,
 *:before {
    box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
    background-color: #faf8f9;  /* Light gray instead of purple */
    color: #212529;             /* Dark gray text */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.center-text {
   text-align: center;
   font-size: 40px;
   color: #014227;
}

/* Rankings table styles */
#rankings-display {
    width: 95%;
    margin: 20px auto;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    clear: both;
    /* Pulls the table up beside the nav buttons. Restore this when buttons are uncommented:
    margin-top: -175px;
    */
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    color: #333;
    font-size: 16px;
}

.th-short {
    display: none;
}

.rankings-table th {
    background-color: #014227;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

.rankings-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.rankings-table tr:nth-child(even) {
    background-color: #f9f9f9;
    background: 0.5;
}

.site-header {
    text-align: center;
}

.site-logo {
    display: block;
    width: 100px;
    height: 100px;
    max-width: 30vw;
    max-height: 30vw;
    margin: 12px auto 0;
}
/* Mobile responsive design - HAMBURGER MENU */
@media (max-width: 768px) {
    /* Hide navigation by default on mobile */
    .navigation-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.9);
        z-index: 9999;
        padding: 20px;
        overflow-y: auto;
    }
    
    /* Hamburger menu button */
    .mobile-menu-btn {
        display: block;
        background-color: #014227;
        color: white;
        border: none;
        padding: 15px 20px;
        font-size: 18px;
        cursor: pointer;
        margin: 10px auto;
        border-radius: 5px;
        width: 200px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Navigation buttons in mobile menu */
    .navigation-menu button {
        display: block;
        width: 100%;
        padding: 15px;
        margin-bottom: 10px;
        font-size: 16px;
        background-color: #014227;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px;
    }
    
    .center-text {
        font-size: 22px;
    }

    .site-logo {
        width: 72px;
        height: 72px;
        max-width: 72px;
        max-height: 72px;
    }

    /* Rankings table adjustments */
    #rankings-display {
        margin: 12px;
        padding: 10px;
        width: auto;
        overflow-x: visible;
    }
    
    .rankings-table {
        font-size: 12px;
        table-layout: fixed;
        width: 100%;
    }

    .th-full {
        display: none;
    }

    .th-short {
        display: inline;
    }
    
    .rankings-table th,
    .rankings-table td {
        padding: 8px 4px;
        vertical-align: middle;
        word-wrap: break-word;
    }

    .rankings-table th:nth-child(-n+4),
    .rankings-table td:nth-child(-n+4) {
        width: 19%;
    }

    .rankings-table th:nth-child(5),
    .rankings-table td:nth-child(5) {
        width: 24%;
    }
}

/* Desktop - hide hamburger button */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .navigation-menu {
        display: block;
    }
}