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

body {
    background-color: #f5f5f5;
    color: #333;
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
}

body * {
    box-sizing: border-box;
    line-height: 1.5;
}

header {
    background-color: #182837;
    padding: 20px;
    text-align: center;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}
.center-container {
    display: flex;
    align-items: center;       
    justify-content: center;        
  }
img {
    max-width: 100%;         
    height: auto;  
}
.wrapper {
    padding: 20px;
    width: 1100px;
    margin: 0 auto;
    max-width: 90%;
    min-height: 75vh;
}

.wrapper h2 {
    margin-bottom: 30px;
}

ul.problem-list {
    list-style-type: none;
    padding: 0;
    gap: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

ul.problem-list li {
    text-align: center;
    border: 1px solid #A0B8C2; 
    margin: 0;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    color: #333; 
    transition: all 0.3s ease-in-out; 
}

ul.problem-list li:hover {
    background-color: #D1D9DD; 
    border-color: #A0B8C2; 
    transition: all 0.3s ease-in-out; 
}

ul.problem-list a {
    color: #182837;
    text-decoration: none;
    font-size: 16px;
    display: block;
    height: 100%;
    width: 100%;
    padding: 20px;
}

ul.problem-list a:hover {
    text-decoration: none;
}

ul.problem-list a p {
    margin: 0;
}

ul.problem-list a p:first-child {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 20px;
}

.problem-statement, .solution {
    padding: 15px;
    margin-bottom: 20px;
}

pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

footer {
    background-color: #182837;
    color: #fff;
    text-align: center;
    padding: 10px;
    bottom: 0;
    font-size: 12px;
}

.pagination {
    padding: 0 15px;
}

.pagination ul {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    padding: 0;
}

.pagination ul a {
    text-decoration: none;
    color: #182837;
    font-weight: bold;
    cursor: pointer;
}

.pagination ul a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    body * {
        line-height: 1.3;
    }
    .wrapper, .pagination {
        padding-left: 0;
        padding-right: 0;
    }

    ul.problem-list {
        grid-template-columns: repeat(2, 1fr);
    }

    ul.problem-list a p:first-child {
        margin-bottom: 10px;
        font-size: 16px;
    }

    header, footer {
        padding: 10px;
    }
    
    .problem-statement,.solution {
        padding: 0px;
    }
    
    ul.problem-list a {
        font-size: 14px;
        padding: 10px;
    }
}
