@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

body {
    font-family: "Rubik", sans-serif;
    text-align: center;
    background: #f4f0bb;
    color: #43291f;
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem; /* Add padding for small screens */
}

.content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

.header {
    margin-bottom: 2rem;
    font-size: 1.5rem; /* Adjusted font size */
    color: #43291f;
    font-weight: bold;
    margin: 0;
}

.header p {
    margin: 1rem;
}

h1, h2 {
    margin: 0;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    width: 100%;
}

.sidebar {
    background-color: #226f54;
    border-radius: 1rem;
    padding: 2rem 1rem;
    color: #f4f0bb;
    width: 100%;
    max-width: 20%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar a {
    text-decoration: none;
    color: #f4f0bb;
    display: block;
    margin: 0.5rem 0;
    font-size: 1rem;
    height: auto;
    padding: 0.3rem 0;
    font-weight: bold;
    border-bottom: 1px solid #333;
}

.sidebar a:hover {
    color: #43291f;
}

.main-section {
    background-color: #da2c38;
    border-radius: 0.5rem;
    padding: 2rem;
    color: #f4f0bb;
    width: 100%;
    max-width: 50%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0.3rem 0.3rem 0rem #43291f;

}

.main-section h1 {
    text-align: right;
    font-size: 3rem; /* Adjusted font size for mobile */
    margin-bottom: 1rem;
    text-shadow: 0.2rem 0.1rem 0rem #226f54;
}

.main-section h2 {
    text-align: right;
    font-size: 2rem; /* Adjusted font size for mobile */
    margin-bottom: 1.5rem;
}

.social-icons {
    padding: 0.3rem;
    display: flex;
    justify-content: center;
}

.social-icons a {
    font-size: 1.7rem; /* Adjusted font size for mobile */
    color: #FFFFFF;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #226f54;
}

.navigationbtn {
    margin-top: 1rem;
    display: block;
}
.navigationbtn a {
    text-decoration: none;
    color: #43291f;
}

.main-section .navigationbtn a button {
    font-family: "Rubik", sans-serif;
    background-color: #226f5400;
    color: #f4f0bb;
    border: 3px #f4f0bb solid;
    border-radius: 0.5rem;
    padding: 0.5rem 0.5rem;
    margin: 0.4rem 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    width: 45%; /* Full width buttons on mobile */
    font-weight: bold;
}

.main-section .navigationbtn a button:hover {
    background-color: #43291f;
}

.visitorcounter {
    text-align: center;
    font-size: 1.4rem;
}

.visitorcounter p {
    color: #f4f0bb;
    font-weight: bold;
}

/* Responsive design for phones */
@media (max-width: 768px) {
    .sidebar {
        max-width: 100%; /* Sidebar takes full width on small screens */
        margin-bottom: 1rem;
    }

    .main-section {
        max-width: 100%; /* Main section takes full width on small screens */
        padding: 0.5rem; /* Reduce padding on small screens */
    }

    .main-section h1 {
        font-size: 2.5rem; /* Smaller font size for headers */
    }

    .main-section h2 {
        font-size: 1.8rem; /* Smaller font size for headers */
    }

    .social-icons a {
        font-size: 1.3rem; /* Smaller icons */
    }

    .navigationbtn {
        margin-top: 1rem;
        
    }

    .navigationbtn a button {
        font-size: 0.9rem; /* Smaller button text */
        width: 50%; /* Buttons take full width on small screens */
    }

    .content {
        padding: 0.2rem; /* Adjust padding for small screens */
    }

    .header {
        font-size: 1.2rem; /* Adjust header font size for mobile */
    }
    .main-section .navigationbtn a button {
        width: 100%;
    }
}
