:root {
    --dark-purple: #3a2d8c;
    --light-purple: #685ac7;
    --red: #d91832;
    --gold: #ffbf00;
}

<style>

    /* Center the main content and control its width */
     .main-container {
        width: 80%;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
        border: 2px solid var(--light-purple); /* Your container border color */
        box-shadow: 0 0 10px 10px rgba(104, 90, 199, 0.6); /* Glow effect */
        border-radius: 8px;
    }

    .footer {
        background-color: var(--light-purple);
        padding: 20px 0;
        text-align: center; /* Center text */
        border-radius: 8px;
        margin-top: 65px;
    }

    .footer-container {
        width: 80%;
        margin: 0 auto;
    }

    .footer a {
        color: #007bff; /* Link color */
        text-decoration: none;
    }

    .footer a:hover {
        text-decoration: underline;
    }

    .content-panel {
        background-color: white;
        padding: 20px;
        border-radius: 8px;
        width: 100%;
    }

    .wrapper {
        margin-top: 125px; /* Adjust based on navbar height */
        flex-direction: column;
        align-items: center;
        width: 70%;
        max-width: 1200px;
    }

    .table-header {
        background-color: var(--light-purple); /* Set your desired background color */
        color: white; /* Optional: change text color */
    }

    h1 {
        color: var(--dark-purple);
        font-weight: 400; /* Bold weight for a stronger header */
        font-size: 2rem;  /* You can adjust this based on your design */
    }

    h2 {
        color: var(--dark-purple);
        font-weight: 400; /* Bold weight for a stronger header */
        font-size: 1rem;  /* You can adjust this based on your design */
    }

    .number-grid {
        display: grid !important;
        grid-template-columns: repeat(8, 50px) !important;
        gap: 10px !important;
        justify-content: center;
        margin-bottom: 20px;
        min-width: 100%; /* Ensure it stretches to take up full width */
        width: 100%;
    }

    .number {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: white;
        color: silver;
        border: 1px solid silver;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .selected {
        background-color: lightgreen;
        border: 0px;
        color: white;
        font-weight: bold;
    }
    .submit-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: silver;
    }
    .submit-button {
        background-color: lightgreen;
        border-radius: 10px;
        border: 1px solid #ccc;
        cursor: pointer;
        color: grey;
        transition: background-color 0.3s;
        padding: 5px 15px;
    }
    .reset-button {
        background-color: white;
        color: grey;
        border-radius: 10px;
        border: 1px solid #ccc;
        cursor: pointer;
        transition: background-color 0.3s;
        padding: 5px 15px;
    }
    .small-number-circle {
        display: inline-block;          /* Makes the circles line up horizontally */
        width: 30px;                   /* Width of the circle */
        height: 30px;                  /* Height of the circle */
        border-radius: 50%;            /* Makes the div circular */
        background-color: var(--red);
        color: white;                  /* Text color */
        text-align: center;            /* Center the text inside the circle */
        line-height: 30px;             /* Vertically center the text */
        margin: 5px;                   /* Space between circles */
        font-weight: bold;             /* Optional: make the number bold */
    }

    .rounded-image {
        border-radius: 15px; /* Adjust the value for more or less rounding */
        width: 100px;        /* Set the width of the image */
        height: auto;        /* Maintain aspect ratio */
        border: 2px solid #007bff;
    }

    .lotto-btn-icon {
        width: 100px; /* Set width as needed */
        height: 50px; /* Set height as needed */
        background-image: url('/static/irish_lotto.jpeg'); /* Path to your image */
        background-size: cover; /* Scale the image to cover the button */
        background-position: center; /* Center the image */
        background-repeat: no-repeat;
        border: 2px solid #007bff;
        border-radius: 5px; /* Optional: round edges */
        cursor: pointer;
        transition: transform 0.1s ease; /* Smooth transition for dip effect */
    }

    .euro-btn-icon {
        width: 100px; /* Set width as needed */
        height: 50px; /* Set height as needed */
        background-image: url('/static/euromillions_new_icon.jpg'); /* Path to your image */
        background-size: cover; /* Scale the image to cover the button */
        background-position: center; /* Center the image */
        background-repeat: no-repeat;
        border: 2px solid #007bff;
        border-radius: 5px; /* Optional: round edges */
        cursor: pointer;
        transition: transform 0.1s ease; /* Smooth transition for dip effect */
    }

    .lotto-btn-icon:active,
     .euro-btn-icon:active {
        transform: translateY(1px); /* Dip effect */
    }

    .navbar {
        width: 100vw; /* Full viewport width */
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: var(--light-purple);
        color: white;
        box-sizing: border-box;
        position: fixed; /* Keeps the navbar at the top */
        top: 0;
        left: 0;
        z-index: 1000;
    }

    .navbar-left,
    .navbar-right {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .navbar-left li {
        list-style: none;
        margin-right: 20px;
    }

    .navbar-left a {
        color: white;
        text-decoration: none;
        font-size: 16px;
    }

    .username {
        margin-right: 10px;
        font-size: 16px;
    }

    .user-icon {
        position: relative;
        cursor: pointer;
    }

    .user-icon img {
        position: relative;
        width: 30px;
        height: 30px;
        border-radius: 50%;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #fff;
        color: black;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        min-width: 80px;
        z-index: 1;
        padding-top: 2px;
        padding-bottom: 2px;
        padding-right: 5px;
        box-sizing: border-box;
        max-width: calc(100vw - 20px); /* Prevent overflow by limiting max width */
        overflow-x: auto;
        margin-top: 0px;
    }

    .dropdown-menu a {
        display: block;
        padding: 2px;
        text-decoration: none;
        color: black;
    }

    .dropdown-menu a:hover {
        background-color: #f0f0f0;
    }

    /* Show the dropdown when hovering over the icon */
    .user-icon:hover .dropdown-menu {
        display: block;
        right: 10; /* Ensure it doesn't align to the parent's right edge */
        left: auto; /* Start from the left side of the icon */
        top: 1;
    }

    body {
        background-color: var(--dark-purple);
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        font-family: 'Mako';
    }

    .info-container {
        font-family: 'Arial', sans-serif;
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .title {
        text-align: center;
        font-size: 2em;
        font-weight: bold;
        color: var(--dark-purple);
        margin-bottom: 10px;
    }

    .subtitle {
        text-align: center;
        font-size: 1.2em;
        color: var(--light-purple);
        margin-bottom: 20px;
    }

    .content {
        background-color: white;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .content p {
        font-size: 1.1em;
        color: var(--light-purple);
    }

    .content strong {
        color: #d91832;
    }

    .content .good-luck {
        font-size: 1.3em;
        font-weight: bold;
        text-align: center;
        color: var(--dark-purple);
    }

    .content p:first-child {
        font-size: 1.4em;
        font-weight: bold;
        color: var(--dark-purple);
    }

    .content p:empty {
        display: none; /* Remove empty paragraphs */
    }

    .content p::before {
        content: "🎯 ";
    }

    .modal {
        display: none; /* Hidden by default */
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4); /* Black background with transparency */
        padding-top: 60px;
    }

    .modal-content {
        background-color: white;
        margin: 5% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 50%; /* Make the modal content narrower */
        max-width: 500px; /* Set a maximum width to prevent it from becoming too wide */
        border-radius: 8px; /* Add rounded corners to the modal */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a slight shadow for a soft look */
    }

    .modal-content button {
        padding: 10px;
        margin: 5px;
        cursor: pointer;
        background-color: var(--light-purple); /* Use your site color */
        color: white;
        border: none;
        border-radius: 4px;
        transition: background-color 0.3s;
    }

    .modal-content button:hover {
        background-color: var(--dark-purple); /* Darker color on hover */
    }

    .modal-content button:focus {
        outline: none; /* Remove default focus outline */
    }


</style>