* {
    margin: 0;
    padding: 0;
}

body {
    min-height: 400px;
    background-image: url();
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

.title {
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    font-size: 26px;
    margin-top: 15px;
    color: #262262;
}

nav {
    box-shadow: 3px 3px 5px rgba (0, 0, 0, 0.1);
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

nav li {
    height: 50px;
}

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
}

.navtext {
    margin-top: -8px;
}

.logo {
    height: 100%;
    padding: 0 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
}

nav a:hover {
    color: #8e4aba;
    transition: 0.2s;
}

nav li:first-child {
    margin-right: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: whitesmoke;
    box-shadow: -10px 0 10px 10px rgba (0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
    box-sizing: border-box;
    padding: 0 30px;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 250px;
    justify-content: flex-start;
    text-align: left;
}

.menu-button {
    display: none;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}



/* Hero Section */



.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-image: url(images/windsorbackground.jpg);
    background-size: cover;
    background-position: center;
    padding-bottom: 0;
}

.hero-content {
    width: 100%;
    text-align: center;
    max-width: 350px;
    min-width: 300px;
}

.location {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    margin-top: 15px;
}

.location img {
    width: 20px;
    margin-left: -3px;
}

.hero-content h1 {
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    margin: 0;
    color: #17164f;
    line-height: 1.07;
    letter-spacing: -2px;
    font-size: 45px
}

.hero-content p {
    font-family: "merriweather", serif;
    font-weight: 700;
    font-style: normal;
    color: #555587;
    padding-top: 5px;
    margin-bottom: 28px;
    
}

.location p {
    color: #be7be1;
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 0px;
    margin-left: 0;
    margin-right: 0;
}

.owen {
    width: 350px;
    max-width: 350px;
    height: auto;
    display: block;
    margin-top: 17px;
}

.button {
    background-color: #fdbf5a;
    padding: 15px 25px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    color: #643900;
}


.button:hover {
    background-color: #ffb140;
    padding: 16px 26px;
    transition: ease 0.2s;
    cursor: grab;
}



/* Info Cards */




.carousel {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.carousel .card,
.carousel .cardhidden {
    display: none;
}

.carousel h3 {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.carousel .cardshown {
    display: block;
    animation: fadeVisibility 0.5s;
}

.carousel .carouselnav {
    display: flex;
    width: 100%;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel .carouselnav button {
    border-radius: 50px;
    border: 0;
    font-weight: bold; 
    cursor: pointer;
    width: 40px;
    height: 68px;
    background: none;
    font-size: 45px;
    color: #8c4db5
}

.carousel .carouselnav button#prev {
    margin-left: 18px;
}

.carousel .carouselnav button#next {
    margin-right: 18px;
}

.carouseltrack {
    display: flex;
    justify-content: center;
}
.infocard {
    background-color: white;
    width: 300px;
    height: 285px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 25px;
    margin-bottom: 50px;
    display: none;
}

.infocard:first-child {
    display: flex;
}

.infocard img {
    width: 70px;
    height: 70px;
    padding-bottom: 12px;
}

.infocard h2 {
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 24px;
    color: #8e4aba;
    margin-bottom: 7px;
}

.infocard p {
    font-family: "merriweather", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    width: 250px;
    color: #17164f;
}

.infocard a{
    padding-top: 25px;
    font-family: "merriweather", serif;
    font-weight: 700;
    font-style: normal;
    color: #8b36c1;
    text-decoration: none;
}

.infocard a:hover {
    color: #612491;
    transition: ease 0.2s
}



/* About */



.about {
    background-color: whitesmoke;
    display: grid;
    place-items: center;
    padding: 15px 16px 30px;
}

.about-content {
    width: 100%;
}

.about p {
    font-family: "merriweather", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    padding: 16px 24px 12px 15px;
    max-width: 720px;
    justify-content: center;
    align-items: center;
}



/* Support */



.sign {
    place-items: center;
    padding-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.sign h1 {
    margin-left: 18px;
    margin-right: 18px;
    line-height: 31px;
    margin-top: 25px;
}

.sign p {
    font-family: "merriweather", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    width: calc(100% - 36px);
    max-width: 720px;
    padding: 18px 18px 5px;
    margin: 0 auto;
    text-align: left;
    box-sizing: border-box;
    color: #262262;
}

.sign img {
    width: 100%;
    max-width: 600px;
    height: auto;
    padding: 17px 38px 5px;
    box-sizing: border-box;
}

hr {
    display: none;
}



/* Footer */



footer {
    background-color: #be7be1;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: #262262;
    margin-top: 8px;
}

footer h1 {
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 26px;
    margin-bottom: -10px;
    margin-top: 10px;
}

footer h3 {
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 22px;
    margin-bottom: 8px;
}

footer a {
    display: block;
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-decoration: underline;
    color: #262262;
    margin: 7px 0;
}



/* Platform Section */
/* Header */



.platform {
    background-color: re;
    display: grid;
    justify-content: center;
    text-align: center;
    min-width: 350px;
}

.header .title {
    margin-top: 0;
    font-size: 36px;
    font-family: "montserrat", sans-serif;
    font-weight: 900;
    font-style: normal;
    line-height: 35px;
    text-align: left;
    padding: 0 16px;
}

.header h3 {
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    color: #262262;
    margin-top: 66px;
    text-align: left;
    padding: 0 16px 10px 16px;
}

.header p {
    font-family: "merriweather", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    max-width: 700px;
    text-align: left;
    padding: 5px 16px;
    color: #58595b;
    margin-bottom: 15px;
}



/* Info Boxes */



.infobox {
    display: flex;
    flex-direction: column;
    background-color: re;
    width: calc(100% - 114px);
    max-width: 1000px;
    box-sizing: border-box;
    justify-self: center;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.09);
    padding: 10px 40px 29px 40px;
    margin-top: 25px;
    margin-bottom: 0px;
    min-width: 250px;
}

.infobox-title {
    display: flex;
    align-items: center;
    width: 100%;
}

.infobox-title img {
    width: 62px;
    height: px;
    flex-shrink: 0;

    margin-left: -81px;
    margin-right: 20px;
}

.infobox h1 {
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #8e4aba;
    font-size: 24px;
    text-align: left;
    margin: 0;
    line-height: 26px
}

.infobox p {
    font-family: "merriweather", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    text-align: left;
    color: #262262;
    margin: 0 0 0 4px;
}



/* Platform Footer */



.platform footer {
    margin-top: 36px;
    width: 100vw;
    box-sizing: border-box;
}



/* Election Info Section */
/* Header */



.election {
    background-color: whitesmoke;
    min-width: 350px;
}

.header .date {
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #be7be1;
    font-size: 22px;
    line-height: 25px;
    margin-top: 15px;
    margin-bottom: 15px;
}



/* Election Info */




.election img {
    display: block;
    width: calc(100% - 33px);
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    
}

.notice {
   box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 850px;
    margin: 10px auto 3px;

    background-color: #f2ebf7;
    border-left: 6px solid #be7be1;

    padding: 18px 25px 17px;

    display: flex;
    justify-content: center;
    flex-direction: column;

    overflow-wrap: break-word;
}

.notice h2 {
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    color: #8b36c1;
}

.notice p {
    font-family: "merriweather", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    color: #8e4aba;
}

.addresscontainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.address {
    box-sizing: border-box;
    width: calc(100% - 30px);
    max-width: 380px;
    min-height: 95px;
    margin: 5px auto;
    padding: 18px;
    background-color: white;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
}

.address h3 {
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #262262;
    font-size: 18px;
    line-height: 22px;
    margin: 0;
}

.address p {
    font-family: "merriweather", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    color: #414042;
    margin: 12px 0 0;
}

.addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 950px;
    margin: 0 auto;
}



/* Election Footer */



.election footer {
    margin-top: 26px;
}






/* Media Queries */



@media (max-width: 800px) {
    .hideOnMobile {
        display: none;
    }
    .menu-button {
        display: block;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 100%;
    }
}

@media (min-width: 740px) {
    .hero {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;;
        padding: 0 4%;
        gap: 40px;
        min-height: auto;
    }
    .hero-content {
        max-width: 50px;
        text-align: left;
        margin-top: 95px;
        margin-left: 45px;
    }
    
    .hero-image {
        width: 500px;
        height: auto;
        flex-shrink: 0;
    }
    .owen {
        width: 100%;
        max-width: 400px;
    }
    
    .location {
        justify-content: flex-start;
    }
    .hero button {
        margin-left: 0;
        margin-right: auto;
    }
    .owen {
        width: 400px;
        max-width: 550px;
        margin-top: 63px;
    }
   .carousel .card,
    .carousel .cardhidden,
    .carousel .cardshown {
        display: block;
    }

    .carousel .cardshown {
    animation: none;
}
    
    .carouseltrack {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    justify-content: center;
    column-gap: 18px;
    row-gap: 0px;
    padding-bottom: 18px;
    }

    .carousel .carouselnav {
        display: none;
    }

    .infocard {
        margin: 25px 0 0;
    }

    .about {
        margin-top: 15px;
    }
    
    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header .title {
        width: 100%;
        text-align: center;
        margin-top: 0;
    }

    .header h3 {
        width: 100%;
        max-width: 1000px;
        box-sizing: border-box;
        text-align: center;
        padding: 0 80px 10px 80px;
    }

    .header p {
        width: 100%;
        max-width: 1000px;
        box-sizing: border-box;
        text-align: left;
        padding: 5px 80px;
    }
    
    .date {
        display: flex;
        justify-content: center;
        text-align:center;
    }
    .location {
       margin-top: 0px; 
    }
    
 .sign {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        padding: 50px 8%;
        max-width: 1500px;
        margin: 0 auto;
    }

    .sign-content {
        width: 400px;
        flex-shrink: 0;
    }

    .sign h1 {
        margin: 0 0 20px;
        text-align: left;
    }

    .sign p {
        width: 318px;
        padding: 10px 0;
        margin: 0;
        text-align: left;
    }

    .sign img {
        width: 45%;
        max-width: 500px;
        padding: 0;
    }
    
    hr {
        display: flex;
        border: none;
        height: 3.5px;
        background-color: #be7be1;
        width: 77px;
        margin: 7px 0;     
    }
    
    footer a {
        display: inline-block;
        margin: 15px;
        padding: 3px 0 0 3px;
        margin-bottom: 25px;
    }
    
    }

 @media (min-width: 1100px) {
    .carousel {
        padding: 0 15px;
        box-sizing: border-box;
    }
    .carouseltrack {
        grid-template-columns: repeat(6, 1fr);
        column-gap: 30px;
        row-gap: 10px;
    }

    .carousel .card {
        grid-column: span 2;
    }

    .carousel .card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .carousel .card:nth-child(5) {
        grid-column: 4 / span 2;
    }

    .infocard {
        margin-bottom: 15px;
    }
     
    .about {
        margin-top: 25px;
    }
}

/* Animation */

@keyframes fadeVisibility {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: opacity linear;
    }
}


    
