/* Style Settings */
:root {
    --bgColor: #faf3cb;
    --accentColor: #104445;
    --font: 'Courier New', monospace;
}

body{
    background-color: var(--bgColor);
    background-image: url("bg.webp");
    background-repeat: repeat;
    color: var(--accentColor);;
}

#userPhoto{
    width: 144px;
    height: 144px;
    display: block;
    margin: 35px auto 20px;
}

#userName{
    color: var(--accentColor);;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    display: block;
    font-family: var(--font);
    width: 100%;
    text-align: center;
    text-decoration: none;
}

#center{
    text-align: center;
}

.footerLink{
    color: var(--accentColor);;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    font-family: var(--font);
    width: 100%;
    text-align: center;
    text-decoration: none;
}

#socialMedia{
    fill: var(--accentColor);;
    line-height: 1.25;
    width: 48px;
    text-align: center;
    text-decoration: none;
}

#links{
    max-width: 675px;
    width: auto;
    display: block;
    margin: 27px auto;
}
.link{
    display: block;
    background-color: var(--accentColor);
    color: var(--bgColor);
    font-family: var(--font);
    text-align: center;
    margin-bottom: 20px;
    padding: 17px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all .25s cubic-bezier(.08,.59,.29,.99);
    border: solid var(--accentColor) 2px;
}

.link:hover{
    background-color: var(--bgColor);
    color: var(--accentColor);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 68, 69, 0.8);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: var(--bgColor);
    margin: 15% auto;
    padding: 30px;
    border: 3px solid var(--accentColor);
    width: 90%;
    max-width: 400px;
    text-align: center;
    font-family: var(--font);
    border-radius: 8px;
    position: relative;
    animation: slideIn 0.3s ease-in-out;
}

.close {
    color: var(--accentColor);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    opacity: 0.7;
}

.wifi-info {
    font-size: 1.1rem;
    color: var(--accentColor);
    margin: 20px 0;
}

.wifi-credentials {
    background-color: var(--accentColor);
    color: var(--bgColor);
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: bold;
}

.copy-btn {
    background-color: var(--accentColor);
    color: var(--bgColor);
    border: none;
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    font-family: var(--font);
    border-radius: 4px;
    transition: all 0.25s ease;
}

.copy-btn:hover {
    background-color: var(--bgColor);
    color: var(--accentColor);
    border: 2px solid var(--accentColor);
}

.copy-success {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 10px;
}

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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    #userPhoto {
        width: 120px;
        height: 120px;
        margin: 20px auto 15px;
    }
    
    .link {
        margin-bottom: 15px;
        padding: 15px;
        font-size: 1rem;
    }
    
    #links {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .modal-content {
        margin: 25% auto;
        padding: 20px;
        width: 95%;
    }
    
    .footerLink {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    #userPhoto {
        width: 100px;
        height: 100px;
        margin: 15px auto 10px;
    }
    
    .link {
        padding: 12px;
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .modal-content {
        margin: 30% auto;
        padding: 15px;
    }
    
    .wifi-credentials {
        padding: 12px;
        font-size: 0.9rem;
    }
}
