/* ============================================
   Index/Home Page Styles
   ============================================ */
body {
    margin: 0px;
    background-image: linear-gradient(165deg, #ceeaff 40%, #6c79d1 100%);
    background-attachment: fixed;
    font-family: Arial;
    color: white;
    font-size: 20pt;
    line-height: unset !important;
}
nav {
    display: none;
}
a, select {
    transition: all 0.3s ease;
    box-sizing: unset !important;
}

body>div{
    background-image: url(/image/welcome_bg_l2.png);
    min-height: 100%;
    background-repeat: no-repeat;
    width: 100%;
    background-size: contain;
}

.indexheader {
    position: fixed;
    width: 100%;
    height: 64px;
    z-index: 5;
}

.topheaderbg {
    background-color: rgb(134, 140, 207, 0.65);
    width:100%;
    height:100%;
    display: none;
    z-index: 2;
}

.topbgcontainer {
    text-align: center;
    position:absolute;
    top:0px;
    left:0px;
    width:100%;
    display:flex
}

.topheaderlogoarea{
    width: 100%;
    visibility: hidden;
}

.topheaderlogoarea img{
    height:64px;
}

.topheaderhumburger{
    z-index:6;
}

.topheaderhumburger a{
    display:block;
    cursor:pointer;
    text-decoration:none;
    background-color: rgb(185 181 205 / 85%);
    margin-right: 20px;
    margin-top: 6px;
    border: 1px solid #606075c9;
    border-radius: 4px;
    line-height: 1em;
    padding: 0.5em;
    height: 1em;
    font-size: 1em;
    color: #494a53;
}

.topheaderhumburger a:hover{
    background-color: rgba(106, 103, 124, 0.85);
    color: #1a1a1f;
}


#headerdropdown {
    position: fixed;
    top: 1px;
    right: 1px;
    z-index: 4;
    width: 400px;
    background-color: rgb(200 210 219 / 78%);
    border: 1px solid grey;
    border-radius: 4px;
    display: none;
    padding: 64px 3px 3px 3px;
}

#headerdropdown a,
#headerdropdown select{
    width:100%;
    font-size:1.2em;
    padding: 0.2em 1em;
    background-image: linear-gradient(177deg, #bfd7e9 40%, #9397b3 100%);
    text-decoration:none;
    border:1px solid #7f7ebf;
    margin-bottom: 2px;
    display:block;
    color: white;
}

#headerdropdown a:hover,
#headerdropdown select:hover{
    background-image: linear-gradient(177deg, #99b0c2 40%, #9397b3 100%);
    color: rgb(105, 96, 156);
}

.titleimagecontainer {
    position: fixed;
    z-index: 2;
    max-height: 460px;
    width: 100%;
}
.titleimagecontainer img {
    width: 100%;
}
.bgfiller {
    height: 52cqw;
}
.bgfiller div {
    text-align:center;
    width:100%;
    padding-top: 40%;
}
.bgfiller a {
    font-size: 24px;
    padding: 6px 47px;
    position:unset;
    z-index: 1;
    color: blue;
    display: block;
}
.bgfiller a:hover{
    color: rgb(134, 133, 209);
}
.bgfiller .loginbutton {
    box-shadow: rgb(159, 180, 242) 0px 1px 3px 0px;
    background: linear-gradient(rgb(143, 175, 230) 5%, rgb(33, 119, 224) 100%) rgb(143, 175, 230);
    border-radius: 9px;
    border: 2px solid rgb(174, 203, 212);
    display: inline-block;
    color: rgb(235, 248, 250);
    font-weight: bold;
    text-decoration: none;
    text-shadow: rgb(40, 57, 102) 0px 2px 1px;
}
.bgfiller a.loginbutton:hover {
    background: linear-gradient(rgb(95, 138, 212) 5%, rgb(33, 119, 224) 100%) rgb(143, 175, 230);
    color: rgb(192, 205, 207);
    text-shadow:rgb(45, 62, 109) 2px 0px 1px;
}
.burningtext {
	background-image: url(/image/textbg.gif);
    background-position: 20% 20%;   
	background-repeat: repeat;
    -webkit-background-size: cover;
	background-size: cover;
	text-align: center;
    position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	font-size: 12cqi;  
	font-family: Ubuntu, sans-serif, 'Poppins', sans-serif; 
	font-weight: 900;
	-webkit-text-fill-color: transparent; 
	-webkit-background-clip: text;
	white-space: nowrap;
}
.content {
    display: flex;
    padding: 4em 2em;
}
.content.blueback{
    background-color: rgba(24, 8, 99, 0.855);
}
.content.blueback small {
    color: #ffffff94;
    font-size: 1rem;
}
.content.whiteback{
    background-color: rgba(205, 203, 225, 0.329);
}
.content strong.fabulous {
    font-size: 1.8rem;
    font-family: 'Times New Roman', Georgia, Garamond, serif;
    text-shadow: 1px 1px 2px pink;
}
.content strong{
    font-size: 2em;
}
.content .step{
    background-color: rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    border: 3px solid #FF88AA;
    width: 10em;
    display: inline-block;
    margin: 0.5em;
    vertical-align:top;
    color: #555588;
    padding: 0.2em;
}
.content .step h5{
    margin: 0.2em;
}

.content .step .stepnumber{
    font-weight: bold;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size: 3em;
}
.content .step>span {
    font-size: 1.2rem;
    line-height: 1.4rem;
    display: inline-block;
}
.platforms {
    display: block;
}
.platforms h2{
    border-bottom: 2px solid #eef
}
.platforms .grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem 16px;
}
.platforms .card{
    background: #f9f9fb;
    border: 1px solid #e8e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}
.platforms .card strong{
    display: block;
    margin-bottom: 0.6rem;
    color: #333;
    font-size: 1rem;
}
.platforms .card ul{
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.platforms .card li{
    font-size: 0.85rem;
    color: #666;
    padding: 0.2rem 0 0.2rem 1.2rem;
    position: relative;
}
.platforms .card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
}
.platform-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
div.center {
    text-align: center;
}
.videoarea1 {
    display: flex;
    position:relative;
}
.videoarea1 .wrappertext {
    width:28cqw;
    overflow-x: visible;
    padding: 1.2em;
    position: relative;
    background-color: rgb(28, 35, 85, 0.6);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.videoarea1 .wrappertext .overflowtexts {
    width:24em;
    z-index: 1;
    position: absolute;
}
.videoarea1 .videocontainer{
    width: 100%;
    display: inline-block;
}
video {
    width:100%;
}
.videoarea1 .overflowtexts div {
    font-size: 1.3rem;
}

.videoarea2 {
    font-size: 3.2cqw;
    padding: 0px;
    position: relative;
}

.videoarea2 .dialog{
    width: 15.2em;
    position: absolute;
    right: 0px;
    top: 1em;
}
.videoarea2 .dialog h4{
    margin: 0px;
}
.videoarea2 .dialog h4 strong{
    font-size:2em;
}
.videoarea2 .dialog h4 .evenstronger{
    text-decoration: underline;
    font-size: 2.5em;
}
.content .steps{
    height: 10em;
    color: #666666;
}

.footer {
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer a{
    color: rgba(255, 255, 255, 0.9);
    margin: 0 6px;
}

/* ============================================
   Login Modal Styles
   ============================================ */

/* Index-specific modal header override: centered text */
#loginModal.modal {
    font-size: 12pt;
}
#loginModal .modal-header {
    text-align: center;
    cursor: move;
    user-select: none;
}

#loginModal .modal-header h2 {
    font-size: 1.5em;
}

.modal .footer-links {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 0.9em;
}

.modal .footer-links a {
    color: #667eea;
    text-decoration: none;
}

.modal .footer-links a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.error-message {
    display: none;
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.error-message.show {
    display: block;
}

/* OAuth Buttons in Modal */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0 20px 0;
    color: #999;
    font-size: 0.9em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    margin: 0 15px;
}

.oauth-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.oauth-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95em;
}

.oauth-btn:hover {
    border-color: #667eea;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.oauth-icon {
    font-size: 1.2em;
}

.youtube-btn {
    border-color: #FF0000;
    color: #FF0000;
}

.youtube-btn:hover {
    background: #fff5f5;
    border-color: #FF0000;
}

.twitch-btn {
    border-color: #9146FF;
    color: #9146FF;
}

.twitch-btn:hover {
    background: #f5f0ff;
    border-color: #9146FF;
}

.niconico-btn {
    border-color: #252525;
    color: #252525;
}

.niconico-btn:hover {
    background: #f5f5f5;
    border-color: #252525;
}

.twitcasting-btn {
    border-color: #23a502;
    color: #23a502;
}

.twitcasting-btn:hover {
    background: #e0ffd9;
    border-color: #23a502;
}

.instagram-btn {
    border-color: #E1306C;
    color: #E1306C;
}

.instagram-btn:hover {
    background: #fff0f5;
    border-color: #E1306C;
}

.tiktok-btn {
    border-color: #333;
    color: #333;
}

.tiktok-btn:hover {
    background: #f5f5f5;
    border-color: #333;
}

.x-btn {
    border-color: #000;
    color: #000;
}

.x-btn:hover {
    background: #f5f5f5;
    border-color: #000;
}

.facebook-btn {
    border-color: #1877F2;
    color: #1877F2;
}

.facebook-btn:hover {
    background: #f0f5ff;
    border-color: #1877F2;
}

.kick-btn {
    border-color: #009900;
    color: #009900;
}

.kick-btn:hover {
    background: #f0fff0;
    border-color: #009900;
}

.bilibili-btn {
    border-color: #00A1D6;
    color: #00A1D6;
}

.bilibili-btn:hover {
    background: #f0faff;
    border-color: #00A1D6;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 0.9em;
}

.modal-footer a {
    color: #667eea;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    .titleimagecontainer {
        height: 0px;
        position: absolute;
    }
    #headerdropdown{
        width: 100%;
    }
    .bgfiller {
        height: 20em;
    }
    .bgfiller>div{
        padding-top: 16em;
    }
    .content {
        display: block;
        padding: 0em 1em;
        line-height: 1.6em;
    }
    .content >div {
        width: 100% !important;
    }
    .content img {
        width: 100%;
    }
    .videoarea1 {
        display: block;
    }
    .videoarea1 .wrappertext {
        width: unset;
        position: unset;
        padding: unset;
    }
    .videoarea1 .wrappertext .overflowtexts {
        padding: 1em;
        width: 100%;
        position: unset;
    }
    .content.videoarea2 {
        padding: 0px !important;
    }
    .content.videoarea2 > div.dialog {
        width: 14em !important;
    }
    .content .step {
        margin: 0.5em 0px;
    }
    .container {
        display: block;
    }
    .container img {
        max-width: 90%;
    }

    h1 {
        font-size: 2em;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    
    .oauth-buttons {
        flex-direction: column;
    }
    
    .oauth-btn {
        width: 100%;
        gap: 10px;
    }

    .modal {
        background-color: white;
        overflow-y: auto;
    }

    .modal-content {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 16px;
        animation: none;
    }

    .modal-header {
        cursor: default;
    }

    .modal-header p {
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .divider {
        margin: 16px 0 14px 0;
    }

    .modal-footer {
        margin-top: 14px;
    }
}