:root {
    --text-box-width: 1000px;
    --text-box-height: auto;
}

body {
    background-color: black;
    color: white;
    font-family: 'Press Start 2P', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

body, h1, h2, h3, p, a {
    font-family: 'VT323', monospace;
    color: white;
}

.title {
  position: absolute;
  bottom: -60px;
  font-size: 50px;
  color: orange;
  font-family: 'VT323', monospace;
  animation: slideUp 1s forwards;
  cursor: pointer;
  transition: color 0.3s;
  pointer-events: auto;
}

.title.clicked {
  pointer-events: none;
}

.title:hover {
  color: yellow;
}

@keyframes slideUp {
    0% {
        bottom: -60px;
    }
    100% {
        bottom: 50vh;
    }
}

.interface {
    position: relative;
    width: var(--text-box-width);
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.interface.show {
    opacity: 1;
    transform: translateY(0);
}

.text-box {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid white;
    padding: 20px;
    width: var(--text-box-width);
    max-height: 70vh;
    overflow-y: auto;
    font-size: 24px;
    color: white;
    text-align: left;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

.text-box > * {
    transform: scaleY(1);
}

.button-container {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.btn {
    background-color: transparent;
    border: 2px solid orange;
    color: orange;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-family: 'VT323', monospace;  
}

.btn:hover {
    color: yellow;
    border: 2px solid yellow;
}

.btn:active {
    color: lightyellow;
    border: 2px solid lightyellow;
}

.project-icon {
    display: inline-block;
    margin: 10px;
    color: orange;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.project-icon:hover {
    color: yellow;
}

#fond {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

@keyframes slideUpOnClick {
    0% {
        top: 50vh;
    }
    100% {
        top: 120px;
    }
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: rotate(0deg);
}
  
.project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}
  
.project-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}
  
.project-icon {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s;
    transform: rotate(0deg);
}
  
.project-icon:hover {
    transform: scale(1.1);
}
  
.project-description {
    font-size: 24px;
    color: white;
    max-width: 400px;
    text-align: left;
    transform: rotate(0deg);
    opacity: 0;
    transition: opacity 0.3s;
}
  
.project-item:hover .project-description {
    opacity: 1;
}
  
.project-item:hover .project-icon {
    transform: scale(1.1);
}

.testimonial {
    text-align: left;
    font-size: 24px;
    line-height: 1.6;
    margin: 20px 0;
    transform: none;
}
  
.testimonial-name {
    font-weight: bold;
    margin-bottom: 10px;
    color: orange;
}
  
.testimonial-nav {
    display: flex;
    justify-content: space-between;
}
  
.testimonial-nav button {
    background-color: transparent;
    border: 2px solid orange;
    color: orange;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    transition: background-color 0.3s, color 0.3s;
    font-size: 20px;
}
  
.testimonial-nav button:hover {
    background-color: orange;
    color: black;
}
  
.testimonial-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    :root {
        --text-box-width: 90%;
    }

    body {
        font-size: 14px;
        overflow: auto;
    }

    .title {
        font-size: 28px;
        bottom: 15%;
    }

    .interface {
        height: 80vh;
    }

    .text-box {
        width: 90%; 
        padding: 10px;
        font-size: 18px;
        max-height: 50vh;
        bottom: 15%;
    }

    .button-container {
        position: absolute;
        bottom: 5%;
        flex-direction: row;
        gap: 10px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 16px;
        width: auto;
        height: auto;
    }

    .project-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .project-icon {
        width: 60px;
        height: 60px;
    }

    .project-description {
        font-size: 16px;
    }

    .testimonial {
        font-size: 18px;
        margin: 10px 0;
    }

    .testimonial-nav {
        flex-direction: row;
        gap: 10px;
    }

    .testimonial-nav button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 22px;
        bottom: 10%;
    }

    .text-box {
        padding: 8px;
        font-size: 16px;
        max-height: 45vh;
        bottom: 20%;
    }

    .btn {
        font-size: 14px;
        padding: 5px 8px;
    }

    .button-container {
        bottom: 5%;
    }

    .project-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-icon {
        width: 50px;
        height: 50px;
    }
}
