@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    background-color: #eee;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    width: 550px;
}

.container > h1 {
    font-size: 35px;
    margin-bottom: 5px;
}

.options {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 10px;
}

button {
    font-size: 20px;
    padding: 10px;
    width: 250px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.3) 0 2px 5px;
    border-radius: 4px;
    background-color: #667eea;
    color: #eee;
    margin-top: 10px;
    cursor: pointer;
}

button:hover {
    background-color: #536ee7;
}

.generator-container, 
.scanner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.generator-container > input {
    font-size: 20px;
    text-align: center;
    width: 100%;
    border: none;
    border-bottom: 1px solid;
    padding: 5px;
    width: 300px;
    background-color: transparent;
    outline: none;
}

#qrcode {
    margin-top: 20px;
}

a {
    margin-top: 10px;
    font-size: 17px;
    cursor: pointer;
}

a:hover {
    color: #536ee7;
}

#scanner-container {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

#video {
    width: 100%;
    height: 100%;
}

.captured-image {
    margin-top: 20px;
}

#qr-result {
    font-size: 20px;
    margin-top: 10px;
}