* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #060505;
}

.hidden {
    display: none !important;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.background::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("https://cdn.beggin.fr/assets/images/ui/loadingscreen/background.png");
    background-size: cover;
    background-position: center;
    object-fit: cover;
    filter: blur(8px);
    z-index: -1;
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 3vh;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0 2rem;
}

.first-part-parent {
    margin-top: 0;
    padding-top: 1vh;
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 10;
}

.first-part {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin-bottom: 0.5vh;
}

.first-part img {
    text-align: center;
    height: clamp(2vh, 4vh, 5vh);
    margin-top: 1vh;
}

.color-beggin {
    margin-top: 1vh;
    color: #4E4CDA;
    font-size: 2.5vh;
    text-align: center;
}

.color-contributor {
    margin-top: 1vh;
    color: #FBD44B; 
    font-size: 2.5vh;
    text-align: center;
}

.font-light { font-weight: 100; }
.font-regular { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.first-part-bis {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 0;
}

.first-part-bis img {
    height: clamp(1.8vh, 3vh, 4vh);
    margin-right: 1vh;
    margin-top: 1vh;
}

.first-part-bis p {
    font-size: clamp(1.4vh, 1.8vh, 2.2vh);
    color: white;
}

#credit-text.color-beggin {
    color: #4E4CDA; 
    font-size: 2.5vh;
}

#credit-text.color-contributor {
    color: #FBD44B;
    font-size: 2.5vh;
}

.second-part {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    margin-top: clamp(5vh, 7vh, 10vh);
    color: white;
    flex-wrap: wrap;
}

.second-part img {
    max-width: clamp(20vh, 30vw, 52vh);
    height: auto;
    max-height: clamp(20vh, 30vw, 52vh);
    width: auto;
    margin-right: 6vh;

}

.second-part h1 {
    font-size: clamp(3vh, 5vw, 8vh);
}

.second-part-bis {
    margin-left: clamp(2vh, 3vw, 4vh);
    flex: 1;
    min-width: 250px;
}

.second-part-bis p {
    text-align: left;
    margin-top: -1vh;
    font-size: clamp(5vh, 8vw, 11vh);
}

.third-part {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 75%; 
    background: #1D1D1D;
    border-radius: 0.5vh;
    padding: 2vh; 
    margin-top: 2vh; 
    margin-left: auto;
    margin-right: auto;
}


.third-part-app {
    position: relative;
    z-index: 100;
    height: auto;
    padding: 2vh; 
    background: #2D2D2D;
    color: white;
    border-radius: 1vh;
    overflow: hidden;
    width: 20%;
    margin-right: 2vh; 
    font-size: 3vh;
    text-align: center; 
}

.third-part-app span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
    line-height: normal; 
}

.third-part-app:last-child {
    margin-right: 0; 
}

.third-part-app-hover {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #4E4CDA;
    z-index: -1; 
    border-radius: 1vh;
}

.fourth-part {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 2vh;
    left: 0;
    right: 0;
    margin-top: 0;
    width: 100%;
    padding: 0 2rem;
    font-size: clamp(1.4vh, 1.8vh, 2vh);
    text-align: center;
}

.fourth-part img {
    margin-right: 1vh;
    height: clamp(1.8vh, 2.5vh, 3vh);
    width: auto;
}

.crash-text {
    color: white !important;
    font-size: clamp(1.8vh, 2.2vh, 2.5vh);
    text-align: center;
    margin-top: clamp(1vh, 2vh, 3vh);
    margin-bottom: clamp(-5vh, -3vh, -2vh);
}

.time-left-text {
    color: white !important;
    font-size: clamp(1.6vh, 1.8vh, 2.1vh);
    text-align: center;
    margin-top: 10vh; 
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    background: rgb(0, 0, 0);
    pointer-events: none;
}

.overlay-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(25,2,63,1) 0%, rgba(0,0,0,0) 70%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: pulse 30s infinite ease-in-out;
}

.overlay-wrapper {
    width: clamp(300px, 80%, 1200px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 3rem);
}

.overlay-text {
    color: white;
    font-size: clamp(1.5rem, 3vw, 3rem);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1vh;
    text-align: center;
}

.overlay-field-title {
    color: white;
    font-size: clamp(1.2rem, 2vw, 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1vh;
    text-align: center;
}

.overlay-subtext {
    color: white;
    font-size: clamp(1rem, 2vw, 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay-field-description {
    color: white;
    font-size: clamp(0.9rem, 1.5vw, 1.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay-fields {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin-top: clamp(1.5rem, 2.5vw, 3rem);
    gap: clamp(1rem, 2vw, 2rem);
}

.overlay-fields div {
    flex: 1 1 clamp(250px, 30%, 33.333%);
    max-width: 100%;
    box-sizing: border-box;
}

.fadein {
    animation: fadein 1s ease-in-out forwards;
}

.fadeout {
    animation: fadeout 1s ease-in-out forwards;
}

@media screen and (max-width: 480px) {
    .first-part-parent {
        position: relative;
        padding-top: 0.5vh;
    }
    
    .second-part {
        justify-content: center;
        width: 95%;
        flex-direction: column;
        text-align: center;
    }

    .second-part-bis {
        margin-left: 0;
        margin-top: 1rem;
        text-align: center;
    }
    
    .second-part-bis p {
        text-align: center;
    }
    
    .third-part {
        display: flex;
        justify-content: left;
        align-items: center;
        width: 75%; 
        background: #1D1D1D;
        border-radius: 0.5vh;
        padding: 2vh; 
        margin-top: 3vh;
        margin-left: auto;
        margin-right: auto;
    }
    
    .third-part-app {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1vh;
        min-height: 6vh;
        display: flex;
        align-items: center;
    }
    
    .third-part-app span {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .fourth-part {
        flex-direction: column;
        gap: 1vh;
        bottom: 1vh;
    }
    
    .fourth-part img {
        margin-right: 0;
        margin-bottom: 0.5vh;
    }
    
    .overlay-wrapper {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .overlay-fields div {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .second-part {
        width: 90%;
    }
    
    .third-part {
        width: 90%;
        flex-wrap: wrap;
    }
    
    .third-part-app {
        flex: 1 1 45%;
        margin-bottom: 1vh;
    }
    
    .overlay-fields div {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .second-part {
        margin-left: clamp(3vh, 4vw, 6vh);
    }
    
    .third-part-app {
        font-size: 2.5vh;
    }
}

@media screen and (orientation: portrait) {
    .content {
        justify-content: flex-start;
        padding-top: 2vh;
    }
    
    .second-part {
        margin-top: clamp(3vh, 5vh, 7vh);
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        text-align: center;
        width: 90%;
    }
    
    .second-part img {
        max-height: 25vh;
    }
    
    .second-part-bis {
        margin-left: 0;
        margin-top: 1vh;
        text-align: center;
    }
    
    .second-part-bis p {
        text-align: center;
    }
    
    .third-part {
        margin-top: 3vh;
        margin-bottom: 10vh;
    }
    
    .fourth-part {
        bottom: 2vh;
    }
}

@media screen and (max-height: 600px) {
    .first-part-parent {
        padding-top: 0.2vh;
    }
    
    .first-part img {
        height: 3vh;
    }
    
    .second-part img {
        max-height: 18vh;
    }
    
    .second-part h1 {
        font-size: 3vh;
    }
    
    .second-part-bis p {
        font-size: 6vh;
    }
    
    .third-part {
        margin-top: 2vh;
        padding: 1vh;
        margin-bottom: 8vh;
    }
    
    .third-part-app {
        padding: 1vh;
        font-size: 1.8vh;
    }
    
    .fourth-part {
        margin-top: 2vh;
        font-size: 1.5vh;
        bottom: 1vh;
    }
}

@keyframes pulse {
    0% {
        background-size: 50%;
    }
    50% {
        background-size: 150%;
    }
    100% {
        background-size: 50%;
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}