* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

/* Main Scroll Button Container */
#scrollToTopBtn {
  position: fixed;
  bottom: -60px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: #ff4d4d;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transition: bottom 0.5s ease, opacity 0.5s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

#scrollToTopBtn.show {
  bottom: 30px;
  opacity: 1;
}

/* Pulsing Ring */
#scrollToTopBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 77, 77, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: pulse-ring 1.5s infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

#scrollToTopBtn:hover {
  background-color: #FF344C;
}

/* Navigational menu */
.main-header {
    background-color: #1F3584;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
}

.home-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.home-nav .left-side {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.home-nav ul li {
    list-style: none;
}

.home-nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.4rem;
    transition-duration: 0.4s;
}

.home-nav ul li a:hover {
    color: #FF344C;
}

.political-logo img{
    width: 120px;
    border-radius: 1rem;
    display: block;
}

.side-buttons {
    display: flex;
    column-gap: 2rem;
}

.side-buttons a {
    text-decoration: none;
    color: #FFFFFF;
}

.side-buttons .side-button1, .side-button2{
    padding: 1rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
}

.side-buttons .side-button1 {
    border: 1px solid #fff;
    background-color: #1F3584;
    color: #fff;
    padding: 1rem 2rem;
    transition: transform 0.3s ease;
    transition-duration: 0.4s;
}

.side-buttons .side-button1:hover {
    background-color: #FF344C;
    transform: translateY(5px);
}

.side-buttons .side-button2 {
    background-color: #FF344C;
    border: none;
    color: #fff;
    padding: 1rem 2rem;
    transition: transform 0.3s ease;
    transition-duration: 0.4s;
}

.side-buttons .side-button2:hover {
    background-color: #1F3584;
    border: 1px solid #FF344C;
    color: #FF344C;
    transform: translateY(5px);
}

/* Styling the side bar menu */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 9998;
    background-color: rgba(255, 255, 255, 0.395);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.sidebar li a {
    width: 100%;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 1.2rem;
}

.sidebar .hide-icon a img {
    margin-top: 1rem;
    background: #FF344C;
    border-radius: 5px;
}

.home-nav .side-buttons .menu-button a img {
    background: #FF344C;
    border-radius: 5px;
}

.menu-button {
    display: none;
}

/* Styling the hero section on the main page */
.hero-section {
    display: flex;
    justify-content: center;
    background-color: #1F3584;
    color: #fff;
    column-gap: 7rem;
    padding: 10rem 0 7rem 0;
    align-items: center;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    margin-bottom: 12rem;
}

.name-profile-description {
    max-width: 30%;
}

.hero-section h1{
    font-size: 1rem;
    font-size: clamp(1rem, -0.19999999999999996rem + 6vw, 7rem);
    margin-bottom: 1rem;
    letter-spacing: 6px;
    line-height: -20px;
}

.hero-side-buttons {
    display: flex;
    column-gap: 2rem;
    margin-top: 2rem;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
}

.hero-side-buttons a {
    text-decoration: none;
}

.hero-side-buttons .side-button3, .side-button4{
    padding: 1.5rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
}

.hero-side-buttons .side-button3 {
    background-color: #fff;
    color: #FF344C;
    transition-duration: 0.4s;
}

.hero-side-buttons .side-button3:hover {
    background-color: #1F3584;
    border: 1px solid #fff;
    color: #fff;
}

.hero-side-buttons .side-button4 {
    background-color: #1F3584;
    border: 1px solid #fff;
    color: #fff;
}

.hero-side-buttons .side-button4:hover {
    background-color: #fff;
    color: #0E121E;
}

.community-hero img {
    max-width: 35%;
    display: block;
    border-radius: 15px;
}

.community-hero p:nth-child(1) {
    font-size: 2rem;
    padding-bottom: 2rem;
}

.community-hero h3:nth-child(2) {
    font-size: 3rem;
    line-height: 3rem;
    padding-bottom: 2rem;
}

/* Styling the social media communities section */
.social-media-communities {
    text-align: center;
}

.social-media-communities p {
    color: #FF344C;
    font-size: 1.4rem;
    letter-spacing: 1.3px;
    padding-bottom: 1rem;
}

.social-media-communities h3 {
    max-width: 35%;
    font-size: 2.7rem;
    letter-spacing: 1.3px;
    margin: auto;
    font-weight: 500;
}

/* Styling the Social Media Cards on the communities page */
.media-community {
    margin-bottom: 14rem;
}

.media-community-container {
    max-width: 1200px; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem;
    justify-content: center; 
    margin: auto;
    padding-top: 2rem;
}

.media-community-container .media-card {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 15px;
    transition: transform 0.3s ease;
    text-align: center;
}

.media-card .social-icon-container {
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    height: 200px;
}

.media-card .social-icon-container img{
    margin: auto;
    display: block;
    padding: 2rem 0;
    margin-bottom: 1rem;
    width: 100px;
    transition: .5s ease all; object-fit:cover;
}

.media-card .social-icon-container:hover img {
    transform: scale(1.1);
  }

.media-community-container .media-card:hover {
    transform: translateY(10px);
}

.media-community-container .media-card p {
    font-size: 1.2rem;
    color: #53565E;
    padding: 0 1rem 1.4rem 1rem;
}

.media-community-container .media-card h3 {
    font-size: 1.6rem;
    padding: 1.3rem 0;
    font-weight: 600;
}

.media-community-container .media-card a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #FF344C;
    font-size: 1.6rem;
    padding-bottom: 2.2rem;
}

/* social media logo backgrounds */
.facebook {
    background-color: #3776ff;
}

.twitter {
    background-color: rgb(0, 0, 0);
}

.tiktok {
    background-color: black;
}

.instagram {
    background: #833ab4;
    /* background: linear-gradient(to right,#833ab4,#fd1d1d,#fcb045); */
    background: linear-gradient(to right,#5B51D8,#833AB4,#C13584,#E1306C,#FD1D1D,#F56040,#F77737,#FFDC80);
}

.youtube {
    background-color: #FF0000;
}

.twitch {
    background-color: #8956FB;
}

/* Styling the footer on the main page */
.main-page-footer {
    border-top: 1px solid #26385e1d;
    background-color: #fff;
}

.footer-container {
    max-width: 1200px; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem;
    justify-content: center; 
    margin: auto;
    padding: 8rem 1rem 6rem 1rem;
    border-bottom: 1px solid #53565e3c;
}

.first-column {
    text-align: left;
}

.main-page-footer .first-column img {
    width: 170px;
    padding-bottom: 1rem;
}

.main-page-footer .first-column p:nth-child(2) {
    font-size: 1.2rem;
    padding-bottom: 1rem;
    color: #53565ed4;
}

.main-page-footer .first-column p a img {
    width: 30px;
    vertical-align: middle;
    padding-top: 14px;
    margin-right: 10px;
}

.main-page-footer .first-column p a {
    text-decoration: none;
    color: #0E121E;
    font-size: 1.3rem;
    text-align: center;
    vertical-align: middle;
    transition-duration: 0.4s;
}

.main-page-footer .first-column p a:hover {
    color: #FF344C;
}

.main-page-footer .second-column h3 {
    padding-bottom: 2rem;
    font-size: 1.6rem;
    color: #1F3584;
}

.second-column {
    padding-left: 5rem;
    line-height: 2.5rem;
}

.second-column ul li {
    list-style: none;
}

.second-column ul li a{
    text-decoration: none;
    color: #53565ed4;
    font-size: 1.2rem;
    transition-duration: 0.4s;
}

.second-column ul li a:hover {
    color: #FF344C;
}

.third-column {
    max-width: 400px;
    background-color: #1F3584;
    padding: 2rem 2rem;
    border-radius: 15px;
}

.third-column img {
    display: block;
}

.third-column h3 {
    font-size: 1.6rem;
    color: #FFFFFF;
    padding: 1rem 0;
}

.third-column p {
    color: #FFFFFF;
    line-height: 1.4rem;
    padding-bottom: 1rem;
}

.footer-form input[type='email'] {
    width: 100%;
    height: 4rem;
    border-radius: 15px;
    border: none;
    margin-bottom: 1rem;
    text-indent: 2rem;
}

.footer-form input::placeholder {
    /* padding-left: 1rem; */
    font-size: 1.2rem;
    opacity: 60%;
    font-style: italic;
}

.footer-form input[type=email]:focus {
    outline: #FF344C solid 1px;
}

.footer-form button {
    width: 100%;
    height: 4rem;
    border-radius: 15px;
    border: none;
    font-size: 1.2rem;
    background-color: #FF344C;
    color: #FFFFFF;
    cursor: pointer;
    transition-duration: 0.4s;
}

.footer-form button:hover {
    background-color: inherit;
    border: #FFFFFF solid 1px;
}

.copy-right {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
}

.copy-right p {
    font-size: 1.2rem;
    color: #53565ed3;
}

.copy-right p a {
    color: #FF344C;
}

.copy-right p a:hover {
    color: #26385E;
    opacity: 40%;
}

.copy-right .social-media a img {
    width: 30px;
    transition-duration: 0.5s;
}

.copy-right .social-media a img:hover {
    opacity: 40%;
}

/* Responsiveness */
@media (max-width: 1000px) {
    .social-media-communities h3 {
        max-width: 100%;
        display: block;
    }
    .media-community-container {
        padding: 1rem 1rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .name-profile-description {
        max-width: 100%;
        padding: 1rem;
    }
    .hero-side-buttons {
        flex-direction: column;
        width: 50%;
        margin: 2rem auto;    
    }
    .hero-side-buttons .side-button3 {
        margin-bottom: 1rem;
    }
    .community-hero img {
        max-width: 100%;
    }
}

/* Responsiveness */
@media (max-width: 800px) {
    .hideOnMobile{
        display: none;
    }
    .menu-button {
        display: block;
    }
    .sidebar {
        width: 50%;
    }
    .home-nav {
        justify-content: space-between;
        padding: 1rem;
    }
    .side-buttons {
        padding-right: 1rem;
    }
    .side-buttons .side-button1,
    .side-buttons .side-button2 {
        width: 100%;
        text-align: center;
    }
    .footer-container {
        padding-top: 3rem;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 100%;
    }
    .hero-section {
        padding: 5rem 0 7rem 0;
        margin-bottom: 6rem;
    }
    .hero-side-buttons {
        width: 100%;  
    }
    .media-community {
        margin-bottom: 8rem;
    }
    .second-column {
        padding-left: 0;
    }
    .third-column {
        max-width: 100%;
    }
    .copy-right {
        margin-left: 2rem;
    }
}

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