<?php
    if (file_exists("./content/header.php")){
        include_once("./content/header.php");
    }
?>

<div class="pageCnt">
    
    <div class="centerCell">
        <div class="card">
            
            <div class="principalTitle">
                <h3 class="poppins-bold" id="titlePage">Comprar Criptomoneda</h3>
            </div>
            
            <div class="space"></div>
            <div class="timeline">
                <div class="wsleft"></div>
                <div class="dtimeline">
                    <i class="fas fa-check check-done check-icon" ></i>
                    <h6 class="text-timeline poppins-bold" id="step1">Paso 1</h6>
                </div>
                <div class="dtimeline">
                    <i class="fas fa-check check-done check-icon"></i>
                    <h6 class="text-timeline poppins-bold" id="step2">Paso 2</h6>
                </div>
                <div class="dtimeline">
                    <i class="fas fa-check check-done check-icon"></i>
                    <h6 class="text-timeline poppins-bold" id="step3">Paso 3</h6>
                </div>
                <div class="dtimeline">
                    <i class="fas fa-check check check-icon"></i>
                    <h6 class="text-timeline poppins-bold" id="step4">Paso 4</h6>
                </div>
                <div class="dtimeline">
                    <i class="fas fa-check no-check check-icon"></i>
                    <h6 class="text-timelineG poppins-medium" id="step5">Paso 5</h6>
                </div>
                <div class="wsright" ></div>
            </div>
            
            <div class="regForm">
                <div class="tableForm" style="width:100%">
                    <div class="tableForm">
                        <p class="titleText poppins-bold" id="titleText">¿Qué cantidad de <span></span> desea comprar?</p>
                    </div>
                    <div class="tableForm">
                        <p class="titleText poppins-regular" style="margin-top: 7px;" id="subTitleText">Indique la cantidad de <span></span> que desea adquirir</p>
                    </div>
                    <div class="tableCrOut">
                        <div class="tableForm" style="width:100%">
                            <div class="tableForm" style="padding: 0px 2%;">
                                <div class="cellForm cellForm50">
                                    <div class="inputnumber cardAmountRoundedLast">
                                        <div class="cardAmountRoundedTextLast">
                                            <p class="poppins-regular" id="saldo">SALDO</p>
                                        </div>
                                        <div class="cardAmountRoundedValueLast">
                                            <p class="roboto-bold" id="balanceCur"></p>
                                        </div>
                                        <input disabled="" type="text" class="poppins-bold cardAmountRoundedInput">
                                    </div>
                                </div>
                                <div class="cellForm cellForm50">
                                    <div class="inputnumber cardAmountRoundedLast">
                                        <div class="cardAmountRoundedTextLast">
                                            <p class="poppins-regular" id="maxBuyL">COMPRA MÁX.</p>
                                        </div>
                                        <div class="cardAmountRoundedValueLast">
                                            <p class="roboto-bold" id="balanceTotal"></p>
                                        </div>
                                        <input disabled="" type="text" class="poppins-bold cardAmountRoundedInput">
                                    </div>
                                </div>
                            </div>
                            <div class="tableForm" style="padding: 0px 2%;">
                                <div class="cellForm cellForm50">
                                    <p class="poppins-bold subtitleCripto" id="QuantityToBuy">Cantidad a Comprar</p>
                                    <input type="text" class="inputCl" id="quantity">
                                </div>
                                <div class="cellForm cellForm50">
                                    <p class="poppins-bold subtitleCripto" id="amountLabel">Monto</p>
                                    <input type="text" class="inputCl" id="amount">
                                </div>
                            </div>
                            <div class="tableForm" style="padding: 0px 2%;">
                                <div class="cellForm cellForm50">
                                    <p class="roboto-regular infText" id="infText">Tasa de cambio: <span></span></p>
                                </div>
                                <div class="cellForm cellForm50">
                                </div>
                            </div>
                            <div class="tableForm" style="padding: 0px 2%;">
                                <div class="cellForm cellForm50" style="text-align: -webkit-center; text-align-last: center;">
                                    <button type="submit" class="poppins-medium buy-button blueButton" id="increaseAmount">AUMENTAR SALDO</button>
                                </div>
                                <div class="cellForm cellForm50" style="text-align: -webkit-center; text-align-last: center;">
                                    <button type="submit" class="poppins-medium buy-button blueButton" id="maxBuy">HACER COMPRA MÁXIMA</button>
                                </div>
                            </div>
                        </div>
                        <p class="poppins-regular error" id="error"></p>
                    </div>
                    
                    <div class="buttons">
                        <div id="previous"><button type="submit" id="previous-button" class="cancel-button poppins-medium whiteButton">REGRESAR</button></div>
                        <div id="next"><button type="submit" id="next-button" class="accept-button poppins-medium blueButton">CONTINUAR</button></div>
                    </div> 
                    
                    <div class="buttonsR">
                        <div>
                            <button type="submit" id="previous-buttonR" class="cancel-button poppins-medium whiteButton">REGRESAR</button>
                        </div>
                        <div>
                            <button type="submit" id="next-buttonR" class="accept-button poppins-medium blueButton">CONTINUAR</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="float blueButton" id="floatButton">
        <i class="fa fa-lightbulb my-float"><button class="submit popuptext poppins-medium blueButton" id="buttonAdv">MODO AVANZADO<i class="fas fa-times-circle floatClose" id="floatClose"></i></button></i>
    </div>
</div>

<!-- SESION EXPIRADA -->

<div class="expired cardOperations">
    <div class="clickClose">
        <div class="cardWithdraw content">
            <div class="expSessionT">
                <p class="poppins-bold" id="expired1">Su sesión está próxima a expirar</p>
            </div>
            <div class="expSessionB">
                <p class="poppins-regular" id="expired2">Presione Continuar si desea permanecer activo por 15 minutos más.</p>
            </div>
            <div class="buttonOpValid">
                <div class="button-submit-expired">
                    <button type="button" class="submit-expired poppins-medium blueButton" id="expSessionButton">CONTINUAR</button>
                </div>
            </div>
       </div>
   </div>
</div>
