html {
    background: url("/img/MacNaughtonClanTartan.gif") fixed;
    font-size: 16px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.toppage {
    color: white;
    padding: 3em 2.5em; /* Adjust padding as needed */
    text-align: center;
}

h1.title {
    font-size: 5em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin-bottom: 10px; /* Add space between title and subtitle */
}

h2.subtitle {
font-size: 2em;
margin-bottom: 40px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-weight: 700;
font-style: normal;
color: #FFFFFF;
text-align: center;
}

@media screen and (max-width: 768px){

h1.title{
    font-size: 2.5em;
}

h2.subtitle {
    font-size: 1.5em;
}


}


main {
    background-color: white;
    padding-top: 1em;
    padding-bottom: 1em;
}

header {
    padding-bottom: 2em;
}

.nav-link.current {
    background-color: rgb(0, 104, 24) ;
    color: white;
}

.navbar {
    /*background-color: white; */
    padding: 0.7em 1.5em;
    margin-bottom: 2em;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.nav-link {
    background-color: white;
    text-decoration: none;
    color: black;
    font-size: 1.5em;
    font-weight: bold;
    padding: 0.7em 0.5em;
    border-radius: 0.2em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    background-color: rgb(0, 104, 24) ;
    color: white;
}

/* Small screen option */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background-color: white;
    border: none;
    border-radius: 0.5em;
    width: 100%;
    border: 0.2em solid white;
    color: black;
}

.menu-toggle:active, .menu-toggle:hover {
    background-color: rgb(0, 104, 24);
    color: white;
}

a.small-menu {
    display: inherit;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    color: inherit;
    font-size: 1.5em;
    padding: 0.7em 0.7em;
    border-radius: 0.2em;
    transition: background-color 0.3s ease, color 0.3s ease;
}



@media (max-width: 950px) {
    .nav-list {
        background-color: white;
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-list.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-item {
        width: 100%;
        padding: 1em;

    }

    .nav-link {
        padding: 10px;
        border-top: 1px solid #ddd;
        border-bottom: 0.1em;
        border-top: 0.1em;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-item:hover {
        background-color: green;
        color: white;
    }

    .nav-link {
        background-color: white;
        text-decoration: none;
        color: black;
        font-size: 18px;
        padding: 10px 15px;
        border-radius: 0.2em;
        
    }
}


p {
    color: black;
    font-size: 18px;
    background-color: white;
    align-content: center;
    padding: 20px;
    margin-top: 50px;

}

h3 {
    color: black;
    font-size: 3em;
    text-align: center;
    margin-right: 3em;
    margin-left: 3em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: solid black 0.1em;
    border-top: solid black 0.1em
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;

}

footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-top: 3em;
    padding-bottom: 1em;
    background-color: none;
}

footer h2 {
    color: white;
    text-decoration: none;
    font-size: 2em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    margin-bottom: 0.5em;
}

footer a {
    color: white;
    text-decoration: underline;
    background-color: none;
    margin-bottom: 0.3em;
    font-size: 1.5em;
}

footer p {
    background-color: rgba(0, 0, 0, 0);
    color: white;
    margin-bottom: 0.2em;
    margin-top: 0.2em;
    padding: 0px
}


.button-link {
    display: block; 
    width: fit-content;      
    margin: 0 auto;
    background-color: white;
    color: black;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    padding: 0.7em 0.5em;
    border: 2px solid black;
    border-radius: 0.2em;
    
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.button-link:hover {
    background-color: rgb(0, 104, 24);
    color: white;
}

