@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

@property --unghi {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes Rotatie {
    from { --unghi: 0deg; }
    to { --unghi: 360deg; }
}

@keyframes Intrare_Logo {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes Intrare_Titlu {
    from { color: #070D0D; }
    to { color: #BFBFBF; }
}

@keyframes AparitieCutie {
    from { opacity: 0; }
    to { opacity: 1; }
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background-color: #070D0D;
}

header {
    background-color: #070D0D;
    position: fixed;
    z-index: 9999;
}

#__header {
    position: relative;
    background-color: #070D0D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
}

#Cutie_Logo {
    opacity: 0;
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1001;
}

#Logo {
    position: relative;
    image-rendering: smooth;
}

#Buton {
    opacity: 0;
    position: relative;
    fill: #BFBFBF;
}

#Buton:hover {
    fill: #60915a;   
}

#Caseta_Titlu {
    height: 100%;
    width: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#Titlu {
    color: #070D0D;
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 150;
    font-style: normal;
    text-align: center;
}

hr {
    z-index: 0;
}

#Arhiva {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
    
#Cronologie {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

#Dreapta {
    position: absolute;
    background-color: #BFBFBF;
    z-index: 0;
}

.Cutie {
    opacity: 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    z-index: 1;
}

.Cerc {
    content: "";
    border-style: solid;
    background-color: #BFBFBF;
    border-color: #4B4B4B;
    border-radius: 50%;
}

.Wrapper {
    position: relative;
    text-decoration: none;
}

.Wrapper::before {
    background-color: #2E2E2E;
    transition: background-color 0.5s;
}

.Wrapper::after {
    background-image: conic-gradient(from var(--unghi) , transparent 85% , #BFBFBF);
}

.Wrapper:hover::before {
    background-color: #bfbfbf;
}

.An {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0C0C0C;
    text-decoration: none;
    font-family: "DM Serif Text", serif;
    color: #60915a;
    z-index: 1;
}

.Luna {
    position: relative;
    background-color: #0C0C0C;
    color: #60915A;
    font-family: "DM Serif Text", serif;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-color: #2E2E2E;
    z-index: 1;
}

.interzis {
    cursor: context-menu;
}

.Interzis {
    position: absolute;
    right: 0;
    top: 0;
    fill: #FFFFFF;
    z-index: 1;
}

.Data {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.Resurse {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0C0C0C;
    border-color: #2E2E2E;
    color: #60915a;
    border-style: solid;
    text-decoration: none;
    z-index: 1;
}

.Titlu_Resursa {
    position: relative;
    color: inherit;
    font-family: "DM Serif Text", serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media screen and (orientation: landscape) {

    .Resurse:hover {
        background-color: #bfbfbf;
        border-color: #bfbfbf;
        outline-color: #bfbfbf;
        color: #325a4a;
        text-shadow: 0 0 0.3vh #325a4a;
    }
    
    .Wrapper:hover .An , .Wrapper:hover .Luna {
        background-color: #bfbfbf;
        color: #325a4a;
        text-shadow: 0 0 0.3vh #325a4a;
        box-shadow: none;
    }

    html {
        height: 100%;
    }

    body {
        height: 100%;
        min-width: 100%;
    }

    header {
        height: 100%;
        width: auto;
    }
    
    @keyframes Intrare_Culoare {
        from { height: 0; }
        to { height: 100%; }
    }
    
    #__header {
        width: auto;
        flex-direction: column;
        border-color: transparent #7D7D7D transparent transparent;
        border-width: 0 0.4vh 0 0;
        border-style: solid;
        animation-name: Intrare_Culoare;
        animation-duration: 0.8s;
        animation-fill-mode: forwards;
        animation-timing-function: cubic-bezier(.55 , .82 , .57 , .98);
    }

    #Cutie_Logo {
        width: 8vh;
        height: 8vh;
        top: 2vh;
        margin: 0;
        margin-left: 1vh;
        margin-right: 1vh;
        animation-name: Intrare_Logo;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
        animation-duration: 1s;
        animation-delay: 0.25s;
    }

    #Logo {
        width: 8vh;
        height: 8vh;
    }

    #Cutie_Buton {
        display: flex;
        margin-bottom: 1vh;
    }

    #Buton {
        height: 7.5vh;
        width: 7.5vh;
        animation-name: Intrare_Logo;
        animation-delay: 0.5s;
        animation-timing-function: cubic-bezier(0.69 , 0.01 , 0.87 , 0.58);
        animation-fill-mode: forwards;
        animation-duration: 1s;
        transition: fill 0.3s;
    }
    
    #Titlu {
        animation-name: Intrare_Titlu;
        animation-duration: 2s;
        animation-delay: 0.5s;
        animation-fill-mode: forwards;
        animation-timing-function: ease-out;
        -webkit-transform: rotate(90deg);
        -moz-transform: rotate(90deg);
        -o-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        transform: rotate(90deg);
        font-size: 4.5vh;
        width: 100vh;
        margin-top: 0.4vh;
    }
    
    #Arhiva {
        height: 100%;
        padding: 0;
        padding-left: 10vh;
        min-width: 100%;
        flex-direction: row;
    }
    
    #Cronologie {
        height: 100%;
        width: auto;
        flex-direction: row;
    }
    
    @keyframes Intrare_Dreapta {
        from { width: 0; }
        to { width: 100%; }
    }
    
    #Dreapta {
        height: 0.4vh;
        width: 0;
        left: 0;
        right: 0;
        top: 50%;
        animation-name: Intrare_Dreapta;
        animation-fill-mode: forwards;
        animation-duration: 0.6s;
        animation-delay: 0.25s;
        animation-timing-function: cubic-bezier(.55 , .82 , .57 , .98);
    }
    
    .Cutie {
        height: 100%;
        width: auto;
        margin: 0;
        margin-left: 4vh;
        margin-right: 4vh;
        background-color: transparent;
        animation-name: AparitieCutie;
        animation-delay: 0.85s;
        animation-duration: 1s;
        animation-fill-mode: forwards;
        animation-timing-function: ease-out;
        flex-direction: column;
    }
    
    .Cerc {
        position: relative;
        width: 3.5vh;
        height: 3.5vh;
        transform: translate(0 , -1.85vh);
        border-width: 0.6vh;
    }

    .Wrapper {
        border-radius: 50vh;
    }

    .Wrapper::before , .Wrapper::after {
        content: '';
        position: absolute;
        animation: Rotatie 10s linear infinite;
        margin: 0;
        padding: 0.3vh;
        transform: translate(-0.3vh , -0.3vh);
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        border-radius: 50vh;
        z-index: -1;
    }

    .An {
        height: 2em;
        width: 28vh;
        flex-direction: row;
        border-radius: 50vh;
        transition: background-color 0.5s , color 0.5s , text-shadow 0.5s , box-shadow 0.5s;
        font-size: 7vh;
        text-shadow: 0 0 0.2vh #60915a;
        box-shadow: 0 0 5vh rgba(73 , 73 , 73 , 0.3);
    }

    .Luna {
        height: 3em;
        width: 34vh;
        transition: background-color 0.5s , color 0.5s , text-shadow  0.5s , box-shadow 0.5s;
        font-size: 6vh;
        text-shadow: 0 0 0.2vh #60915a;
        border-radius: 50vh;
        box-shadow: 0 0 5vh rgba(73 , 73 , 73 , 0.3);
    }
    
    @keyframes Ciclu {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-1vh);
        }
    }

    .Interzis {
        height: 4.5vh;
        width: 4.5vh;
        animation: Ciclu 5s linear infinite;
    }

    .Data {
        height: 50%;
        width: auto;
        padding: 0;
        padding-left: 5%;
        padding-right: 5%;
        flex-direction: column;
    }
    
    .Cutie:nth-of-type(odd) .Data {
        top: 0;
    }
    
    .Cutie:nth-of-type(even) .Data {
        top: 50%;
    }
    
    .Resurse {
        height: 80%;
        aspect-ratio: 4 / 3;
        padding: 0;
        justify-content: space-between;
        border-radius: 3vh;
        border-width: 0.4vh;
        transition-duration: 0.5s;
        text-shadow: 0 0 0.2vh #60915a;
        box-shadow: 0 0 15vh rgba(73 , 73 , 73 , 0.4);
    }

    .Fundal_Resursa {
        height: 70%;
        width: auto;
        border: none;
        border-radius: 1.5vh;
        margin: 3.2%;
        padding: 0;
    }

    .Titlu_Resursa {
        width: 93.6%;
        height: 17.2%;
        margin: 3.2%;
        margin-top: 0;
        padding: 0;
        font-size: 3vh;
    }
    
    hr {
        height: 0;
        width: 25vh;
        border: none;
        border-top: 0.4vh dashed #BFBFBF;
        position: relative;
        left: 0;
    }

    .Cutie:nth-of-type(odd) hr {
        transform: translate(-0.09vh , -12.5vh) rotate(90deg);
    }
    
    .Cutie:nth-of-type(even) hr {
        transform: translate(-0.09vh , 12.5vh) rotate(90deg);
    }
}

@media only screen and (orientation: portrait) {

    .Resurse:hover {
        background-color: #bfbfbf;
        border-color: #bfbfbf;
        color: #325a4a;
        text-shadow: 0 0 0.4vw #325a4a;
    }

    .Wrapper:hover .An , .Wrapper:hover .Luna {
        background-color: #bfbfbf;
        color: #325a4a;
        text-shadow: 0 0 0.4vw #325a4a;
        box-shadow: none;
    }

    html {
        height: 100%;
        width: 100%;
    }

    body {
        width: 100%;
        min-height: 100%;
    }

    header {
        height: auto;
        width: 100%;
    }

    @keyframes Intrare_Culoare {
        from { width: 0; }
        to { width: 100%; }
    }

    #__header {
        height: auto;
        flex-direction: row;
        border-color: transparent transparent #7D7D7D transparent;
        border-width: 0 0 0.5vw 0;
        border-style: solid;
        animation-name: Intrare_Culoare;
        animation-duration: 0.75s;
        animation-fill-mode: forwards;
        animation-timing-function: cubic-bezier(.55 , .82 , .57 , .98);
    }

    #Cutie_Logo {
        width: 12vw;
        height: auto;
        margin: 2vw;
        animation-name: Intrare_Logo;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
        animation-duration: 1s;
        animation-delay: 0.25s;
    }

    #Logo {
        height: 12vw;
        width: 12vw;
    }

    #Cutie_Buton {
        display: flex;
        margin: 2vw;
    }

    #Buton {
        height: 12vw;
        width: 12vw;
        animation-name: Intrare_Logo;
        animation-delay: 0.4s;
        animation-timing-function: cubic-bezier(0.69 , 0.01 , 0.87 , 0.58);
        animation-fill-mode: forwards;
        animation-duration: 1s;
        transition: fill 0.3s;
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    #Titlu {
        animation-name: Intrare_Titlu;
        animation-duration: 2s;
        animation-delay: 0.5s;
        animation-fill-mode: forwards;
        animation-timing-function: ease-out;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
        font-size: 6vw;
        width: 100vw;
    }

    #Arhiva {
        width: 100%;
        padding: 0;
        padding-top: 17vw;
        min-height: 100vh;
        flex-direction: column;
    }

    #Cronologie {
        height: auto;
        width: 100%;
        flex-direction: column;
    }

    @keyframes Intrare_Dreapta {
        from { height: 0; }
        to { height: 100%; }
    }

    #Dreapta {
        height: 0;
        width: 0.5vw;
        top: 0;
        bottom: 0;
        left: 0;
        margin-left: 8vw;
        animation-name: Intrare_Dreapta;
        animation-fill-mode: forwards;
        animation-duration: 0.5s;
        animation-delay: 0.25s;
        animation-timing-function: cubic-bezier(.55 , .82 , .57 , .98);
    }

    .Cutie {
        height: auto;
        width: 100%;
        margin: 0;
        margin-top: 3vw;
        margin-bottom: 3vw;
        animation-name: AparitieCutie;
        animation-delay: 0.7s;
        animation-duration: 1s;
        animation-fill-mode: forwards;
        animation-timing-function: ease-out;
        flex-direction: row;
        justify-content: center;
    }
    
    .Cerc {
        position: absolute;
        width: 4.5vw;
        height: 4.5vw;
        border-width: 0.8vw;
        left: 5.9vw;
    }

    .Wrapper {
        border-radius: 50vw;
        margin-top: 2vw;
        margin-bottom: 2vw;
    }

    .Wrapper::before , .Wrapper::after {
        content: '';
        position: absolute;
        padding: 0.5vw;
        transform: translate(-0.5vw , -0.5vw);
        animation: Rotatie 10s linear infinite;
        margin: 0;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        border-radius: 50vw;
        z-index: -1;
    }
    
    .An {
        width: 50vw;
        height: 2em;
        flex-direction: column;
        border-radius: 50vw;
        transition: background-color 0.5s , color 0.5s , text-shadow 0.5s , box-shadow 0.5s;
        text-shadow: 0 0 0.3vw #60915a;
        font-size: 12vw;
        box-shadow: 0 0 5vw rgba(73 , 73 , 73 , 0.3);
    }

    .Luna {
        height: 2.3em;
        width: 50vw;
        transition: background-color 0.5s , color 0.5s , text-shadow 0.5s , box-shadow 0.5s;
        font-size: 8.5vw;
        text-shadow: 0 0 0.2vw #60915a;
        border-radius: 50vw;
        box-shadow: 0 0 5vw rgba(73 , 73 , 73 , 0.3);
    }

    @keyframes Ciclu {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-2vw);
        }
    }

    .Interzis {
        height: 6vw;
        width: 6vw;
        animation: Ciclu 5s linear infinite;
    }

    .Data {
        height: auto;
        width: 65%;
        flex-direction: row;
        top: 0;
        left: 0;
    }

    .Resurse {
        height: auto;
        width: 100%;
        padding: 2.5vw;
        justify-content: center;
        border-radius: 2.5vw;
        border-width: 0.5vw;
        transition-duration: 0.5s;
        text-shadow: 0 0 0.2vw #60915a;
        box-shadow: 0 0 10vw rgba(73 , 73 , 73 , 0.4);
    }
    
    .Fundal_Resursa {
        position: relative;
        height: auto;
        width: 100%;
        padding: 0;
        margin: 0;
        margin-bottom: 1.5vw;
        border: none;
        border-radius: 1.5vw;
    }

    .Titlu_Resursa {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        font-size: 4.5vw;
    }

    hr {
        width: 0;
        height: 30vw;
        border: none;
        border-left: 0.5vw dashed #BFBFBF;
        transform: translate(6vw , -0.15vw) rotate(90deg);
        position: absolute;
        left: 16vw;
    }
}