* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: white;
    padding: 3rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.container {
    position: relative;
}

/* Controls */
.controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 50;
    margin-right:2em;
    margin-top: 1em;
}

.btn {
    background-color: white;
    color: #1A00FF;
    padding: 0.5rem 1rem;
    border: 2px solid #1A00FF;
    border-radius: 0;
    font-weight: normal;
    font-family: Courier, monospace;
    letter-spacing: -0.05em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #1A00FF;
    color: white;
}

.btn-secondary {
    background-color: white;
    color: #1A00FF;
    padding: 0.75rem 1.5rem;
    border: 2px solid #1A00FF;
    border-radius: 0;
    font-weight: normal;
    font-family: Courier, monospace;
    letter-spacing: -0.05em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #1A00FF;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 40;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border: 2px solid #1A00FF;
    border-radius: 0;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    position: relative;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #1A00FF;
    font-family: Courier, monospace;
    letter-spacing: -0.05em;
}

.modal-description {
    color: #1A00FF;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-family: Courier, monospace;
}

#wordInput {
    width: 100%;
    height: 16rem;
    font-size: 1.125rem;
    border: 2px solid #1A00FF;
    border-radius: 0;
    padding: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
    font-family: Courier, monospace;
    text-transform: uppercase;
}

#wordInput:focus {
    outline: none;
    border-color: #1A00FF;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
}

.modal-buttons .btn,
.modal-buttons .btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
}

/* Main Content */
.main-content {
    max-width: 80rem;
    margin: 0 auto;
}

/* Title Section */
.title-section {
    margin-bottom: 4rem;
}

.main-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
    color: #1A00FF;
    font-family: Courier, monospace;
    letter-spacing: -0.05em;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.arrow-chevron {
    font-size: 1.35rem;
    line-height: 0.3;
    padding: 0.05em;
    color: #1A00FF;
}

.arrow-line {
    width: 1px;
    height: 9rem;
    background-color: #1A00FF;
    margin-left: 0.45rem;
    margin-top: 0.65em;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card-wrapper {
    position: relative;
}

.card-label {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: normal;
    color: #1A00FF;
    font-family: Courier, monospace;
    letter-spacing: -0.05em;
}

.card {
    position: relative;
    background-color: white;
    height: 24rem;
    overflow: hidden;
}

/* Keep cards square on mobile */
@media (max-width: 767px) {
    .card {
        height: 0;
        padding-bottom: 100%;
    }
}

.arrow-line {
    width: 1px;
    height: 5rem;
}

.card-border {
    position: absolute;
    inset: 0;
    border: 2px solid #1A00FF;
    pointer-events: none;
}

.corner-stripe {
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    overflow: hidden;
    background-color: #1A00FF;
    z-index: 10;
}

.corner-stripe.top-right {
    top: 0;
    right: 0;
}

.corner-stripe.bottom-left {
    bottom: 0;
    left: 0;
}

.thick-border-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 2.5rem;
    height: 100%;
    background-color: #1A00FF;
    z-index: 10;
}

.thick-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5rem;
    background-color: #1A00FF;
    z-index: 10;
}

.diagonal-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    color: #1A00FF;
}

.card-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.card-text-content {
    text-align: center;
    font-size: 2rem;
    font-weight: lighter;
    color: #1A00FF;
    font-family: Courier, monospace;
    letter-spacing: -0.05em;
}

/* Responsive font sizes */
@media (max-width: 767px) {
    .card-text-content {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2.75rem;
    }
    
    body {
        padding: 1rem;
    }
    
    .controls {
        top: 0.5rem;
        right: 0.5rem;
        flex-direction: column;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 13px;
    }
     .controls {
        top: 5rem;
        right: 0rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .card-text-content {
        font-size: 1.75rem;
    }
}

/* Bottom Decoration */
.bottom-decoration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8rem;
}

.decoration-square-large {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #1A00FF;
}

.decoration-line {
    flex: 1;
    height: 1px;
    background-color: #1A00FF;
    margin: 0 1.5rem;
}

.decoration-diamond {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #1A00FF;
    transform: rotate(45deg);
}

@media (max-width: 767px) {
    .decoration-square-large {
        width: 1rem;
        height: 1rem;
    }
    
    .decoration-diamond {
        width: 1rem;
        height: 1rem;
    }
    
    .decoration-line {
        margin: 0 0.75rem;
    }
}
