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

body,
html {
    overflow: hidden !important;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    border: 20px solid yellow;
    background-color: #2e7d32;
    height: 100vh;
}

header {
    /* background-color: #2e7d32; */
    background-color: yellow;
    /* padding: 20px; */
    text-align: center;
    height: 220px;
    align-items: center;
    flex: 0 0 auto;
    justify-content: center;
}

a {
    text-decoration: none !important;
}


.login {
    position: absolute;
    right: 25px;
    top: 25px;
    z-index: 10;
    width: 100px;
    height: auto;
    opacity: 0.5;
    cursor: pointer;
}

.card-text {
    color: white !important;
}

.cartaNoticia img {
    background-color: #91a74a !important;
}

.cartaNoticia {
    display: flex !important;
    flex-direction: row !important;
    background-color: #388e3c5b !important;
    height: 200px !important;
    width: auto !important;
}


main {
    display: flex;
    flex-direction: column;
    background-color: #91a74a;
    flex: 1 1 auto;
    height: calc(100vh - 220px);
}

.noticiasTitulo {
    border-radius: 20px;
    padding: 20px;
    color: white;
    background-color: #388e3c;
    text-decoration: none;
}


.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: yellow; */
    background-color: #006400;
    border-radius: 20px 20px 0 0;
    height: 100%;
    width: 100%;
}

.logo img {
    max-width: auto;
    max-height: 200px;
}

.arriba {
    flex-grow: 2;
    display: flex;
    flex: auto;
    background-color: #91a74a;
    padding: 20px;
    width: 100%;
    justify-content: center;
    max-height: 600px;

}

.abajo {
    flex-grow: 2;
    display: flex;
    flex-direction: row;
    background-color: #91a74a;
    text-align: center;
}

button {
    background-color: #388e3c;
    color: white;
    border-radius: 20px 0px 0px 20px;
    padding: 20px;
    font-size: 2em;
}

button:hover {
    background-color: #2e7d32;
    transition: background-color 1s;
}


.noticias {
    display: flex;
    flex: 2;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    max-width: 60px;
}

.noticias .caja {
    /* background-color: #fff; */
    padding: 20px;
    border-radius: 0px 20px 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}


.sliderBarra {
    margin-top: 400px;
    flex: 2;
    display: flex;
    flex-direction: column;
    align-content: space-evenly;
    gap: 10px;
    margin-left: auto;
    margin-bottom: 100px;
}

.sliderBarra a {
    background-color: #388e3c;
    color: white;
    border-radius: 20px 0px 0px 20px;
    padding: 20px;
    font-size: 2em;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(calc(var(--index) * 20px));
    /* width: calc(100% - var(--index) * 20px); */
    width: calc(100% - (3 - var(--index)) * 20px);
    margin-left: auto;
}

.sliderBarra a:hover,
.sliderBarra a:active {
    background-color: #2e7d32;
    transform: translateY(calc(var(--index) * 20px)) scaleX(1.1);
}

.imgFor {}

@media (min-width: 1200px) {

    html {
        overflow: scroll !important;
    }

    body {
        height: max-content;
    }

    main {
        height: max-content;

    }
}