canvas{
    min-height: 4000px;
}

section#pdg{
    position: relative;
    width:50%;
    min-width: 750px;
    margin:auto;
    padding-top: 20px;
    border-style: inherit;
    padding-top:20px;
    border-radius: 45px;
    background-color:rgba(255,245,241,0.2);
    backdrop-filter: blur(40px);
    
}

main{
    padding-top:40px ;
    overflow: hidden;
}


div#texte{
    text-align: justify;
}

h2#bienvenue{
    margin-top: 0;
}

h2#texte-anim {
    color: #b1abf4;
    text-align: left;
    font-family: "Baskerville Old Face";
    font-weight: 700;
    margin: 1rem 0 1rem 2rem;
}

@keyframes typing {
    0.0000%, 34% { content: ""; }
    1%, 33% { content: "T"; }
    2%, 32% { content: "Ta"; }
    3%, 31% { content: "Tai"; }
    4%, 30% { content: "Tain"; }
    5%, 29% { content: "Taina"; }
    6%, 28% { content: "Taina "; }
    7%, 27% { content: "Taina M"; }
    8%, 26% { content: "Taina Me"; }
    9%, 25% { content: "Taina Mes"; }
    10%, 24% { content: "Taina Mesd"; }
    11%, 23% { content: "Taina Mesdou"; }
    12%, 22% { content: "Taina Mesdouz"; }
    13%, 21% { content: "Taina Mesdouze"; }

    38%, 69% { content: ""; }
    39%, 68% { content: "D"; }
    40%, 67% { content: "Dé"; }
    41%, 66% { content: "Dév"; }
    42%, 65% { content: "Déve"; }
    43%, 64% { content: "Dével"; }
    44%, 63% { content: "Dévelo"; }
    45%, 62% { content: "Dévelop"; }
    46%, 61% { content: "Développ"; }
    47%, 60% { content: "Développe"; }
    48%, 59% { content: "Développeu"; }
    49%, 58% { content: "Développeus"; }
    50%, 57% { content: "Développeuse"; }

    76%, 95% { content: ""; }
    77%, 94% { content: "D"; }
    78%, 93% { content: "Da"; }
    79%, 92% { content: "Dan"; }
    80%, 91% { content: "Dans"; }
    81%, 90% { content: "Danse"; }
    82%, 89% { content: "Danseu"; }
    83%, 88% { content: "Danseus"; }
    84%, 87% { content: "Danseuse"; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typewriter {
    --caret: currentcolor;
}

.typewriter::before {
    content: "";
    animation: typing 13.5s infinite;
}

.typewriter::after {
    content: "";
    border-right: 1px solid var(--caret);
    animation: blink 0.5s linear infinite;
}

.typewriter.thick::after {
    border-right: 1ch solid var(--caret);
}

.typewriter.nocaret::after {
    border-right: 0;
}


@media (prefers-reduced-motion) {
    .typewriter::after {
        animation: none;
    }

    @keyframes sequencePopup {
        0%, 100% { content: "Taina Mesdouze"; }
        35% { content: "Développeuse"; }
        70% { content: "Danseuse"; }
    }

    .typewriter::before {
        content: "developer";
        animation: sequencePopup 12s linear infinite;
    }
}

div#block_presentation{
    width: 750px;
    height: 550px;
    margin: auto;
    position: relative;
    margin-bottom: 30px;
}

div#presentation{
    display: grid;
    padding: min(3em, 4%);
    width: 750px;
    grid-template-columns: repeat(50%) ;
    grid-template-rows: 5fr;
    font-size: 1.2rem;
    height: 550px;
    align-items: center;
    justify-items: center;
}

.qui{
    width: 750px;
    height: 550px;
    background-color: #ebcbe7;
    position: absolute;
    top:0;
    border: #d89276 10px solid;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition-property: opacity;
    transition-duration: 2S;
    animation: up 0.5s infinite linear alternate ;
   
}

.qui p{
    font-size: 5rem;
}

div#presentation #texte{
    height: 100%;
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    padding-left: 20px;
}

#img{
    width: 250px;
    height: auto;
}

img{
    width: 100%;
    height: auto;
    grid-column: 1;
    grid-row: 1;
}

#actu{
    margin-top: 50px;
    font-weight: bold;
    text-decoration: underline;
    padding-bottom: 20px;
}

#actu:hover{
    color: #e7906b;
    cursor: pointer;
}

.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
}

.modal{
    background-color: #e8e8e8;
    border-radius: 1rem;
    width: 50%;
    height: max-content;
    min-width: 500px;
}

.modal-close{
    display: flex;
    justify-content: flex-end;

}
.modal-close button{
    background : none;
    border: none;
    font-weight: bold;
    font-size: 1.5rem;
}

.modal-content img{
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 1rem;

}

.modal-content{
    width: 100%;
    height: max-content;
    display: flex;
    justify-content: center;
}


.hide2{
    opacity: 0;
    pointer-events: none;
}

.hide{
    display: none;
    
}

#bottom{
    justify-content: space-between;
    margin-bottom: 30px ;
    display: flex;
    padding-left: 30px;
    padding-right: 30px;
}

@keyframes move {
  100% {
    transform: translate3d(0, 0, 1px) rotate(360deg);
  }
}

@keyframes up {
    from {
        transform: rotate(-5deg);
    }
    to {
        transform: rotate(5deg);
    }
}
#portail{
    margin-top: 100px;
}

#portail div{
    width: 50%;
    margin: auto;
}

#portail h2{
    margin: 0;
    transform: translateY(-10px);
}

#portail div a{
    display: block;
    width: 15%;
    margin: auto;
}

#portail div img{
    width: 100%;
    text-align: center;
}




