* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
}
html {
    scroll-behavior: smooth;
    color-scheme: only light;
}
body {
    background-color: #dcd8d8;
    color:#252525;
}

body {
    min-height: 400px;
    position: relative;
    overflow-x: hidden;
    background-color: #dcd8d8;
    font-family: Arial, sans-serif;
    text-align: center;
}

.logo {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    object-position: center;
    background-color: #252525;
    z-index: 2;
}

.fundal {
    width: calc(100% - 300px);
    height: 300px;
    position: relative;
    display: flex;
    float: right;
    top: 0;
    right: 0;
    object-fit: cover;
    z-index: -1;
}
.meniu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 110px;
    width: 100%;
    position: absolute;
    top: 300px;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: #252525;
}
.meniu li {
    margin: 0 10px;
}

.hamburger {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
  background-color: #dcd8d8;
  border-radius: 3px;
}

.nav-menu {
  position: fixed;
  top: 0;
  left: -100%; 
  width: 250px;
  height: 100vh;
  background-color: #252525;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: left 0.3s ease-in-out;
  z-index: 1000;
}

.nav-menu.active {
  left: 0;
}


.nav-menu li a {
  text-decoration: none;
  color: #dcd8d8;
  font-size: 18px;
  font-weight: 500;
  display: block;
}

.nav-menu li a:hover {
  color: #0000ee;
}
.news{
    display: flex;
    padding: 20px;
    background-color: #dcd8d8;
    color: #252525;
    border-top: 1px solid #ccc;
    position: absolute;
    height: calc(100% - 120px);
    width: 100%;
    top: 410px;
}
.nou {
    color: #0000ee;
    font-size: 30px;
    text-align: center;
    float: left;
}
.stiri{
    font-family: Arial, sans-serif;
    font-size: 18px;
    position: absolute;
    display: flex;
    bottom: 10px;
    float: left;
    top: 10rem;
}
.stiri2{
    font-family: Arial, sans-serif;
    font-size: 18px;
    position: absolute;
    display: flex;
    bottom: 10px;
    float: left;
    top: 12rem;
}



.contact-email {
    background-color: #252525;
    font-size: 20px;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas:
        "contact info email"
        "footer footer footer";
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    position: absolute;
    top: 800px;
    height: 200px;
    width: 100%;
}
.contactul {
    grid-area: contact;
    margin: 0;
    width: auto;
    display: flex;
    justify-content: center;
    color: #000000;
}
.emailul {
    grid-area: email;
    margin: 0;
    width: auto;
    display: flex;
    justify-content: center;
    color: #000000;
}
.creator{
    color: #000000;
}
.informatii {
    grid-area: info;
    font-size: 35px;
    color: #0000ee;
    text-align: center;
    margin: 0;
    width: auto;
    z-index: 0;
}
.contact-email > p {
    grid-area: footer;
    margin: 0;
}

@media (max-width: 1024px) {
    :root {
        --logo-size: min(38vw, 300px);
        --header-height: var(--logo-size);
    }

    .logo {
        width: var(--logo-size);
        height: var(--logo-size);
        top: calc((var(--header-height) - var(--logo-size)) / 2);
    }

    .fundal {
        width: calc(100% - var(--logo-size));
        height: var(--header-height);
    }


    .meniu {
        top: var(--header-height);
        height: auto;
        min-height: 100px;
        flex-wrap: wrap;
        padding: 10px 4px;
    }

    .meniu li {
        margin: 5px;
    }
    .news {
        top: calc(var(--header-height) + 100px);
        min-height: 0;
        height: auto;
        padding: 16px;
    }
    .nou{
        float: none;
        margin: 0 0 16px;
        font-size: 22px;
    }
    .stiri{
        position: absolute;
        display: flex;
        margin: 16px 0;
        top: 60px;
        font-size: 16px;
        line-height: 1.5;
        text-align: left;
    }
    .stiri2{
        position: absolute;
        display: flex;
        margin: 16px 0;
        top: 110px;
        font-size: 16px;
        line-height: 1.5;
        text-align: left;
    }
    

    .contact-email {
        top: 800px;
        font-size: 16px;
        padding: 10px;
        gap: 8px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "contact"
            "email"
            "info"
            "footer";
    }

    .contactul,
    .emailul {
        width: 100%;
        max-width: 100%;
        margin: 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .informatii {
        width: 100%;
        font-size: 22px;
        line-height: 1.3;
        margin: 0;
        padding: 0 10px;
    }
}
