@font-face {
    font-family: 'Germania';
    src: url(../assets/fonts/GermaniaOne-Regular.woff2) format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Hammersmith';
    src: url('../assets/fonts/Hammersmith.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@media (width >= 1024px) {
    #main-content {
        margin-top: 0;
        margin-left: auto;
        margin-bottom: 20px;
        margin-right: auto;
        max-width: 1200px;

        /* margins for widths > 1024px and < 1200px */
        margin: 0 50px 20px;
    }

    .rank-leader {
        flex-direction: column;
    }

    #first-leader {
        margin-bottom: 20px;
    }
}

@media (width < 1024px) {
    #main-content {
        flex-direction: column;
    }

    #text-and-images {
        flex-direction: column;
    }
}

@media (width < 1024px) and (width >= 768px) {
    .rank-leader {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 20px;
    }

    #first-leader {
        margin-bottom: 10px;
    }
}

@media (width < 1024px) and (width >= 425px) {
    #main-content {
        margin: 0 20px 20px;
    }
}

@media (width < 768px) {
    #first-leader {
        margin-bottom: 20px;
    }

    .rank-leader {
        flex-direction: column;
    }
}

@media (width > 425px) {
    .rank-leader-img {
        width: 300px;
    }
}

@media (width < 425px) {
    #main-content {
        margin: 0 10px 10px;
    }

    .rank-leader-img {
        width: 250px;
    }
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #EDB634;
    /* heading border */
    -webkit-text-stroke: 0.5px #4A321B;
    font-family: 'Germania';
    font-size: 2.5em;
    text-align: center;
}

#main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#text-and-images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.rank-leader {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

#rank-text, #photos {
    flex: 1;
}

#rank-text {
    background-color: #EDB634;
    color: #2C2440;
    font-family: 'Hammersmith';
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
    border-radius: 20px;
}

#description {
    font-style: italic;
}

h2 {
    margin: 0;
}

main img  {
    border-radius: 20px;
}

.rank-leader-text {
    background-color: #FCD55D;
    padding: 10px;
    border-radius: 20px;
}

#rank-text p {
    margin-bottom: 0;
}

#photos {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

#photos img {
    width: 100%;
}

#rank-links {
    background-color: #EFDECD;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 500px;
    padding: 10px;
    border-radius: 20px;
}

#rank-links a {
    color: #4A321B;
    font-family: 'Hammersmith';
    padding: 10px;
}