:root {
    --side-div-height: 300px;
    --top-div-height: 80px;
}

* {
    box-sizing: border-box;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f2f2f2;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner button {
    padding: 8px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.cookie-banner button:hover {
    background-color: #0056b3;
}

.mCard {
    max-width: 900px;
    background-color: #eee;
    border-radius: 6px;
    margin: auto;
    text-align: left;
    padding: 20px;
    margin-bottom: 20px;
}

#mainDiv {
    max-width: 900px;
    background-color: #eee;
    border-radius: 6px;
    margin: auto;
    text-align: center;
    padding: 20px;
}

#contentsDiv {
    margin: auto;
    text-align: center;
    margin-top: calc(var(--top-div-height));
    background-color: bisque;
    min-height: 100vh;
    padding: 20px 10px;
    position: relative;
}

#sideDiv {
    width: var(--side-div-height);
    height: calc(100vh - (var(--top-div-height)));
    position: fixed;
    left: -300px;
    top: 0px;
    background-color: black;
    color: white;
    border-right: 3px solid blue;
    overflow: auto;
    padding: 10px;
    text-align: center;
    margin-top: var(--top-div-height);
    transition: 0.5s;
    z-index: 10;
}

#sideDiv ul {
    list-style: none;
    margin: 0;
    padding: 0;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    max-height: calc(100vh - 230px);
}   

#sideDiv ul a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: red;
    margin: 5px 0;
    text-align: center;
    height: calc(100vh / 10);
    border-radius: 6px;
    text-decoration: none;
    color: white;
}

#sideDiv .header {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: blue;
    border-radius: 6px;
}


h1 {
    font-size: 2.5em;
}

#topDiv {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: black;
    color: white;
    height: var(--top-div-height);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    z-index: 1;
}

#topDiv ul {
    width: 100vw;
    display: flex;
    margin: 0;
    padding: 0 5px;
    direction: rtl;
    list-style: none;
}

#topDiv ul a {
    display: inline-block;
    background-color: red;
    text-align: center;
    margin: 0 5px;
    width: calc(100% / 3);
    border-radius: 6px;
    padding: 10px;
    text-decoration: none;
    color: white;
}


#topDiv #logo {
    width: calc(var(--side-div-height) + 15px);
    text-align: center;
    font-size: 30px;
}

#articlesDiv {
    width: var(--side-div-height);
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    display: none;
}

#articlesDiv a {
    text-decoration: none;
}

#articlesDiv a div {
    height: calc(100vh / 3);
    background-color: red;
    margin: 30px;
    padding: 10px;
    outline: 10px solid bisque;
    border-radius: 10px;
    text-align: center;
    color: white;
    overflow: hidden;
}

#articlesDiv div p {
    font-size: 0.6em;
}

.carouselTitle {
    text-shadow: 0 0 5px black;
}

.carouselCaption {
    position: absolute;
    bottom: 20px;
    color: white;
    padding: 0 10px;
}

.carouselImage {
    width: 100%;
    height: 40vh;
    border-radius: 10px;
}

#bottomDiv {
    height: 200px;
    background-color: black;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

   
/* Media Query for Mobile Devices */ 
@media (max-width: 480px) { 
    body { 
        font-size: 18px;
    } 
} 
    
/* Media Query for low resolution  Tablets, Ipads */ 
@media (min-width: 481px) and (max-width: 767px) { 
    body { 
        font-size: 20px;
    }
} 
    
/* Media Query for Tablets Ipads portrait mode */ 
@media (min-width: 768px) and (max-width: 1024px){ 
    body { 
        font-size: 22px;
    } 
} 
    
/* Media Query for Laptops and Desktops */ 
@media (min-width: 1025px) and (max-width: 1280px){ 
    body { 
        font-size: 22px;
    } 
} 
    
/* Media Query for Large screens */ 
@media (min-width: 1281px) { 
    body { 
        font-size: 22px;
    } 

    #articlesDiv {
        display: block;
    }

    #sideDiv {
        left: 0;
    }

    #menuButton {
        display: none;
    }

    #bottomDiv {
        width: calc(100% - var(--side-div-height));
        margin-left: var(--side-div-height);
    }

} 