html,
body {
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a:hover,
a:focus {
    color: #474157;
}

hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

#mainbody {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;

    color: #fff;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}

.qrcode-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qrcode-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.qrcode-image {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.qrcode-image:hover {
    transform: scale(1.05);
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.7);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.qrcode-placeholder p {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

.qrcode-text {
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-height: 500px) {
    #mainbody {
        height: inherit;
    }
}

@media (max-width: 768px) {
    .homepage-content {
        padding: 20px 15px;
    }
    
    .qrcode-section {
        padding: 30px 20px;
    }
    
    .qrcode-image,
    .qrcode-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .qrcode-text {
        font-size: 20px;
    }
    
    .placeholder-icon {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .homepage-content {
        padding: 15px 10px;
    }
    
    .qrcode-section {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .qrcode-image,
    .qrcode-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .qrcode-text {
        font-size: 18px;
    }
    
    .footer p {
        font-size: 14px;
    }
}

.footer {
    background-color: #2c3e50;
    padding: 25px 0;
    color: #ecf0f1;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
    font-size: 16px;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}
