:root {
  --gray: #353535;
  --dark-gray: #2c2c2c;
  --white: #fff;
  --turquoise: #4EC5C1;
  --spacing: .25rem;
  --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  --default-transition-duration: .15s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--gray);
    color: var(--white);
}

.app-wrapper{
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

.app-content{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
  	align-items: center;
}

.main-footer{
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 100px;
    width: 100%;
    overflow-y: auto;
    background: var(--gray);
}

.main{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--spacing) * 8);
    gap: calc(var(--spacing) * 8);
}

.site-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer a{
    color: var(--white);
    text-decoration: none;
}

.site-footer a:hover{
    color: var(--gray);
}

.navbar{
    position: fixed;
    background: var(--dark-gray);
    padding-block: calc(var(--spacing) * 4);
    width: 99%;
    z-index: 500;
    border-radius: 10px;
}

.nav-div{
    padding-inline: calc(var(--spacing) * 8);
    margin-inline: auto;
}

.nav-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item a{
    text-decoration: none;
    color: var(--brown);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
}

.section-ai {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing) * 8);
    width: 100%;
}

.detection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing) * 12);
}

.video {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #2b2b2b;
    padding: calc(var(--spacing) * 8);
    gap: calc(var(--spacing) * 6);
    border-radius: 10px;
}

#container {
    position: relative;
    width: 100%; 
    max-width: 80vw; 
}

#videoCanvas {
    width: 100%; 
    height: auto;       
    display: block;
  	border-radius: 10px;
}

#switchCamera{
    position:absolute;
    bottom:5px;
    right:5px;

    width:30px;
    height:30px;

    border-radius:50%;
    border:none;

    background:rgba(0,0,0,0.6);
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
}

#switchCamera svg{
    width: 20px;
    fill: var(--turquoise);
}

.button-detection {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #2b2b2b;
    padding: calc(var(--spacing) * 8);
    border-radius: 10px;
}

.button-detection .button{
    background: var(--dark-gray);
    color: white;
    padding: 12px 24px;
    border: 2px solid rgba(78, 197, 193, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    min-width: 140px;
}


.button-detection .button:hover {
  background: #333;
}

.button-detection .image-button {
  background: var(--dark-gray);
}

.button-detection .image-button img{
    cursor: pointer;
    max-width: 50px;
}

.chatbot {
    width: 50%;
    background-color: #2b2b2b;
    padding: calc(var(--spacing) * 8);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.1);
}

.chat-window {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 2);
}

.chat-messages {
    flex-grow: 1;
    border: 1px solid #555;
    height: 800px;
    padding: 10px;
    overflow-y: auto;
    max-height: 800px
    background-color: #2b2b2b;
    border-radius: 10px 10px 0 0;
}

.user {
    float: right;
    flex-grow: 1;
    border: 1px solid #555;
    border-radius: 20px;
    max-width: 90%;
    padding: 5px;
    padding-inline: 20px;
    overflow-y: auto;
    background-color: var(--dark-gray);

}

.bot {
    float: left;
    clear: both;
    flex-grow: 1;
    max-width: 90%;
    padding: 10px;
    overflow-y: auto;
}

.chat-input {
    display: flex;
}

.chat-input input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 0 0 0 10px;
    background-color: #2b2b2b;
    color: #fff;
}

.chat-input button {
    padding: 10px;
    border: 1px solid #555;
    background-color: #555;
    color: white;
    border-radius: 0 0 10px 0;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #666;
}

select {
    padding: 10px;
    border-radius: 10px;
    background-color: #2b2b2b;
    color: #FFF;
    cursor: pointer;
    border: 2px solid rgba(78, 197, 193, 0.2);
}

select option {
    padding: 10px;
    background-color: #2b2b2b;
    border-radius: 10px;
    color: #FFF;
}

select option:hover {
    background-color: #555;
    color: red;
}

/* Style au focus du select */
select:focus {
    border-color: #555; /* Couleur de la bordure au focus */
    outline: none; /* Supprime le contour par défaut */
    box-shadow: 0 0 5px rgba(200, 200, 200, 0.5); /* Ombre au focus */
}


@media (max-width: 1024px) {
    .main{
            padding: calc(var(--spacing) * 2);
    }
  
  	canvas {
  		max-width: 100%;
  	}
}
