* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    background-image: url('img/star-large.svg');
    background-repeat: space;
    background-size: 10%;
}

.font1 {
  font-family: "Arvo", serif;
  font-weight: 700;
  font-style: italic;
}

.font2 {
  font-family: "Courgette", cursive;
  font-weight: 400;
  font-style: normal;
}

.header {
    background: rgb(159,0,0);
    background: linear-gradient(270deg, rgba(159,0,0,1) 0%, rgba(230,7,7,1) 50%, rgba(150,0,0,1) 100%);
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    border-bottom: 32px ridge #0e2f9a;
    box-shadow: 0px 10px 12px rgb(21, 21, 21, 0.3);
    text-shadow: 6px 4px 2px #081b5c;
}

header a {
    text-decoration: none;
    color: inherit;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
}

.header h1 {
    padding-top: 50px;
    font-size: 10rem;
    text-align: center;
    line-height: 90px;
}

.header h1 span {
    display: block;
    font-size: 3rem;
}

.candidates {
    display: flex;
    justify-content: space-around;
    margin: 40px auto;
    max-width: 1000px;
    flex-grow: 1;
}

.candidate {
    text-align: center;
    margin: 20px;
}

.candidate img {
    border-radius: 12%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 8px solid #aa0000;
    transform: scale(1.0);
    transition-timing-function: ease-in-out;
    transition-duration: 0.125s;
}

.candidate img:hover {
    transform: scale(1.025);
}

.candidate h2 {
    font-size: 1.8rem;
    margin-top: 10px;
    color: #333;
}

.candidate p {
    color: #0e2f9a;
    font-weight: bold;
    font-size: 1.4rem;
}

.learn-more-btn {
    width: 100%;
    font-size: 1.4em;
    display: inline-block;
    margin-top: 24px;
    padding: 10px 20px;
    background-color: #aa0000;
    color: white;
    text-decoration: none;
    border-radius: 16px;
    border: 6px solid #bcbcbc;
    transform: scale(1.0);
    transition-timing-function: ease-in-out;
    transition-duration: 0.125s;
}

.learn-more-btn:hover {
    background-color: #c00;
    transform: scale(1.05);
}

.footer {
    background-color: #0e2f9a;
    color: white;
    text-align: center;
    padding: 40px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0px -10px 12px rgb(21, 21, 21, 0.5);
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-content img {
    max-width: 200px;
    border: 2px solid white;
    border-radius: 5px;
}

.footer p {
    font-size: 2rem;
}

/* Media query for mobile devices */
@media (max-width: 1024px) {
    .header a a:link a:visited a:hover a:active {
        text-decoration: none;
        color: inherit;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
    }
    
    .header h1 {
        font-size: 6rem;
        line-height: 60px;
    }
    
    .header h1 span {
        font-size: 2rem;
    }

    .candidates {
        flex-direction: column;
        align-items: center;
    }

    .candidate img {
        width: auto;
        height: 350px;
    }

    .candidate h2 {
        font-size: 3.5rem;
    }

    .candidate p {
        font-size: 2.2rem;
    }

    .learn-more-btn {
        padding: 6px 16px;
        font-size: 3.1rem;
    }
}

@media (max-width: 768px) {
    .header a a:link a:visited a:hover a:active {
        text-decoration: none;
        color: inherit;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
    }
    
    .header h1 {
        font-size: 6rem;
        line-height: 60px;
    }
    
    .header h1 span {
        font-size: 2rem;
    }

    .candidates {
        flex-direction: column;
        align-items: center;
    }

    .candidate img {
        width: auto;
        height: 350px;
    }

    .candidate h2 {
        font-size: 3.5rem;
    }

    .candidate p {
        font-size: 2.2rem;
    }

    .learn-more-btn {
        padding: 6px 16px;
        font-size: 3.1rem;
    }
}

@media (max-width: 480px) {
    .header a a:link a:visited a:hover a:active {
        text-decoration: none;
        color: inherit;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
    }
    
    .header h1 {
        font-size: 5rem;
        line-height: 50px;
    }

    .header h1 span {
        font-size: 1.5rem;
    }

    .candidate img {
        width: auto;
        height: 350px;
    }

    .candidate h2 {
        font-size: 1.3rem;
    }

    .candidate p {
        font-size: 1rem;
    }

    .learn-more-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .footer {
        padding: 20px;
    }
}

